Securing Valkey in Production: Developer Best Practices
summary
Concrete production patterns for Valkey 9.1–9.2: map client certificates to ACL identities so a cert inherits ACL permissions, enforce least-privilege ACLs that block admin commands like FLUSHALL and CONFIG and restrict key patterns per service, use DB=N per-database ACLs for tenant isolation, assign reusable roles with ACL set user / ACL get user / ACL digest for verification, integrate enterprise LDAP for auth while keeping ACLs for authorization, reuse pooled mTLS/TLS connections and rely on automatic background certificate reload and INFO expiry visibility.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:21Why the caching layer needs security
- 3:18Authentication vs. authorization
- 5:39Mapping mTLS client certificates to ACL users
- 6:25Least-privilege ACLs for each service
- 9:12Isolating data across tenants
- 10:33Per-database ACLs in Valkey 9.1
- 11:49New ACL commands for roles, inspection, and policy checks
- 16:57Securing the connection: TLS and connection pooling
- 18:22Automatic certificate reload and expiry visibility
- 21:28Enterprise identity with LDAP
- 24:01Putting the layers together
