Skip to main content
Quick navigation

Environment Variables

Configuring the environment using environment variables is the recommended way of configuring the Enterprise Conduktor Gateway.

For the open source Conduktor Gateway, use the yaml configuration file.

Environment Variables

Jump to:

Kafka Environment Variables

Conduktor Gateway connections to Kafka are configured by prefixed and translated environment variables. Any variable prefixed with KAFKA_ will be treated as a connection parameter. The remainder of the environmnt variable will be lower cased and have _ replaced with . so that a variable

KAFKA_BOOTSTRAP_SERVERS

is equivalent to the Kafka property

bootstrap.servers

Gateway Environment Variables

Default configurations for Conduktor Gateway can be overridden by environment variables:

Host/Port Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
PROXY_BIND_HOST0.0.0.0The host on which to bind the gateway (Use GATEWAY_BIND_HOST with the open source gateway)No
PROXY_HOSTlocalhostThe gateway hostname that should be presented to clients (Use GATEWAY_HOST with the open source gateway)No
PROXY_PORT_RANGE6969:6975A range of ports to be opened on the Conduktor PROXY_HOST, each port in this range will correspond to a broker in the Kafka cluster so it must be at least as large as the broker count of the Kafka cluster. We recommend it is double the size of the Kafka cluster to allow for expansion and reassignment. (Use GATEWAY_PORT_RANGE with the open source gateway)No

Schema Registry Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
SCHEMA_REGISTRY_HOSTNoneA HTTP endpoint for interacting with a Schema Registry (e.g. http://localhost:8081)Yes

Authentication Configurations

Note: These configurations apply to authentication between clients and Conduktor Gateway. For authentication between Conduktor Gateway and Kafka see Kafka Environment Variables

Environment VariableDefault ValueDescriptionEnterprise Only
AUTHENTICATION_AUTHENTICATOR_TYPENONEThe type of authentication clients should use to connect to the gateway, valid values are NONE, SSL, SASL_PLAIN and SASL_SSLNo
SSL_KEY_STORE_PATHNonePath to a keystore for SSL connectionsNo
SSL_KEY_STORE_PASSWORDNonePassword for the keystore defined aboveNo
SSL_KEY_PASSWORDNonePassword for the key contained in the store aboveNo
SSL_KEY_TYPEjksThe type of keystore used for SSL connectionsNo

HTTP Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
HTTP_PORT8888The port on which the gateway will present a HTTP management APIYes

Thread Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
DOWNSTREAM_THREAD2The number of threads dedicated to handling IO between clients and Conduktor GatewayNo
UPSTREAM_THREAD4The number of threads dedicated to handling IO between Kafka and Conduktor GatewayNo

Upstream Connection Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
UPSTREAM_NUM_CONNECTION10The number of connections between Conduktor Gateway and KafkaNo

Topic Store Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
TOPIC_STORE_MAPPING_BACKING_TOPIC_topicMappingsThe name of an internal topic used to store topic mapping configuration for multi tenancyYes
TOPIC_STORE_REGISTRY_BACKING_TOPIC_topicRegistryThe name of an internal topic used to store topic metadataYes

Interceptor Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
INTERCEPTOR_STORE_BACKING_TOPIC_interceptorConfigsThe name of an internal topic used to store interceptor configurationsYes
RESOURCE_NAME_BACKING_TOPIC_resourceNamesThe name of an internal topic used to store named resource metadataYes

Tenant Store Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
TENANT_STORES_BACKING_TOPIC_tenantConfigMappingsThe name of an internal topic used to store tenant metadataYes

Offset Store Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
OFFSET_STORE_COMMITTED_OFFSET_BACKING_TOPIC_offsetStoreThe name of an internal topic used to store offset metadataYes
OFFSET_STORE_CONSUMER_GROUP_SUBSCRIPTION_BACKING_TOPIC_consumerGroupSubscriptionBackingTopicThe name of an internal topic used to store consumer group metadataYes

Feature Flags Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
FEATURE_FLAGS_RBACfalseWhether or not to enable the RBAC featureYes
FEATURE_FLAGS_SINGLE_TENANTfalseWhether or not to enable single tenant mode, in this mode topic names etc are not prefixed.Yes
FEATURE_FLAGS_NO_INTERNAL_TOPICSfalseWhether or not to enable no internal topics mode, in this mode gateway internal topics are not created. Note only one gateway instance is supported in this mode.Yes
FEATURE_FLAGS_JWT_TOKEN_ENDPOINTfalseWhether or not to enable a REST endpoint for generating auth JWT tokensYes

Metrics Configurations

Environment VariableDefault ValueDescriptionEnterprise only
PROMETHEUS_METRICS_PORT9089The port on which Prometheus metrics will be exposedYes

Conduktor Platform Configurations

Environment VariableDefault ValueDescriptionEnterprise Only
PLATFORM_M2M_SECRETchangeitA shared secret used to authenticate requests between Conduktor Gateway and Conduktor Platform. This can usually be found as the sharedSecret property in /etc/conduktor/devtools.yml in the Conduktor Platform containerYes
PLATFORM_M2M_ISSUERhttp://localhost/authThe issuer used to authenticate requests between Conduktor Gateway and Conduktor Platform this should be in the form http://[platform host name]/authYes

RBAC configurations

Environment VariableDefault ValueDescriptionEnterprise Only
RBAC_PLATFORM_ENDPOINThttp://localhost:8080/admin/api/pThe Conduktor Platform persmissions API endpointYes

Licensing configurations

Environment VariableDefault ValueDescriptionEnterprise Only
LICENSE_BACKING_TOPIC_licenseThe namme of an internal topic used to store license dataYes
LICENSE_PUBLIC_KEYNoneThe public key used to decode license keysYes
LICENSE_KEYNoneLicense keyYes

Security configuration

Environment VariableDefault ValueDescriptionEnterprise Only
JWT_AUTH_MASTER_USERNAMEconduktorMaster credentials for use with admin APIsYes
JWT_AUTH_MASTER_PASSWORDconduktorMaster credentials for use with admin APIsYes

Logging configuration

Environment VariableDefault ValueDescriptionEnterprise Only
LOG4J2_APPENDER_LAYOUTpatternThe format to output console logging. Use json for json layout or pattern for pattern layoutYes