Environment variables for Kafka ΒΆ

These variables are made available to your application when Kafka is enabled.

Variable nameDescription
KAFKA_BROKERSComma-separated list of HOST:PORT pairs to Kafka brokers
KAFKA_SCHEMA_REGISTRYURL to schema registry
KAFKA_SCHEMA_REGISTRY_USERUsername to use with schema registry
KAFKA_SCHEMA_REGISTRY_PASSWORDPassword to use with schema registry
KAFKA_CERTIFICATEClient certificate for connecting to the Kafka brokers, as string data
KAFKA_CERTIFICATE_PATHClient certificate for connecting to the Kafka brokers, as file
KAFKA_PRIVATE_KEYClient certificate key for connecting to the Kafka brokers, as string data
KAFKA_PRIVATE_KEY_PATHClient certificate key for connecting to the Kafka brokers, as file
KAFKA_CACertificate authority used to validate the Kafka brokers, as string data
KAFKA_CA_PATHCertificate authority used to validate the Kafka brokers, as file
KAFKA_CREDSTORE_PASSWORDPassword needed to use the keystore and truststore
KAFKA_KEYSTORE_PATHPKCS#12 keystore for use with Java clients, as file
KAFKA_TRUSTSTORE_PATHJKS truststore for use with Java clients, as file
AIVEN_SECRET_UPDATEDA timestamp of when the secret was created

Aiven has written several articles on how to configure your application. We use SSL, so ignore the SASL-SSL examples: