Staging

The following example us prefixes all secrets with staging-.

Worker Configuration

Add the following configuration to your Connect worker config file to enable this ConfigProvider to be used by connectors.

Worker Configuration
#
#Wed May 26 19:24:36 UTC 2021
config.providers.secretManager.param.secret.prefix=staging-
config.providers.secretManager.class=com.github.jcustenborder.kafka.config.gcloud.SecretManagerConfigProvider
config.providers=secretManager
config.providers.secretManager.param.project.id=123454234

Connector Configuration

Add the following configurations to your connector configuration when you would like to retrieve a value from the config provider

Connector Configuration
{
  "username" : "${secretManager:mysql-connector:username}",
  "password" : "${secretManager:mysql-connector:password}"
}