Redis Config Auditor
Your redis.conf decides who can connect without a password, which networks can reach the server, and whether a crash loses your data. Read it before an attacker does.
A Redis config audit is a static review of a redis.conf file — its authentication, network, persistence and logging settings — checked line by line against known-good practice, without running the server. Paste yours here and this auditor reads it in your browser — never uploaded — and flags protected-mode off, a bind of 0.0.0.0 with no password, a missing requirepass, passwordless users, unrenamed dangerous commands, missing persistence and replication without authentication, with a 0–100 score. The companion article Redis config audit guide explains each check. Also see the MySQL/Postgres Config Auditor and the Apache Config Auditor.
Last updated:
1. Audit a config
Results
🔒 The audit runs entirely in your browser: the config is never uploaded, never stored, and never sent anywhere. A config names network bindings, file paths and access rules — that is exactly why it stays on your machine.
What a redis.conf is
A Redis config (redis.conf) is a flat list of settings, one directive value per line: port 6379, bind 127.0.0.1, requirepass .... # starts a comment, values may be quoted (save "" disables RDB snapshots), and include lines pull in other files. There are no sections — every directive lives at the top level, and a directive may appear more than once (rename-command, save, bind, user).
The directives fall into four concerns: who may connect (bind, protected-mode, requirepass, user ACL lines), whether traffic is encrypted (tls-port, tls-cert-file), what survives a crash (save, appendonly, appendfsync, rdbchecksum, maxmemory-policy), and how the server behaves under load (maxclients, timeout, slowlog, lua-time-limit). The auditor reads all four with the same scoring.
Durability is a trade-off, not a switch: appendonly no with no save schedule is fast and loses everything on a crash, while appendfsync always is the most durable and the slowest — the usual compromise is appendfsync everysec. And maxmemory-policy noeviction makes writes fail when memory fills, where allkeys-lru evicts instead. The auditor flags the risky end of each trade-off and tells you the durable value.
Two things the auditor deliberately does not follow: include lines are noted, not followed — audit each included file separately, because a clean main file can include a broken one — and the running server is out of scope: CONFIG GET can show different values from the file on disk, and the auditor never connects to a server.
What this auditor does — and what it does not
It parses the config in your browser — directive lines, comments, quoted strings and include lines — and runs 30 rules over the settings: protected-mode, bind, requirepass and ACL users, rename-command for the five dangerous commands, maxmemory and its eviction policy, AOF and RDB persistence, TLS, ports and unix sockets, timeouts, logging, replication auth, module commands and keyspace notifications. Scoring starts at 100; each error deducts 10 (capped at 50), each warning 4 (capped at 28), each info 1 (capped at 10). Bands: 90+ Excellent, 70–89 Good, 50–69 Needs work, below 50 Poor.
It does not run the server, follow include lines, or read the running values: it reads exactly the text you give it. It cannot see total RAM, so maxmemory findings never claim a size is wrong — only that no limit is set. It cannot see the running values (CONFIG GET), real network exposure, replication lag, the client list, or the contents of the keyspace. A finding is a pattern, not a verdict — a nonstandard port may be exactly what a shared host needs. Read each finding with its evidence and decide with your context.
The broken demo is a small redis.conf built to trip the rules on purpose — protected-mode off, a bind of 0.0.0.0 with no password, a passwordless default user, no renamed commands, no persistence and replication without authentication — and scores 24 (Poor), with 25 findings across all three severities. The hardened demo is the same shape with every finding fixed, and scores 100.
Be honest about what a static audit cannot see
This audit reads text. It cannot see the values the server is actually running with — a config file on disk and the running server can disagree after a missed restart — nor total RAM, real network exposure, replication lag, the client list, or what is stored in the keyspace. It also cannot see files pulled in by include lines: audit those separately, because a clean main file can include a broken one.
And a high score is not a safe Redis. The rules encode widely agreed practice — the Redis documentation on configuration, security and persistence — but they are a checklist, not a penetration test. “No findings” means no risky pattern was found in this text — not that the server behind it is secure.
Key facts
| protected-mode | Redis's guard for a server with no password: when protected-mode is yes (the default), Redis only accepts connections from the loopback interface. Turn it off with no password and anyone who can reach the port can run any command. |
| bind | The setting that picks which network interfaces Redis listens on. 127.0.0.1 means local clients only; 0.0.0.0 (or *) means every interface, including the public internet if the host is exposed. |
| requirepass | The single shared password every client must send before running a command. It is the oldest form of Redis authentication; Redis 6 and later add per-user ACLs, but requirepass is still the baseline — without it, there is no authentication at all. |
| rename-command | A directive that renames (or disables, with an empty string) a command — used to take dangerous commands such as FLUSHALL, CONFIG, EVAL and DEBUG out of reach of any client that should not have them. |
| ACL users | Redis 6+ access control lists: user lines define per-user passwords, key patterns, channels and command sets (for example +@all for every command, +@read for read-only). A user with nopass and +@all is effectively an unauthenticated superuser. |
| appendonly / appendfsync | The append-only file (AOF) logs every write so the dataset can be replayed after a crash. appendfsync decides how often it is flushed: always (every write, slowest, safest), everysec (once a second, the usual compromise) or no (let the OS decide). |
| maxmemory-policy | What Redis does when the maxmemory limit is reached: noeviction refuses new writes, allkeys-lru evicts the least-recently-used keys, volatile-lru evicts only keys with an expiry. No policy at all means the noeviction default, which fails writes. |
| Format reference | Redis Documentation — Configuration · Redis Documentation — Security · Redis Documentation — Persistence |
Frequently asked questions
Why does the audit run in my browser instead of on a server?
Because a config can name things you do not publish: network bindings, file paths, password-adjacent settings and internal hostnames. Sending that to a server to audit it would create the exact exposure the audit is meant to catch. Parsing it locally means the config never leaves your machine.
My config has findings — is my Redis unsafe?
Not necessarily. A finding is a pattern that matched, and some matches are intended: a nonstandard port on a shared host, or appendfsync no on a throwaway cache. Start with the errors — protected-mode off, a public bind with no password, no requirepass, a passwordless user — then the warnings, and treat the infos as a checklist of defaults worth setting explicitly.
requirepass or ACL users — which should I use?
Both, in that order: set a long requirepass first — it is the baseline every client must pass — then add ACL user lines for per-user limits (read-only users, key patterns, channel restrictions). A user line with nopass and +@all undoes all of it, which is why the auditor flags it as an error. Redis 6 and later support ACLs; older servers only have requirepass.