Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Harbor failed to connect on trivy-adapter api since v0.31.0 #482

Open
dedsxc opened this issue May 31, 2024 · 2 comments
Open

Harbor failed to connect on trivy-adapter api since v0.31.0 #482

dedsxc opened this issue May 31, 2024 · 2 comments

Comments

@dedsxc
Copy link

dedsxc commented May 31, 2024

What steps did you take and what happened:

  1. deploy harbor components version 2.10.2.
  2. on harbor portal, open the configuration of trivy adapter and click on Test connection.
  3. harbor-core failed to connect with error
2024-05-31T21:02:46Z [ERROR] [/lib/http/error.go:57]: {"errors":[{"code":"UNKNOWN","message":"missing application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0 or application/vnd.security.vulnerability.report; version=1.1 in produces_mime_types"}]}

What did you expect to happen:

harbor should connect successfully to trivy adapter api. This error was introduced in harbor-scanner-trivy v0.31.0

Environment:

  • Harbor version: 2.10.2
  • Harbor Scanner Adapter for Trivy version: v0.31.2
@kingnarmer
Copy link

Running into same issue. Hope it's fixed on next release.

@piyush94
Copy link

piyush94 commented Sep 9, 2024

Getting the same issue in Harbor 2.8.6

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants