0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-16 21:56:37 -05:00
zot/pkg/meta
Andrei Aaron bcdd9988f5
fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810)
1. Only scan CVEs for images returned by graphql calls
Since pagination was refactored to account for image indexes, we had started
to run the CVE scanner before pagination was applied, resulting in
decreased ZOT performance if CVE information was requested

2. Increase in medory-cache of cve results to 1m, from 10k digests.

3. Update CVE model to use CVSS severity values in our code.
Previously we relied upon the strings returned by trivy directly,
and the sorting they implemented.
Since CVE severities are standardized, we don't need to pass around
an adapter object just for pagination and sorting purposes anymore.
This also improves our testing since we don't mock the sorting functions anymore.

4. Fix a flaky CLI test not waiting for the zot service to start.

5. Add the search build label on search/cve tests which were missing it.

6. The boltdb update method was used in a few places where view was supposed to be called.

7. Add logs for start and finish of parsing MetaDB.

8. Avoid unmarshalling twice to obtain annotations for multiarch images.

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-09-17 15:12:20 -07:00
..
boltdb fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
common feat(pagination): move pagination and sorting image summary results after conversion (#1637) 2023-07-31 22:16:09 +03:00
dynamodb feat: upload cosign public key and notation certificates to cloud (#1744) 2023-09-08 10:03:58 +03:00
types feat: upload cosign public key and notation certificates to cloud (#1744) 2023-09-08 10:03:58 +03:00
version feat: upload cosign public key and notation certificates to cloud (#1744) 2023-09-08 10:03:58 +03:00
hooks.go feat(pagination): move pagination and sorting image summary results after conversion (#1637) 2023-07-31 22:16:09 +03:00
hooks_test.go refactor(test): move image utils for tests in a separate module (#1789) 2023-09-15 09:53:15 -07:00
meta.go feat: upload cosign public key and notation certificates to cloud (#1744) 2023-09-08 10:03:58 +03:00
meta_test.go feat: upload cosign public key and notation certificates to cloud (#1744) 2023-09-08 10:03:58 +03:00
parse.go fix(cve): cummulative fixes and improvements for CVE scanning logic (#1810) 2023-09-17 15:12:20 -07:00
parse_test.go refactor(test): move image utils for tests in a separate module (#1789) 2023-09-15 09:53:15 -07:00