0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/test
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
..
mocks fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
common.go feat(artifact): add OCI references support (#936) 2022-11-08 00:38:16 -08:00
common_test.go refactor(digests): standardise representation of digests to digest.Digest (#898) 2022-10-22 13:46:13 -07:00
dev.go graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00
inject_test.go chore(lint): gci to separate zot from other imports (#870) 2022-10-20 09:39:20 -07:00
prod.go graphql: Apply authorization on /_search endpoint 2022-08-26 21:31:26 +03:00