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
$ vault read database/roles/api-prod
Key Value
creation_statements ["CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; \
GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";"]
db_name apiprod
default_ttl 300
max_ttl 3600
renew_statements []
revocation_statements []
rollback_statements []
$ vault write database/roles/api-prod db_name=apiprod creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" default_ttl=1h max_ttl=24h
I also tried replacing the double quotes on the creation statement with single quotes and got this:
Actual Behavior:
$ vault read database/roles/api-prod
Key Value
creation_statements ["CREATE ROLE \\\"{{name}}\\\" WITH LOGIN PASSWORD {{password}} VALID UNTIL {{expiration}}; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \\\"{{name}}\\\";"]
db_name apiprod
default_ttl 3600
max_ttl 86400
renew_statements []
revocation_statements []
rollback_statements []
Steps to Reproduce:
$ vault write database/roles/api-prod db_name=apiprod creation_statements='CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";' default_ttl=1h max_ttl=24h
The text was updated successfully, but these errors were encountered:
I'm trying to set up PostgreSQL in the database secrets engine through the Vault browser CLI in the UI. I've been following the instructions and steps from the documentation: https://www.vaultproject.io/docs/secrets/databases/postgresql.html
Environment:
Expected Behavior:
Actual Behavior:
Steps to Reproduce:
I also tried replacing the double quotes on the creation statement with single quotes and got this:
Actual Behavior:
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: