0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/storage
Andrei Aaron fac1d1d05d
chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068)
1. chore(trivy): update trivy library version

The trivy team switched github.com/urfave/cli for viper so
there are some other code changes as well.

Since we don't use github.com/urfave/cli directly in our software
we needed to add a tools.go in order for "go mod tidy" to not delete it.
See this pattern explained in:
- https://github.com/99designs/gqlgen#quick-start
- https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
- https://github.com/go-modules-by-example/index/blob/master/010_tools/README.md#walk-through

The jobs using "go get -u" have been updated to use "go install", since go get
modifies the go.mod by upgrading some of the packages, but downgrading trivy to an older
version with broken dependencies

2. fix(storage) Update local storage to ignore folder names not compliant with dist spec
Also updated trivy to download the DB and cache results under the rootDir/_trivy folder

3. fix(s3): one of the s3 tests was missing the skipIt call
This caused a failure when running locally without s3 being available

4. make sure the offline scanning is enabled, and zot only downloads the trivy DB
on the regular schedule, and doesn't download the DB on every image scan

ci: increase build and test timeout as tests are reaching the limit more often

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-01-18 08:24:44 -08:00
..
cache feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
constants feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
local chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068) 2023-01-18 08:24:44 -08:00
s3 chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068) 2023-01-18 08:24:44 -08:00
cache.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_benchmark_test.go feat(cache): dynamodb implementation (#953) 2022-11-22 10:29:57 -08:00
cache_test.go refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
common.go feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
common_test.go Upgrade oras cli (#1021) 2022-11-28 10:43:53 -08:00
lint-interface.go image level lint: enforce manifest mandatory annotations 2022-07-27 11:48:04 +03:00
README.md refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
scrub.go feat(scrub): add scrub logic for ImageIndex media type (#1031) 2022-12-10 16:38:01 -08:00
scrub_test.go feat(scrub): add scrub logic for ImageIndex media type (#1031) 2022-12-10 16:38:01 -08:00
storage.go fix(storage): deleting manifests with identical digests (#951) 2022-11-18 09:35:28 -08:00
storage_controller.go storage: Move common code in helper functions, closes #730 (#820) 2022-09-30 10:35:16 -07:00
storage_test.go fix(storage): sanitize storage locks (#1003) 2022-11-22 10:13:08 -08: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