Closed bainss closed 1 year ago
Hi @bainss , could you please elaborate the process how you add Anchore
, it seems that Harbor cannot get the external scanner meta data.
it looks that scanner spec is using /api/v1
could you please check your anchore api version? it seems that the latest anchore is using swagger 2.0
When trying to add the external service I see the following in the browser when in developer mode...
/api/v2.0/scanners/ping:1 Failed to load resource: the server responded with a status of 500 () /api/v2.0/scanners/ping:1 Failed to load resource: the server responded with a status of 500 () DevTools failed to load source map: Could not load content for chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/browser-polyfill.js.map: System error: net::ERR_FILE_NOT_FOUND polyfills.af4f4bbe373e95ea.js:1 POST https://REDACTED/api/v2.0/scanners/ping 500
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.
This issue was closed because it has been stalled for 30 days with no activity. If this issue is still relevant, please re-open a new issue.
Trying to add an external pluggable-scanner as per https://goharbor.io/docs/2.6.0/administration/vulnerability-scanning/pluggable-scanners/
However I get an error :
Ping: registration Anchore:https:// is unreachable
logs give me
[/controller/scanner/base_controller.go:298][error="v1 client: get metadata: : general response handler: unexpected status code: 404, expected: 200" requestID="522f692f5df3e89f1f401075ca670e1f"]: failed to ping scanner 2022-10-20T08:49:26Z [ERROR] [/lib/http/error.go:54]: {"errors":[{"code":"UNKNOWN","message":"scanner controller: ping: v1 client: get metadata: : general response handler: unexpected status code: 404, expected: 200"}]}
Steps to reproduce the problem: Please provide the steps to reproduce this problem.
try to add an external scan provider (Anchore)
Versions:
Additional context:
installed with Helm
harbor.yml
and files in the same directory, including subdirectory./var/log/harbor/
.From the UI in developer mode I can also see
POST https:///api/v2.0/scanners/ping 500