Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate SBOM error when deployed by HTTP #20407

Closed
chlins opened this issue May 9, 2024 · 0 comments · Fixed by #20416
Closed

Generate SBOM error when deployed by HTTP #20407

chlins opened this issue May 9, 2024 · 0 comments · Fixed by #20416

Comments

@chlins
Copy link
Member

chlins commented May 9, 2024

Error generating SBOM when deployed using docker compose by HTTP.

2024-05-09T02:34:33Z [INFO] [/pkg/scan/job.go:412]: {
  "uuid": "c7dd4e90-0b4d-11ef-96a8-0242ac1a0009",
  "name": "Trivy",
  "description": "The Trivy scanner adapter",
  "url": "http://trivy-adapter:8080",
  "disabled": false,
  "is_default": true,
  "health": "healthy",
  "auth": "",
  "access_credential": "[HIDDEN]",
  "skip_certVerify": false,
  "use_internal_addr": true,
  "adapter": "Trivy",
  "vendor": "Aqua Security",
  "version": "v0.50.1",
  "create_time": "2024-05-06T02:10:16.533262Z",
  "update_time": "2024-05-06T02:10:16.533264Z"
}
2024-05-09T02:34:33Z [INFO] [/pkg/scan/job.go:412]: {
  "registry": {
    "url": "http://core:8080",
    "authorization": "[HIDDEN]"
  },
  "artifact": {
    "namespace_id": 2,
    "repository": "huggingface/transformers-pytorch-gpu",
    "tag": "",
    "digest": "sha256:79676c7b423707324c7aaaf77d2cae526f920b5412a0dfcdc220069c065f18a3",
    "mime_type": "application/vnd.oci.image.manifest.v1+json",
    "size": 11705227304
  },
  "enabled_capabilities": null
}
2024-05-09T02:34:33Z [INFO] [/pkg/scan/job.go:174]: Report mime types: [application/vnd.security.sbom.report+json; version=1.0]
2024-05-09T02:34:33Z [INFO] [/pkg/scan/job.go:231]: Get report for mime type: application/vnd.security.sbom.report+json; version=1.0
2024-05-09T02:34:35Z [ERROR] [/pkg/scan/sbom/sbom.go:107]: error when create accessory from image Get "https://145.40.81.171:8888/v2/": http: server gave HTTP response to HTTPS client
2024-05-09T02:34:35Z [ERROR] [/pkg/scan/job.go:309]: Failed to convert vulnerability data to new schema for report 10205fa4-37fc-46b7-943b-d7c771b84574, error Get "https://145.40.81.171:8888/v2/": http: server gave HTTP response to HTTPS client
wy65701436 added a commit to wy65701436/harbor that referenced this issue May 11, 2024
fixes goharbor#20407
It needs to specify the insecure option on parsing the reference

Signed-off-by: wang yan <wangyan@vmware.com>
@wy65701436 wy65701436 mentioned this issue May 11, 2024
5 tasks
wy65701436 added a commit to wy65701436/harbor that referenced this issue May 11, 2024
fixes goharbor#20407
It needs to specify the insecure option on parsing the reference

Signed-off-by: wang yan <wangyan@vmware.com>
wy65701436 added a commit that referenced this issue May 13, 2024
fixes #20407
It needs to specify the insecure option on parsing the reference

Signed-off-by: wang yan <wangyan@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants