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

Send deleted repository resources to Artifactory trash when destroying #1094

Open
pshutt97 opened this issue Oct 9, 2024 · 5 comments
Open
Assignees
Labels
enhancement New feature or request no API support We can't implement it, because there is no public API support

Comments

@pshutt97
Copy link

pshutt97 commented Oct 9, 2024

Is your feature request related to a problem? Please describe.
When running the destroy command or any command that affects the presence of resources not within the STATEFILE, the resource is immediately wiped from storage and the database. It's also not sent to the trash like other deletion processes currently do in Artifactory. This can cause possible irrecoverable data loss due to an incorrect command that is run.

Describe the solution you'd like
It would be ideal to mitigate possible impactful data loss by sending destroyed repository resources to the trash, along with their artifacts, instead of being completely wiped from the application. This way, in case of an accident with running Terraform, data can be restored if necessary.

@pshutt97 pshutt97 added the enhancement New feature or request label Oct 9, 2024
@alexhung
Copy link
Member

alexhung commented Oct 9, 2024

@pshutt97 Thanks for the suggestion. The current Artifactory API for repository deletion does not support moving repository to Trash.

I'll make a feature request internally to the Artifactory team. I encourage you to also do the same with your JFrog customer support contact.

@alexhung alexhung added the no API support We can't implement it, because there is no public API support label Oct 9, 2024
@pshutt97
Copy link
Author

pshutt97 commented Oct 9, 2024

@pshutt97 Thanks for the suggestion. The current Artifactory API for repository deletion does not support moving repository to Trash.

I'll make a feature request internally to the Artifactory team. I encourage you to also do the same with your JFrog customer support contact.

Thanks Alex! He had actually directed me to create this. Should I also open a support ticket as well?

@alexhung
Copy link
Member

alexhung commented Oct 9, 2024

@pshutt97 Yes because this is not specifically a TF provider issue. This feature must be added to the Artifactory API first before I can add support for it in the provider.

@pshutt97
Copy link
Author

pshutt97 commented Oct 9, 2024

Awesome, thanks!!!

@alexhung
Copy link
Member

Related to #1069

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request no API support We can't implement it, because there is no public API support
Projects
None yet
Development

No branches or pull requests

2 participants