0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-20 22:52:51 -05:00
zot/pkg
Andrei Aaron 7c78f80a96
feat(cve): implement CVE scanning as background tasks (#1833)
1. Move existing CVE DB download generator/task login under the cve package
2. Add a new CVE scanner task generator and task type to run in the background, as well as tests for it
3. Move the CVE cache in its own package
4. Add a CVE scanner methods to check if an entry is present in the cache, and to retreive the results
5. Modify the FilterTags MetaDB method to not exit on first error
This is needed in order to pass all tags to the generator,
instead of the generator stopping at the first set of invalid data
6. Integrate the new scanning task generator with the existing zot code.
7. Fix an issue where the CVE scan results for multiarch images was not cached
8. Rewrite some of the older CVE tests to use the new image-utils test package
9. Use the CVE scanner as attribute of the controller instead of CveInfo.
Remove functionality of CVE DB update from CveInfo, it is now responsible,
as the name states, only for providing CVE information.
10. The logic to get maximum severity and cve count for image sumaries now uses only the scanner cache.
11. Removed the GetCVESummaryForImage method from CveInfo as it was only used in tests

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
2023-09-22 11:49:17 -07:00
..
api feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
cli feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
common fix(sync): ping func should not try to read response body (#1757) 2023-09-13 20:00:51 +03:00
compliance refactor(test): move image utils for tests in a separate module (#1789) 2023-09-15 09:53:15 -07:00
debug feat(pprof): add profiling route handler to debug runtime (#1818) 2023-09-18 14:05:41 -07:00
exporter refactor: Review metrics endpoints (#1770) 2023-09-15 14:49:34 +03:00
extensions feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
log refactor: Reduce zb binary size (#1783) 2023-09-13 10:28:14 +03:00
meta feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00
regexp chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068) 2023-01-18 08:24:44 -08:00
requestcontext refactor(authz): use a struct for user access control info operations (#1682) 2023-09-01 11:13:53 -07:00
scheduler refactor(cli): Move cmdflags package under pkg/cli/client (#1840) 2023-09-22 16:33:18 +03:00
storage fix(ci): fix nighlty builds and print zot log on failure (#1799) 2023-09-20 19:25:06 +03:00
test feat(cve): implement CVE scanning as background tasks (#1833) 2023-09-22 11:49:17 -07:00