Skip to content

Accounts removed even though Jetstreams remain #27

@kejne

Description

@kejne

Problem / Use Case

Whenever an account has Jetstream enabled and the account is deleted, the NATS health checks will start failing due to NATS trying to recover the data.

See issue: nats-io/nats-server#3186

Proposal

Since NAuth is aiming at deploying NATS multi-tenancy in a declarative approach, NAuth should not simply purge the Jetstream data upon account deletion.
The user could be using NACK or by simply using the CLI to create the jetstreams, so it is up to the user to manage the life cycle of the jetstreams.

  • NAuth should validate if the account has been cleared of jetstreams before removing the account.
  • The account should not be deleted until all data within the account has been removed
  • The condition and events should clearly state this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions