Hi:
i don’t want to show my mysql userpasword in common.runtime.properties , i find the new version 0.10.0 has the Password Provider function, but no examples.
druid.metadata.storage.connector.password
The password provider or String password used to connect with.
none
Password Provider
Environment variable password provider provides password by looking at specified environment variable. Use this in order to avoid specifying password in runtime.properties file. e.g
{
"type": "environment",
"variable": "METADATA_STORAGE_PASSWORD"
}
The values are described below.
Field
Type
Description
Required
type
String
password provider type
Yes: environment
variable
String
environment variable to read password from
Yes
could someone help me and give a example? Thanks