Skip to content

harbor-scanner-adapter #35

@Kilz78

Description

@Kilz78

Hello,

The scanning with Harbor seems to not works properly.

Harbor version : Version v2.0.0-87602132
Harbor-scanner-adapter : harbor-scanner-adapter:1.0.1
Kubectl version :

Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.14", GitCommit:"0fd2b5afdfe3134d6e1531365fdb37dd11f54d1c", GitTreeState:"clean", BuildDate:"2021-08-11T18:07:41Z", GoVersion:"go1.15.15", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"21+", GitVersion:"v1.21.3-mirantis-1", GitCommit:"f90619200aa730bdf8ee6b723ce3bbae6f66fef7", GitTreeState:"clean", BuildDate:"2021-08-14T15:51:58Z", GoVersion:"go1.16.6", Compiler:"gc", Platform:"linux/amd64"}

Anchore-Engine Helm Chart : Version: 1.18.6

Error on harbor :

2022-07-29T16:21:36Z [INFO] [/pkg/scan/job.go:156]: Report mime types: [application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0 application/vnd.scanner.adapter.vuln.report.raw+json]
2022-07-29T16:21:36Z [ERROR] [/pkg/scan/job.go:319]: scan job: submit scan request: v1 client: submit scan: general response handler: invalid character '<' looking for beginning of value

on the scanner adapter pod (kubectl logs) :

time="2022-07-29T16:20:39Z" level=info msg="handling request" accept="application/vnd.scanner.adapter.metadata+json; version=1.0" content-type= method=GET url=/api/v1/metadata
time="2022-07-29T16:20:39Z" level=debug msg="vulnerability DB update timestamp retrieved" db_update_timestamp="2022-07-29 16:11:17 +0000 UTC"
time="2022-07-29T16:20:39Z" level=info msg="sending json response"

Thanks...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions