-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Deny wildcard subscriptions but allow literals #2667
Description
Feature Request
There should be a feature to deny wildcard subscriptions, but allow literal-variable subscriptions. This would be huge in preventing wiretap situations.
For example,
I should be able to subscribe to: "client.69f3-432f-s234", but not to "client.*", without having to of had entered "69f3-432f-s234" already in the NATS configuration file for specifically "client.69f3-432f-s234".
Use Case:
This is useful for those of us who incorporate application-level GUIDs into topic names and do not want others to be able to easily listen to all communications to all GUIDs.
Proposed Change:
A change in the configuration file to allow for the denial of wildcard subscriptions, but acceptance of wildcard subscriptions that are entered literally.
Who Benefits From The Change(s)?
Everyone who wants to prevent wiretapping.
Alternative Approaches
I've seen other mention the JWT approach, but that is a lot more complicated and cumbersome to implement. A simple option to exclude wildcard subscriptions while allowing literal variable subscriptions