TTL Override¶
The following example shows how to override the default TTL for a credential.
Worker Configuration¶
Add the following configuration to your Connect worker config file to enable this ConfigProvider to be used by connectors.
#
#Thu May 27 21:15:25 UTC 2021
config.providers.keyVault.param.vault.url=https\://example.vault.azure.net/
config.providers=keyVault
config.providers.keyVault.class=com.github.jcustenborder.kafka.config.azure.KeyVaultConfigProvider
Connector Configuration¶
Add the following configurations to your connector configuration when you would like to retrieve a value from the config provider
{
"username" : "${keyVault:mysql-connector?ttl=600000:username}",
"password" : "${keyVault:mysql-connector?ttl=600000:password}"
}