0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/test/mocks
Ramkumar Chinchani aaee0220e4
Merge pull request from GHSA-55r9-5mx9-qq7r
when a client pushes an image zot's inline dedupe
will try to find the blob path corresponding with the blob digest
that it's currently pushed and if it's found in the cache
then zot will make a symbolic link to that cache entry and report
to the client that the blob already exists on the location.

Before this patch authorization was not applied on this process meaning
that a user could copy blobs without having permissions on the source repo.

Added a rule which says that the client should have read permissions on the source repo
before deduping, otherwise just Stat() the blob and return the corresponding status code.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
Co-authored-by: Petu Eusebiu <peusebiu@cisco.com>
2024-07-08 11:35:44 -07:00
..
cache_mock.go Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00
cve_mock.go feat(cve): cli cve diff (#2242) 2024-03-06 10:40:29 +02:00
image_store_mock.go Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00
lint_mock.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
oci_mock.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
repo_db_mock.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
secrets_manager_mock.go fix: add retry logic to recreate existing trustpolicy secret (#1776) 2023-09-11 10:13:22 +03:00
storage_driver_mock.go Update go version to 1.19 (#829) 2022-10-05 13:21:14 +03:00
sync_remote_mock.go fix(sync): added bearer client for sync (#2222) 2024-02-14 09:18:10 -08:00