This commit is contained in:
Vassiliy Yegorov
2022-08-25 14:10:23 +07:00
parent 1e6377dc46
commit 5cc8cd3321
2 changed files with 4 additions and 22 deletions

View File

@@ -12,9 +12,9 @@ vault secrets enable -path=psql database
vault write psql/config/test-psql \
plugin_name=postgresql-database-plugin \
allowed_roles="db1-role" \
connection_url="postgresql://{{username}}:{{password}}@psql:5432/postgres?sslmode=disable" \
connection_url="postgresql://{{username}}:{{password}}@psql:5432/testdb1?sslmode=disable" \
username="testuser" \
password="passw0rd"
password="password"
```
2. добавляем роль