Skip to content
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

Users should not be allowed to create/remove streams, only consumers #7

Open
foxis opened this issue Mar 1, 2024 · 0 comments
Open

Comments

@foxis
Copy link
Collaborator

foxis commented Mar 1, 2024

This affects experimental JetStream support.

Currently AddStream and RemoveStream methods of Service will create a stream and remove a stream respectively. This is fine as long as our Brokers allow stream management for regular users. However, in the future, only developers should be able to create streams for their subscriber profiles, and thus configure account limits for JetStream.

Also, since developers should issue users their credentials, developers will be able to set permissions and limits for each user individually.

Right now AddStream creates a stream and a consumer, and RemoveStream will remove the whole stream with all the consumers. This breaks a lot of potential use cases.

The proposed solution:

  • AddStream only adds a JetStream consumer to existing stream
  • RemoveStream only removes JetStream consumer from an existing stream
  • Stream creation with account-wide limits should be done by developer(currently manually using nats cli)
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

No branches or pull requests

1 participant