harbor/src/api/scan
He Weiwei 21349e30af
feat(middleware,vulnerable): add image index checking for vulnerability prevention (#11084)
1. Skip vulnerability prevention checking when artifact is not
scannable.
2. Skip vulnerability prevention checking when artifact is image index
and its type is `IMAGE` or `CNAB`.
3. Skip vulnerability prevention checking when the artifact is pulling
by the scanner.
4. Change `hasCapability` from blacklist to whitelist.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-03-19 10:48:19 +08:00
..
all_handler.go feat(scan): support to scan image index (#11001) 2020-03-12 19:30:12 +08:00
base_controller_test.go feat(middleware,vulnerable): add image index checking for vulnerability prevention (#11084) 2020-03-19 10:48:19 +08:00
base_controller.go feat(middleware,vulnerable): add image index checking for vulnerability prevention (#11084) 2020-03-19 10:48:19 +08:00
checker_test.go feat(middleware,vulnerable): add image index checking for vulnerability prevention (#11084) 2020-03-19 10:48:19 +08:00
checker.go feat(middleware,vulnerable): add image index checking for vulnerability prevention (#11084) 2020-03-19 10:48:19 +08:00
controller.go feat(scan): support to scan image index (#11001) 2020-03-12 19:30:12 +08:00
options.go Scan reorganize (#10735) 2020-02-19 12:21:54 +08:00