You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When rotating root password fails to be stored in the storage backend the database connection config is broken. The used storage backend is MySQL. It appears vault is rotating the root credentials even though the new credentials are never persisted. Breaking the database config.
To Reproduce
I've created a docker-compose test case with some scripts to ease reproducing the issue.
my.cnf:
[client]
host = localhost
user = root
password = root
Describe the bug
When rotating root password fails to be stored in the storage backend the database connection config is broken. The used storage backend is MySQL. It appears vault is rotating the root credentials even though the new credentials are never persisted. Breaking the database config.
To Reproduce
I've created a docker-compose test case with some scripts to ease reproducing the issue.
my.cnf
:config.hcl
:scripts/configure-mysql.sh
:scripts/configure-vault.sh
:scripts/rotate-userdb-pw.sh
:scripts/test-vault.sh
:scripts/vault-unseal.sh
:scripts/.vault-env
:docker-compose.yaml
:Steps to reproduce the behavior:
docker-compose up -d
docker-compose exec userdb /scripts/configure-mysql.sh
docker-compose restart vault
docker-compose exec vault vault operator init
scripts/.vault-env
and unseal keys inscripts/vault-unseal.sh
docker-compose exec vault /scripts/vault-unseal.sh
docker-compose exec vault /scripts/configure-vault.sh
docker-compose exec vault /scripts/test-vault.sh
docker-compose stop vaultdb
docker-compose exec vault /scripts/rotate-userdb-pw.sh
docker-compose start vaultdb
docker-compose restart vault
docker-compose exec vault /scripts/vault-unseal.sh
docker-compose exec vault /scripts/test-vault.sh
- This failsExpected behavior
If the there are errors during the root password rotation, everything should be rolled back and continue to work.
Environment:
vault status
): 1.0.1vault version
): 1.0.1Vault server configuration file(s):
The text was updated successfully, but these errors were encountered: