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

creating scan job creating scan job using external trivy adapter #21766

Open
tangyanhan opened this issue Mar 21, 2025 · 3 comments
Open

creating scan job creating scan job using external trivy adapter #21766

tangyanhan opened this issue Mar 21, 2025 · 3 comments
Assignees
Labels
kind/question more-info-needed The issue author need to provide more details and context to the issue

Comments

@tangyanhan
Copy link

If you are reporting a problem, please make sure the following information are provided:

Expected behavior and actual behavior:

External trivy adapter should work with harbor properly

Steps to reproduce the problem:

  1. Install trivy adapter with helm chart separately
  2. Add trivy adapter and the status says 'Healthy'
  3. Use this external trivy adapter to scan images and the job soon failed with log:
2025-03-21T10:37:33Z [INFO] [/pkg/scan/job.go:167]: Report mime types: [application/vnd.security.vulnerability.report; version=1.1]
2025-03-21T10:37:34Z [ERROR] [/pkg/scan/job.go:370]: scan job: submit scan request: v1 client: submit scan: enqueuing scan job: creating scan job creating scan job: write tcp 172.21.9.169:52842->172.21.9.181:6379: write: broken pipe: general response handler: unexpected status code: 500, expected: 202

Versions:
Please specify the versions of following systems.

  • harbor version: [v2.10.3-c8c11b46]
@Vad1mo
Copy link
Member

Vad1mo commented Mar 21, 2025

can you share your config?

@MinerYang
Copy link
Contributor

Could you please share your logs of harbor-jobservice and the redis log?

@MinerYang MinerYang added the more-info-needed The issue author need to provide more details and context to the issue label Mar 24, 2025
@tangyanhan
Copy link
Author

can you share your config?


![Image](https://github.com/user-attachments/assets/68ec111c-42e5-4ed9-b2ce-6121535e3e49)

This trivy adapter is actually installed independently with helm install and standalone redis instance, while the harbor system was installed with offline installer, which has a builtin trivy adapter as well. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question more-info-needed The issue author need to provide more details and context to the issue
Projects
None yet
Development

No branches or pull requests

4 participants