Skip to content

Namespace Rabbit Redis keys for shared instances - #32

Merged
theboringhumane merged 1 commit into
sudofrom
feature/redis-key-prefix
Oct 9, 2026
Merged

theboringhumane merged 1 commit into
sudofrom
feature/redis-key-prefix

Conversation

@theboringhumane

Copy link
Copy Markdown
Contributor

Rabbit currently writes generic session:* and port_lock:* keys, which prevents a narrow service namespace when sharing Redis. Add RABBIT_REDIS_KEY_PREFIX to namespace all cache, session, counter and lock keys, including owner-safe Lua release. Empty configuration preserves existing keys.

The prefix accepts 2–128 ASCII characters, starts with a letter or digit, ends with :, and rejects ACL glob patterns and escapes before either database connection starts. The shared Redis guide covers ACL commands, verified TLS and coordinated prefix changes.

Validation on the dedicated Linux VM: full server tests, database tests with the race detector, vet and server build. Real disposable Redis/PostgreSQL tests cover legacy keys, independent prefixes, foreign-key and Lua ACL denials, token allocation, sessions and scoped revocation. CI requires the two new live gates to pass. Owned fixture cleanup is verified separately.

Signed-off-by: theboringhumane <me@iamharsh.dev>
@theboringhumane
theboringhumane merged commit 265d967 into sudo Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant