./gradlew clean build shadowJar
-
Copy uberjar to
/usr/share/java/kafka/
. -
Configure provider in Kafka Connect.
config.providers=secrets
config.providers.secrets.class=com.github.gustajz.kafka.config.provider.KubernetesSecretConfigProvider
config.providers.secrets.param.namespace=default
If you are using Docker or Kubernetes, you can set environment variables
CONNECT_CONFIG_PROVIDERS: secrets CONNECT_CONFIG_PROVIDERS_SECRETS_CLASS: com.github.gustajz.kafka.config.provider.KubernetesSecretConfigProvider CONNECT_CONFIG_PROVIDERS_SECRETS_PARAM_NAMESPACE: default
- Configure connector with secure properties.
username=${secrets:my-secret:my_username_key}
password=${secrets:my-secret:my_password_key}
This project is licensed under the Apache License Version 2.0 (see LICENSE).