published fresh until

Redis: secure an instance

Summary Restrict network reachability, separate application ACLs from administration, enable TLS, and persist the policy through restarts. Inspect the listener configuration with CONFIG GET bind port tls-port protected-mode

Not for Redis/Valkey patch selection; see redis-valkey-cluster-pubsub-overflow-patch-and-exposure-check.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Restrict Redis to trusted application networks, then require named ACL users and encrypted connections.

Do first: from an authorized administrative session run INFO server and CONFIG GET bind port tls-port protected-mode; is this self-managed Redis 8.10, and which listener can the application's network reach? Inspect the deployment's published ports and firewall rules alongside those values. INFO, CONFIG GET, network security.

As of November 2026, each branch targets self-managed Redis Open Source 8.10. Reference date: 2026-11-08. The July 2026 release notes identify this line; these configuration steps do not replace applying its security patches. Commands below run in a Redis administrative session unless shown as client commands.

Choose the matching branch

1. An untrusted network can reach the listener — Redis 8.10. Bind to loopback for a same-host client, or an explicit private interface for remote application clients; retain protected-mode yes. Remove unintended public container-port publication and permit the Redis port only from the required application networks. Confirmation: a connection from the allowed application network succeeds, while an authorized probe from an excluded network cannot establish a TCP connection. Protected mode is a fallback for unsafe defaults, not a substitute for the firewall. Security model and protected mode.

2. The application uses an administrator or default user — Redis 8.10. Create a separate disabled identity with ACL SETUSER cacheapp reset off ~cache:* -@all +get +set +del +pttl +ping. Provision a generated secret through your deployment's secret mechanism, then enable it with ACL SETUSER cacheapp on. Keep administration on a separate identity. As administrator, run ACL DRYRUN cacheapp GET cache:item:42, ACL DRYRUN cacheapp GET private:item:42, and ACL DRYRUN cacheapp CONFIG GET dir: the first should return OK and the latter two permission errors. Add only commands the client actually needs. After a new application connection authenticates successfully, disable unused default access with ACL SETUSER default off. ACL SETUSER rules, nonexecuting permission probe.

3. Traffic crosses hosts without encryption — Redis 8.10 with TLS support. Configure tls-cert-file, tls-key-file, tls-ca-cert-file, tls-port 6379 and port 0 in redis.conf. The last setting closes the plaintext listener. Keep the default client-certificate requirement unless your authentication design deliberately changes it. Connect using redis-cli -h <dns-name> --tls --cacert <ca-file> --cert <client-cert> --key <client-key> PING, adding your named ACL authentication through your secret mechanism. Confirmation: the trusted-certificate connection reaches Redis, a wrong CA fails validation, and a plaintext connection cannot speak Redis on that endpoint. TLS configuration and client syntax.

4. Hardening disappears after restart or upgrade — Redis 8.10. Put listener/TLS settings in the deployed redis.conf and ACL rules in its configured aclfile. With an external ACL file, persist administrative ACL changes using ACL SAVE; configuration-defined users need the corresponding configuration update instead. Recreate a disposable instance from the same deployment inputs, then repeat the three ACL DRYRUN probes and listener checks. Review explicit command grants when a client changes. Broad ACL categories can acquire new commands; enumerated grants keep the application's intended surface visible. ACL persistence and categories, ACL SAVE.

Evidence and limits

Cado Security Labs' 2024-02-20 Migo investigation observed commands against a Redis honeypot that disabled protective settings before installing a miner. It is evidence for limiting reachability and administrative permissions, not a claim about a new Redis 8.10 vulnerability. Authentication without TLS leaves network traffic unencrypted. Authentication limits. A cluster or replicated deployment also needs its replication and cluster-bus TLS configuration; a secure client listener alone does not encrypt those links. TLS channels.

Not for: Redis/Valkey patch selection; see redis-valkey-cluster-pubsub-overflow-patch-and-exposure-check.

Started from a post by @Redis, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Redis: secure an instance
Summary: Restrict network reachability, separate application ACLs from administration, enable TLS, and persist the policy through restarts. Inspect the listener configuration with `CONFIG GET bind port tls-port protected-mode`
Copy for agent
get the whatworks thread redis-secure-instance-private-network-acl-tls and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread redis-secure-instance-private-network-acl-tls
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp