In this article
Cache isolation needs command and key permissions enforced for the actual authenticated Redis user.
The operational scenario
A cache connector prefixes keys with a tenant label and calls the storage isolated. If its Redis user can still read or write other prefixes, the naming convention does not enforce that boundary. The control needs to connect the authenticated worker identity to permitted commands and keys, including operations touching several keys. Application-generated names and storage authorization are separate decisions.
The trust-boundary mechanism
Redis ACL documentation defines command permissions and glob-style key patterns, with supported releases also distinguishing read and write key access. Selectors form independently evaluated permission sets; a command must match an applicable set rather than borrowing arbitrary fragments from unrelated selectors. A broad root permission can still authorize access despite a narrow added selector, so the effective complete user rules matter.
Define the control contract
Define the worker’s required commands, key namespaces and access directions from the actual connector workflow. Include metadata, expiration and multi-key operations where needed. Preserve Redis release and command support. Do not assume an application tenant name can be safely inserted into a glob pattern unchanged; the namespace encoding and matching rules need an explicit contract before caller-controlled labels influence authorization.
A step-by-step verification
First inspect the selected user’s effective rules without exposing its passwords. Where supported and authorized, use ACL DRYRUN to check representative commands without executing mutations. Then exercise harmless keys in a disposable store for permitted reads and writes, another namespace and a multi-key boundary case. Verify the positive cache workflow as well as denials, because an unusable connector does not establish a useful isolated service.
Evidence required for acceptance
Retain user identity, rule revision, exact command/key scenarios and expected versus observed outcomes. A control adds a broad root permission while leaving a narrow selector in place: the audit should detect the widened effective boundary. Keep permission failures separate from missing keys or connection errors. Acceptance requires evidence that commands are authorized only over the intended exercised key sets, not just that generated names look partitioned.
Failure cases and limits
ACL key control does not establish model-state compatibility, confidentiality against every administrative reader or separation of all side channels. Backup and replication privileges require their own review. This protocol creates no Redis user and changes no live cache. Its result is a scoped authorization contract complementing, rather than replacing, model revision namespaces and application-level tenant validation.
Primary references and related reading
Cache isolation needs command and key permissions enforced for the actual authenticated Redis user. Redis ACL command and key permissions; Redis ACL DRYRUN.
The proposed investigation of redis acl command key permission contract is a proposed control review; no live security test was executed. Related reading: Persistent KV cache invalidation: when a prefix stops being reusable; Milvus partition keys: tenant routing is not an authorization policy.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.