0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/api
peusebiu 168d21da1e
fix(storage): deleting manifests with identical digests (#951)
Suppose we push two identical manifests (sharing same digest) but with
different tags, then deleting by digest should throw an error otherwise
we end up deleting all image tags (with gc) or dangling references
(without gc)

This behaviour is controlled via Authorization, added a new policy
action named detectManifestsCollision which enables this behaviour

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>

Co-authored-by: Ramkumar Chinchani <rchincha@cisco.com>
2022-11-18 09:35:28 -08:00
..
config refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
constants chore: rename search route prefix (#887) 2022-10-18 20:46:06 -07:00
authn.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
authz.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
controller.go refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
controller_test.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
errors.go Update go version to 1.19 (#829) 2022-10-05 13:21:14 +03:00
errors_test.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
ldap.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
regexp.go Update go version to 1.19 (#829) 2022-10-05 13:21:14 +03:00
routes.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
routes_test.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
session.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00