I’m researching Vault to use it for MySQL auth. I’ve started a docker container with the following config
{
"backend": {
"file": {
"path": "/vault/file"
}
},
"listener": {
"tcp":{
"address": "0.0.0.0:8200",
"tls_disable": 1
}
},
"ui": true
}
After unseal, i’ve enabled the database secret:
$ vault secrets enable database
Success! Enabled the database secrets engine at: database/
Then tried to config the database credentials as follows:
vault write database/config/mysql-database \
plugin_name=mysql-database-plugin \
connection_url="{{username}}:{{password}}@tcp(myserver.example.com:3306)/" \
allowed_roles="vault-mysql-role" \
username="vault" \
password="vault"
After a while, i get:
Error writing data to database/config/mysql-database: context deadline exceeded
No errors shown in the Logs.
I’ve recreated the container, but the same happens. Do i need to configure something else before i can use this? I’ve found some examples on the web but some are out of date and others aren’t very clear about the procedure.