-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #509 from PSanetra/add-environment-variables
feat: Support standard environment variables
- Loading branch information
Showing
13 changed files
with
655 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
====================== | ||
Channels Configuration | ||
====================== | ||
|
||
This document describes the environment variables and configurations used for establishing different gRPC channel connections to Camunda (Zeebe) instances, either with or without authentication. | ||
|
||
Environment Variables | ||
--------------------- | ||
|
||
The following environment variables are used to configure channels. The variables are grouped according to their relevance and usage context in each type of channel. | ||
|
||
These variables are only considered if a corresponding argument was not passed (Unset) during initialization of a channel. | ||
|
||
Common Variables | ||
---------------- | ||
|
||
This variables is used across all types of channels: | ||
|
||
**ZEEBE_ADDRESS** | ||
:Description: | ||
The default address of the Zeebe Gateway. | ||
|
||
:Usage: | ||
Used in both secure and insecure channel configurations. | ||
:func:`pyzeebe.create_insecure_channel` | ||
:func:`pyzeebe.create_secure_channel` | ||
|
||
:Default: | ||
``"localhost:26500"`` | ||
|
||
Common OAuth2 Variables | ||
----------------------- | ||
|
||
These variables are specifically for connecting to generic OAuth2 or Camunda Cloud instances. | ||
|
||
**CAMUNDA_CLIENT_ID** / **ZEEBE_CLIENT_ID** | ||
:Description: | ||
The client ID required for OAuth2 client credential authentication. | ||
|
||
:Usage: | ||
Required for OAuth2 and Camunda Cloud channels. | ||
:func:`pyzeebe.create_oauth2_client_credentials_channel` | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
**CAMUNDA_CLIENT_SECRET** / **ZEEBE_CLIENT_SECRET** | ||
:Description: | ||
The client secret for the OAuth2 client. | ||
|
||
:Usage: | ||
Required for OAuth2 and Camunda Cloud channels. | ||
:func:`pyzeebe.create_oauth2_client_credentials_channel` | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
OAuth2 Variables (Self-Managed) | ||
------------------------------- | ||
|
||
These variables are primarily used for OAuth2 authentication in self-managed Camunda 8 instances. | ||
|
||
**CAMUNDA_OAUTH_URL** / **ZEEBE_AUTHORIZATION_SERVER_URL** | ||
:Description: | ||
Specifies the URL of the authorization server issuing access tokens to the client. | ||
|
||
:Usage: | ||
Required if channel initialization argument was not specified. | ||
:func:`pyzeebe.create_oauth2_client_credentials_channel` | ||
|
||
**CAMUNDA_TOKEN_AUDIENCE** / **ZEEBE_TOKEN_AUDIENCE** | ||
:Description: | ||
Specifies the audience for the OAuth2 token. | ||
|
||
:Usage: | ||
Used when creating OAuth2 or Camunda Cloud channels. | ||
:func:`pyzeebe.create_oauth2_client_credentials_channel` | ||
|
||
:Default: | ||
``None`` if not provided. | ||
|
||
Camunda Cloud Variables (SaaS) | ||
------------------------------ | ||
|
||
These variables are specifically for connecting to Camunda Cloud instances. | ||
|
||
**CAMUNDA_OAUTH_URL** / **ZEEBE_AUTHORIZATION_SERVER_URL** | ||
:Description: | ||
Specifies the URL of the authorization server issuing access tokens to the client. | ||
|
||
:Usage: | ||
Used in the OAuth2 and Camunda Cloud channel configurations. | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
:Default: | ||
``"https://login.cloud.camunda.io/oauth/token"`` if not specified. | ||
|
||
**CAMUNDA_CLUSTER_ID** | ||
:Description: | ||
The unique identifier for the Camunda Cloud cluster to connect to. | ||
|
||
:Usage: | ||
Required if channel initialization argument was not specified. | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
**CAMUNDA_CLUSTER_REGION** | ||
:Description: | ||
The region where the Camunda Cloud cluster is hosted. | ||
|
||
:Usage: | ||
Required for Camunda Cloud channels. | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
:Default: | ||
``"bru-2"`` if not provided. | ||
|
||
**CAMUNDA_TOKEN_AUDIENCE** / **ZEEBE_TOKEN_AUDIENCE** | ||
:Description: | ||
Specifies the audience for the OAuth2 token. | ||
|
||
:Usage: | ||
Used when creating OAuth2 or Camunda Cloud channels. | ||
:func:`pyzeebe.create_camunda_cloud_channel` | ||
|
||
:Default: | ||
``"zeebe.camunda.io"`` if not provided. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.