redis avatar

Redis Security

Production Redis security in one skill: authentication, ACL users, and network lockdown. Covers the full stack from requirepass and TLS setup through least-privilege ACL rules (cache readers, writers, admins) to bind configuration and firewall rules. The three-layer approach is the key insight here. Too many deploys do auth alone and still get breached because Redis is bound to 0.0.0.0. Use this when hardening a deployment, setting up app credentials beyond a shared password, or responding to "Redis exposed to internet" scanner findings. The ACL command categories and blast-radius framing make it easier to explain least privilege to teams used to sharing one password.

skills.sh installs
2.6K
GitHub stars
175
last updated
Aug 21, 2026

Install

$ npx -y skills add redis/agent-skills --skill redis-security --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/redis/agent-skills
Categories
Backend & APIs, Security, AI & Agent Building, Databases
First seen
Jul 14, 2026

More from redis/agent-skills

All 8
1langgenius avatarbackend-code-reviewlanggenius/difyUse only when the user explicitly requests a review or audit of backend code under `api/`. Supports pending-change, file-focused, and pasted-diff reviews. Do no2.1Kskills.sh installs
2onmax avatarnuxt-better-authonmax/nuxt-skillsUse when implementing auth in Nuxt apps with @onmax/nuxt-better-auth - provides useUserSession composable, server auth helpers, route protection, and Better Aut2.1Kskills.sh installs
3adobe avatarauthadobe/skillsAuthenticate with AEM Edge Delivery Services. Opens browser for login and captures token. Works for admin.hlx.page and Config Service APIs regardless of content1.5Kskills.sh installs
4jezweb avatarcloudflare-worker-builderjezweb/claude-skillsScaffold and deploy Cloudflare Workers with Hono routing, Vite plugin, and Static Assets. Describe project, scaffold structure, configure bindings, deploy. Use 1.4Kskills.sh installs
5iswalle avatargetnote-authiswalle/getnote-cliManage authentication for Get笔记 CLI1.2Kskills.sh installs
6next-safe-action avatarsafe-action-middlewarenext-safe-action/skillsUse when implementing middleware for next-safe-action -- authentication, authorization, logging, rate limiting, error interception, context extension, or creati1.2Kskills.sh installs