mirror of
https://github.com/apache/druid.git
synced 2025-02-13 13:34:58 +00:00
* add_environment_variable_DynamicConfigProvider * fix code * code fixed * code fixed * add document * fix doc * fix doc * add more unit test * fix style * fix document * bug fixed * fix unit test * fix comment * fix test Co-authored-by: yuanyi <yuanyi@freewheel.tv>
2.1 KiB
2.1 KiB
id | title |
---|---|
dynamic-config-provider | Dynamic Config Providers |
Druid's core mechanism of supplying multiple related set of credentials/secrets/configurations via Druid extension mechanism. Currently, it is only supported for providing Kafka Consumer configuration in Kafka Ingestion.
Eventually this will replace PasswordProvider
Users can create custom extension of the DynamicConfigProvider
interface that is registered at Druid process startup.
For more information, see Adding a new DynamicConfigProvider implementation.
Environment variable dynamic config provider
EnvironmentVariableDynamicConfigProvider
can be used to avoid exposing credentials or other secret information in the configuration files using environment variables. An example to use this configProvider
is:
druid.some.config.dynamicConfigProvider={"type": "environment","variables":{"secret1": "SECRET1_VAR","secret2": "SECRET2_VAR"}}
The values are described below.
Field | Type | Description | Required |
---|---|---|---|
type |
String | dynamic config provider type | Yes: environment |
variables |
Map | environment variables to get information from | Yes |