Describe the bug
It throws error
Error reading database/creds/my-role: Error making API request.
URL: GET http://127.0.0.1:8200/v1/database/creds/my-role
Code: 500. Errors:
* 1 error occurred:
* Error 1470: String 'v-root-my-role-04yrqqq9psw9282p5' is too long for user name (should be no longer than 16)
To Reproduce
Steps to reproduce the behavior:
vault write database/roles/my-role db_name=my-mysql-database creation_statements="CREATE USER '{{name}}'@'%' IDENTIFIED BY '{{password}}';GRANT SELECT ON *.* TO '{{name}}'@'%';" default_ttl="20s" max_ttl="1m"Output:
Success! Data written to: database/roles/my-role
Expected behavior
The mysql user should be of less than 16 char or there should be other way to specify the number of character
Environment:
vault status): 0.10.1vault version): Vault v0.10.1 ('756fdc4587350daf1c65b93647b2cc31a6f119cd')PS: It works fine the same way with deprecated MySQL Secrets Engine.
The mysql-legacy-database-plugin plugin type exists for this exact reason, could you try using that version?
Oh, mysql-legacy-database-plugin is working fine. So, the update on mysql-database-plugin is on way? Or there is other way to use it? Thanks. @briankassouf
There are no plans to update mysql-database-plugin for this issue. mysql-legacy-database-plugin is exactly the same except it is compatible with older versions of MySQL.
Most helpful comment
There are no plans to update
mysql-database-pluginfor this issue.mysql-legacy-database-pluginis exactly the same except it is compatible with older versions of MySQL.