Skip to content

Feature request: configurable safeguards against misconfiguration #5512

@imax9000

Description

@imax9000

I have accidentally misconfigured FluxInstance to point to an empty directory, and Flux gleefully proceeded to delete everything it was managing before :)

It would be nice to have some basic configurable sanity checks to require manual confirmation in a situation where all or almost all of the inventory is about to be deleted.


Additional considerations:

  • It should probably apply only when the managing resource itself is not getting deleted. E.g., if the user deletes Kustomization or HelmRelease - they probably intended for the relevant resources to be deleted too. OTOH, if Kustomization suddenly evaluates to just 1 object instead of 100 - that is very likely to be a mistake.
  • There are obviously cases when the user actually intends to delete a lot of things at once, and an extra step of manual approval could be annoying. To improve UX in that situation it could be useful to signal upfront that the decrease in object count is expected (e.g., in a commit message or OCI container annotation)

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