Skip to content

Add redis topic prefixing #8229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dannyheard7
Copy link
Contributor

@dannyheard7 dannyheard7 commented Apr 6, 2025

It is a common pattern in Redis to use ACLs to restrict access to channels on a per-service basis, these are based on channel name matching. Currently it is not possible to use ACLs with the provided RedisPubSub since the topic prefix is passed into the formatter and hashed.

This PR prepends the prefix into the actual channel name allowing ACLs to be used.

Redis keys are binary safe therefore any string is valid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants