Redis Security
Production hardening guide for Redis covering authentication, TLS, ACL least-privilege, and network lockdown.
- CCM score
- 74 of 100
- skills.sh installs
- 2.8K
- GitHub stars
- 176
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers three layers together: authentication with
requirepassor ACL users, ACL-based least-privilege access, and network exposure controls - Includes sample
redis.confTLS andbind/protected-modesettings, ACLSETUSERexamples, a command-category table, and iptables firewall rules - Enforces no-password-no-production and warns against
bind 0.0.0.0withprotected-mode no - Designed for teams deploying Redis to production, defining per-application ACL users, or auditing a deployment for hardening
Install
$ npx -y skills add redis/agent-skills --skill redis-security -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Redis Security
Production hardening for Redis: authentication, ACL-based access control, and network exposure. Cover all three together — any one of them on its own leaves an exploitable gap.
When to apply
- Deploying or reviewing a Redis instance destined for production.
- Setting up application credentials beyond a shared password.
- Auditing a Redis deployment against a security checklist.
- Receiving "Redis exposed to the internet" findings from a scanner.
1. Always authenticate (and use TLS)
Never run a production Redis without a password. Pair authentication with TLS so credentials and data aren't sent in clear text.
# redis.conf
requirepass your-strong-password
tls-port 6380
tls-cert-file /path/to/redis.crt
tls-key-file /path/to/redis.key
r = redis.Redis(
host="localhost",
port=6380,
password="your-strong-password",
ssl=True,
ssl_cert_reqs="required",
)
If you can use ACL users (next section) instead of the single requirepass, do — requirepass is effectively the legacy "default user" shortcut.
See references/auth.md.
2. ACLs for least-privilege access
Details
- Repository
- github.com/redis/agent-skills
- Categories
- Security, Databases
- First seen
- Jul 14, 2026
Questions
What does the redis-security skill help with?
The redis-security skill covers Redis authentication with requirepass and ACL users, TLS, ACL-based least-privilege access, restricting network exposure with bind and protected-mode, firewall rules, and disabling dangerous commands. It is meant for deploying Redis to production or auditing a Redis deployment for hardening.
How do I install the redis-security skill?
Run npx -y skills add redis/agent-skills --skill redis-security -y in your project. Once installed, the agent can apply Redis hardening guidance such as creating least-privilege ACL users and locking down network access.
Does the redis-security skill cover ACL users for applications?
Yes, it shows how to create dedicated ACL users per application, such as a cache-only reader or a writer that cannot run dangerous commands. It also explains command categories like @read, @write, @dangerous and @admin so each user gets only the access it needs.
Which Redis security topics does the skill address beyond authentication?
It addresses binding Redis to specific interfaces, keeping protected-mode on, and writing firewall rules that allow only application subnets. It also recommends renaming or disabling destructive commands like FLUSHALL, DEBUG and CONFIG.
More from redis/agent-skills
All 6Similar to Redis Security
More Securitylinux-hardeningbagelhole/devops-security-agent-skills912 installsPractical Linux server hardening covering SSH, users, firewall, kernel, file permissions, and auditing per CIS practice.
redis-connectionsredis/agent-skills3.3K installsPractical Redis client guidance covering pooling, pipelining, safe scanning, client-side caching, and timeouts.
django-securityaffaan-m/ecc14.4K installsDjango security guide covering authentication, authorization, SQL injection, XSS prevention, and production hardening.
api-security-hardeningaj-geddes/useful-ai-prompts872 installsPractical hardening guide for REST APIs covering auth, rate limiting, CORS, input validation, and security headers.
security-hardeningancoleman/ai-design-components180 installsLayered hardening guide covering OS, container, cloud, network, and database controls with CIS Benchmark and zero-trust guidance.
redis-best-practicesmindrally/skills2.3K installsComprehensive Redis development guide covering data structures, caching patterns, and high-availability configuration.