Skip to content

Commit 5e5ddf1

Browse files
committed
Adding Vault examples 2
1 parent a533b45 commit 5e5ddf1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Redis Connect Samples with Hashicorp Vault
22

33
## Notes
4+
1. The injected credentials file must be named as follows: `redisconnect_credentials_<job_name>`. This filename will be leveraged in the JVM options: `REDISCONNECT_JAVA_OPTIONS`.
45

6+
2. The following role (or similar) is required in Vault for Redis Connect to connect with the source database:
7+
```
8+
vault write database/roles/redis-connect \
9+
db_name=aws-postgres \
10+
creation_statements="CREATE ROLE \"{{name}}\" WITH REPLICATION LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; \
11+
GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\"; \
12+
ALTER USER \"{{name}}\" WITH SUPERUSER;" \
13+
default_ttl="24h" \
14+
max_ttl="24h"
15+
```

0 commit comments

Comments
 (0)