0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-03-04 02:02:49 -05:00
zot/pkg/storage
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 Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00
common fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
constants feat(retention): added image retention policies (#1866) 2023-11-01 09:16:18 -07:00
gc fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
imagestore Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00
local remove unnecessary calls to storage driver (#2432) 2024-06-04 11:39:18 -07:00
s3 remove unnecessary calls to storage driver (#2432) 2024-06-04 11:39:18 -07:00
types Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00
cache.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
cache_benchmark_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
cache_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
README.md refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
scrub.go fix(oras)!: remove ORAS artifact references support (#2294) 2024-03-06 12:16:42 -08:00
scrub_test.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
storage.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
storage_controller.go refactor: rename go module from zotregistry.io/zot to zotregistry.dev/zot (#2187) 2024-01-31 20:34:07 -08:00
storage_test.go Merge pull request from GHSA-55r9-5mx9-qq7r 2024-07-08 11:35:44 -07:00

zot currently supports two types of underlying filesystems:

  1. local - a locally mounted filesystem

  2. remote - a remote filesystem such as AWS S3

The cache database can be configured independently of storage. Right now, zot supports the following database implementations:

  1. BoltDB - local storage. Set the "cloudCache" field in the config file to false. Example: examples/config-boltdb.json