Skip to content
redis avatar

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
View on GitHub

Own this skill? Claim it

What it does

  • Covers three layers together: authentication with requirepass or ACL users, ACL-based least-privilege access, and network exposure controls
  • Includes sample redis.conf TLS and bind/protected-mode settings, ACL SETUSER examples, a command-category table, and iptables firewall rules
  • Enforces no-password-no-production and warns against bind 0.0.0.0 with protected-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 -y

Installs 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 6

Similar to Redis Security

More Security