Your team wants Redis Insight pointed at production Redis: should it be allowed, from where, and with what access?
answer
- friction is not a control
- the limit belongs in the ACL
- read access is still data access
- where the GUI runs matters too
- a replica or a copy instead
basics
~20 sDefault to no standing GUI access on production: explore on lower environments or a copy, and grant a narrow ACL user, network path and time window when needed. Redis Insight's tags and confirmations are friction, not control.
solid answer
~50 sThere is no single answer, but my default is that developers explore with Redis Insight on lower environments, and production access is by exception. Where a team needs it, I give a dedicated ACL user with read commands and `INFO` but no `@dangerous` commands, so Profiler and Slow Log changes are refused by the server and bulk deletes fail per key, rather than relying on a dialog. A separate break-glass user holds `MONITOR` for on-call. I prefer a replica or a restored copy for Database Analysis, because `SAMPLES 0` walks whole collections. I treat the Production tag from 3.6 as a useful speed bump only. I also decide where it runs: the Docker image listens on `0.0.0.0` by default and stores connection passwords, so a shared deployment needs an authenticating proxy, `RI_ENCRYPTION_KEY` and `RI_DATABASE_MANAGEMENT=false`. The trade-off is slower evidence during incidents against blast radius and data exposure.
code
plaintext · 2 lines> ACL SETUSER insight-ro on >long-random-secret ~* +@read +@connection -@dangerous +info
OKgo deeper
Recall that a GUI on production can change data and slow the server, and that values you read may be sensitive. Ask which environment you are connected to before acting.
Explain what each screen needs in permissions: read commands for Browser and analysis, MONITOR for Profiler, CONFIG and SLOWLOG for Slow Log, and why INFO must be allowed.
Write the ACL rule and explain its order, say which screens it disables, and explain why the type-to-confirm step does not replace it. Consider a replica or a copy for heavy screens.
Own the standing policy: default, exception path and who approves. Weigh incident speed against blast radius and data exposure, and include where the tool runs, what it stores and what may leave it.
## The decision This is a standing policy, and the right answer depends on data sensitivity, how often on-call truly needs a GUI, and what other telemetry you have. These are the realistic options. | Option | What you gain | What it costs | |---|---|---| | No GUI on production | Smallest exposure; simple to explain | Slower ad-hoc inspection; depends on metrics and `redis-cli` | | Personal desktop, named ACL users | Traceable, narrow, nothing shared | Credentials and history on many laptops | | One shared Docker deployment | Central connections and a single network path | A hosted tool holding credentials that must be secured and owned | | Replica or restored copy only | Keeps the heavy screens off primaries | Data exposure is unchanged; a copy may be stale | ## What the GUI does to production - **Browser** runs `SCAN`, then `MEMORY USAGE key SAMPLES 0` for listed keys, which walks whole collections. - **Database Analysis** does the same work for about 10,000 keys per node. - **Profiler** holds `MONITOR` open on each node and carries full arguments to the GUI. - **Slow Log** can change server settings and clear shared entries. - **Workbench and the CLI pane** run whatever the user is allowed to run. - **Bulk Actions** deletes in an unpaced loop. There is also **data exposure**. Read access means reading values: session contents, tokens, personal data. A restricted user does not change that, and only narrower key patterns do. ## Put the limit in the ACL A dialog can be dismissed; a refused command cannot. A starting point for a read-mostly user: ```text > ACL SETUSER insight-ro on >long-random-secret ~* +@read +@connection -@dangerous +info OK ``` Rules apply left to right, so the order carries meaning. - `+@read` covers `SCAN`, `TYPE`, `TTL`, `MEMORY USAGE` and value reads. - `+@connection` allows the connection handling, such as naming the client. - `-@dangerous` then takes out `KEYS`, `CLIENT KILL` and `INFO`, and makes sure `MONITOR`, `CONFIG` and `SLOWLOG` stay out. - `+info` puts `INFO` back, which the documentation requires for a connection with a username. With that user, Browser and Database Analysis work, apart from recommendations that need `CONFIG GET`, which silently go missing. Profiler is refused with a permission error. Writes in Workbench fail, and a bulk delete records a failure per key. Test each screen you intend to allow before relying on the rule, because the set of commands a client sends can change between releases. On-call can have a separate user with `+monitor` and `+slowlog|get`, used for a limited window. Use **named users**, not one shared login, so a denied command in `ACL LOG` points at a person. ## Why the tag is not the control Redis Insight 3.6 added **Dev vs Production** classification, still present in 3.8. A Production connection gets a PROD badge and a type-to-confirm step for bulk delete, dangerous commands and starting Profiler, and tutorials cannot run commands against it. This is worthwhile friction against slips, but it is not a control: - The default for new and existing connections is **Unspecified**, so someone must choose the tag. - It lives in Redis Insight, so a colleague's connection to the same server may not have it. - The dangerous-command list comes from `ACL CAT dangerous`. If the user may not run that, the list is empty and that prompt does not fire. - The server knows nothing about it, and accepts whatever the ACL allows. ## Where it runs and what it stores - **Address.** Desktop defaults to `127.0.0.1` on port 5530. Docker defaults to `0.0.0.0` on port 5540, so a shared deployment is reachable unless the network says otherwise. The documentation's example adds its login at a reverse proxy. - **Stored secrets.** Database passwords and Workbench history sit locally in SQLite. `RI_ENCRYPTION_KEY`, for Docker, encrypts them. - **Central connections.** `RI_DATABASE_MANAGEMENT=false` stops users adding, editing or deleting connections, and `RI_REDIS_HOST` or `RI_PRE_SETUP_DATABASES_PATH` preconfigure them. - **Data leaving.** The Redis Copilot **my data** chat may send schemas and sample keys to its backend, and debug settings such as `LOGGER_OMIT_DATA=false` can put sensitive data into logs. Saved Profiler files and stored reports hold key names and arguments. - **Licence.** Redis Insight is under SSPL, so if you host it for others, have that reviewed. ## How I would decide 1. **Classify the data.** Regulated data in values pushes hard toward no direct access. 2. **Check the real need.** If metrics and logs answer most incidents, a GUI is an occasional exception. 3. **Set the default and the exception path,** including who approves and how long access lasts. 4. **Encode it** in ACL users and network rules rather than a wiki page. 5. **Review it** when the team, data or tooling changes.
- Does pointing Redis Insight at a replica solve the production question?It helps with load, not exposure. Heavy screens stay off the primary, and with `replica-read-only yes`, the default, writes are refused. But the replica holds the same data, its traffic may matter if it serves reads, and a cluster connection's analysis still chooses primaries unless you connect to a single node.
- When would you allow Redis Insight's Profiler on production?During an incident the other evidence cannot explain, by on-call using a time-limited user with `MONITOR`, for a short window while watching latency. Saved logs get treated as sensitive, because arguments include values. If that need recurs, I would invest in better telemetry rather than make the exception routine.
- Why not simply require the Production tag on every connection in Redis Insight?Because it cannot be enforced from the server, which never sees the tag. It is set per connection inside the tool. Centrally preconfigured connections reduce mistakes on a shared deployment, but desktop users choose their own. Keep it as a helpful reminder, and put the actual limit in ACLs and network rules.
- The Production tag in Redis Insight stops writes from reaching production databases.
- A read-only ACL user makes the GUI harmless because read commands cost nothing.
- Read-only access is not sensitive because nothing can be changed through it.
- A shared Redis Insight is safe to expose on the network because Redis has a password.
- One shared admin connection for the whole team carries no extra risk.
Assumes Redis Insight 3.8; the Dev vs Production classification arrived in 3.6.