Skip to content

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

@foxis

Description

@foxis

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions