# Redis temporary access

[Temporary access overview](/docs/concepts/temporary-access) covers target setup, connection methods, and credential handling.

Redis (6+) uses client-computed password hashes for temporary ACL users. A Redis ACL user is
created with `ACL SETUSER <name> on #<digest>`, where `#<digest>` is the
**lowercase-hex SHA-256** of the password, stored **verbatim**. So the client
computes the digest locally and sends only that. The digest **cannot log in**:
`AUTH <user> <password>` hashes the *plaintext* it receives with SHA-256 and
compares — verifying a client needs the password, and SHA-256 is preimage-
resistant for the high-entropy machine-generated password, so a dump of the ACL
rules can't authenticate.

Like [MySQL](/docs/guides/dynamic-mysql), Redis has **no per-user expiry** (the broker's alarm-driven
`ACL DELUSER` is the only thing that ends a lease) and **no role inheritance**,
so the read-only / read-write presets apply their ACL rules **inline per user**
at mint:

- **Read-only** — `~* +@read +@connection` (read every key; the client
  handshake commands work).
- **Read-write** — the above plus `+@write`.
- **Custom** — supply your own `ACL SETUSER` / `ACL DELUSER` command templates.

> **Note:** Redis provisioning speaks **RESP, not SQL** — each rendered statement is one
>   Redis command line. The in-DO executor sends it over a `redis://`/`rediss://`
>   socket; the remote executor's provisioner runs it against the admin endpoint it
>   holds. Everything else (verifier-only minting, alarm expiry, the executor dial)
>   is identical to the SQL providers.

## Provider compatibility

`ACL SETUSER … on #<sha256>` stores the digest as-is on **Redis 6+**
(where ACLs were introduced) and Redis-compatible servers — **self-hosted,
AWS ElastiCache/MemoryDB, Valkey**. Use `rediss://` for a TLS admin endpoint
(the default on managed providers); the admin user needs the `+@admin`
permission (or just `@dangerous`) to run `ACL SETUSER`/`ACL DELUSER`.

For AWS control-plane provisioning, see [ElastiCache](/docs/guides/dynamic-elasticache) or [MemoryDB](/docs/guides/dynamic-memorydb).

See the [CLI reference](/docs/reference/cli) and [API reference](/docs/reference/api) for commands and endpoints.
