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

Vault creates mysql Secret Engines Connection error, mysql password contains # error, parsed as %23 #29377

Open
lvpeixin opened this issue Jan 22, 2025 · 0 comments

Comments

@lvpeixin
Copy link

Describe the bug
Vault creates mysql Secret Engines Connection error, mysql password contains # error, parsed as %23

To Reproduce
Steps to reproduce the behavior:

  1. Run vault secrets enable --path=db-mysql database
  2. Run vault write db-mysql/config/admin-mysql-connection \ plugin_name=mysql-database-plugin \ connection_url="{{username}}:{{password}}@tcp(mysql.vault.svc.cluster.local:3306)/" \ allowed_roles="create-mysql-user-role" \ username="v11@uat#test" \ password="v22@test" \ disable_escaping=true \ max_open_connections=10
  3. See error
    Error writing data to db-mysq/config/admin-mysql-connection: Error making API request.

URL: PUT https://127.0.0.1:8200/v1/db-mysql/config/admin-mysql-connection
Code: 400. Errors:

  • error creating database object: error verifying - ping: Error 1045 (42000): Access denied for user 'v11@uat%23test'@'mysql.vault.svc.cluster.local' (using password: YES)

Expected behavior
A clear and concise description of what you expected to happen.

Environment:

  • Vault Server Version (retrieve with vault status): 1.16.1
  • Vault CLI Version (retrieve with vault version): v1.16.1
  • Server Operating System/Architecture: Alpine Linux v3.18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants