I am attempting to create a Static Role for a MySQL connection with a self hosted Vault.
Currently the process of registering a static role is limiting a user to always have the wildcard (%) hostname for any user that is connected to a static role.
I have attempted to create a Static Role on the cli:
I receive this error 1 error occurred: * error setting credentials: failed to change password: Error 1396: Operation ALTER USER failed for 'vault_admin_tes_role@localhost'@'%'
Where the vault is unable to target the correct user and host.
Am I only able to create a static role for a user with % wildcard host?
How can I create a role for a user with distinct hosts?
Just successfully upgraded to latest – 1.18.5
However, I am still facing the same problem where the vault UI has the ‘Rotation Statement’ input hidden.
Admittedly, I tested this with a Vault deployment I already had running, which was using the oracle plugin, instead of trying to match your setup. Sorry about that.
I tried running with version 1.18.5 using the mysql plugin, and I am seeing the same issue.
Possibly relevant, but I saw on the mysql plugin documentation, it does not list rotation_statements as be supported. source
However, to be thorough I also tested with the postgres plugin, which does list rotation_statements in its supported parameters and I get the same behavior on the UI, so I bet it is a bug.
Oh I see that makes sense why you were able to see it. It’s strange because I am able to make a static_role using the CLI and the API explorer with rotation statements and the MySQL db plugin. I am leaning towards this being a UI bug.