Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature to get MySQL password from Vault, instead of config file. #883

Open
Dmitry-Eremeev opened this issue Oct 15, 2024 · 0 comments

Comments

@Dmitry-Eremeev
Copy link

It would be nice to implement security feature to get some credentials from Vault, e.g. mysql password.

Dmitry-Eremeev added a commit to Dmitry-Eremeev/mysqld_exporter that referenced this issue Oct 15, 2024
To use the feature we need to set the following options in
config section 'client':

use_vault = true
vault_address = http://<IP_ADDRESS:<IP_PORT>
vault_role_id = <ROLE_ID>
vault_secret_id = <SECRET_ID>
vault_secret_path = <deployments/<UNIT>/dev/user/passwords_yml>
vault_secret_mount_path = <secret_v2>
credential_name_in_vault_secret = <prometheus_mysql_exporter_database_password>

prometheus#883
Dmitry-Eremeev added a commit to Dmitry-Eremeev/mysqld_exporter that referenced this issue Oct 15, 2024
To use the feature we need to set the following options in
config section 'client':

use_vault = true
vault_address = http://<IP_ADDRESS:<IP_PORT>
vault_role_id = <ROLE_ID>
vault_secret_id = <SECRET_ID>
vault_secret_path = <deployments/<UNIT>/dev/user/passwords_yml>
vault_secret_mount_path = <secret_v2>
credential_name_in_vault_secret = <prometheus_mysql_exporter_database_password>

prometheus#883
Signed-off-by: Mitya_Eremeev <[email protected]>
Dmitry-Eremeev added a commit to Dmitry-Eremeev/mysqld_exporter that referenced this issue Oct 15, 2024
To use the feature we need to set the following options in
config section 'client':

use_vault = true
vault_address = http://<IP_ADDRESS:<IP_PORT>
vault_role_id = <ROLE_ID>
vault_secret_id = <SECRET_ID>
vault_secret_path = <deployments/<UNIT>/dev/user/passwords_yml>
vault_secret_mount_path = <secret_v2>
credential_name_in_vault_secret = <prometheus_mysql_exporter_database_password>

prometheus#883
Signed-off-by: Mitya_Eremeev <[email protected]>
Dmitry-Eremeev added a commit to Dmitry-Eremeev/mysqld_exporter that referenced this issue Oct 15, 2024
To use the feature we need to set the following options in
config section 'client':

use_vault = true
vault_address = http://<IP_ADDRESS:<IP_PORT>
vault_role_id = <ROLE_ID>
vault_secret_id = <SECRET_ID>
vault_secret_path = <deployments/<UNIT>/dev/user/passwords_yml>
vault_secret_mount_path = <secret_v2>
credential_name_in_vault_secret = <prometheus_mysql_exporter_database_password>

prometheus#883
Signed-off-by: Mitya_Eremeev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant