Skip to content

Best way to prevent deletion #632

Answered by alexhung
nrowealign asked this question in Q&A
Discussion options

You must be logged in to vote

@nrowealign There's no magic bullet to solve this problem. Authorization is not the responsibility of the provider so we will not implement any support. You should open a feature request ticket via JFrog's support to request the repository API be controlled by roles and/or permissions (vs user type only).

In addition my suggestion is to implement a combination of policy and practices with some technical hurdle to prevent accidental deletion.

For example:

  1. Add lifecycle.prevent_destroy to the resources and set it to true. See Terraform documentation.
  2. Use gitops process and implement PR/code review, as the lifecycle.prevent_destroy must be modified in order to perform the deletion.
  3. Use CI/C…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nrowealign
Comment options

Answer selected by alexhung
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants