-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Description
Does your feature request solve a problem? Please describe.
A useful Harbor feature would be the ability to deactivate specific artifacts. In organizations with a large number of artifacts, especially those that are regularly decommissioned, there is a risk of accidentally deleting artifacts that may still be needed. Deactivating artifacts would allow them to be effectively hidden or removed from active use before permanently deleting them.
Describe the solution you'd like to see
Provide project maintainers with the ability to deactivate any artifact within their project. Deactivated artifacts would be ignored by all Harbor functions, and only users with "project maintainer" privileges or higher would be able to either reactivate or delete them.
Describe the main design/architecture of your solution
Each artifact could have a boolean field (e.g., "isActive") to indicate its active status. A toggle button in the GUI would allow users to change the artifact's state between "active" and "inactive." When responding to Docker commands or API calls, Harbor should return an appropriate error message indicating that the artifact is inactive.