Blueprints · Docker & Databases
Production
15 min · Redis / Valkey
Redis ACL file
Stages an ACL that disables the default user and adds an application user. It does not restart Redis.
Live config
Baked-in protections
- The default user is off
- The app user is not the default
- The file is staged
Step 1 · conf
ACL file
/root/portgate-blueprints/users.acl
Replace the password before you point Redis at this file. Keep the server on 127.0.0.1.
user default off user app on >change-me ~* &* +@all
Step 2 · bash
Read-only check
/root/portgate-blueprints/redis-acl-check.sh
Prints status. It does not change the service.
#!/bin/sh set -eu ss -tulpn | grep 6379 || echo "Nothing is listening on 6379."