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

Can I use it by separately installing adapter 0.30.7 in harbor 2.2 in an offline environment? #312

Open
jeongseog-kim opened this issue Mar 9, 2023 · 0 comments

Comments

@jeongseog-kim
Copy link

Trivy is installed and used as default in Harbor 2.2 in an offline environment. However, since the trivy version is 0.16.0, the trivy offline DB is no longer updated.
Simply, if you update to Trivy offline DB v2 and scan, an error occurs due to a DB version error.

What did you expect to happen:
So, in order to update Trivy DB to v2 and use it, I would like to install Trivy Adapter 0.30.7 in a new VM environment and add it to Harbor 2.2.
By the way, looking at the version metric information, it is explained that Harbor 2.5.1 or higher must be used to use Trivy adapter 0.30.7.
I want to configure with Harbor 2.2.0 + Trivy Adapter 0.30.7.
Is this version available?

Environment:
Harbor Setup : Centos7.9, Installed with docker compose
Trivy Adapter : Centos7.9, Running as a docker container in a VM on centos OS

  • Harbor version: 2.2.0
  • Harbor Scanner Adapter for Trivy version: 0.30.7
  • Harbor installation process : Install trivy adapter by referring to issue 73
    docker run --name trivy-adapter-vm -d --rm
    -p 8181:8181
    -e "SCANNER_LOG_LEVEL=trace"
    -e "SCANNER_TRIVY_DEBUG_MODE=true"
    -e "SCANNER_API_SERVER_ADDR=:8181"
    -e "SCANNER_TRIVY_SKIP_UPDATE=true"
    -e "SCANNER_REDIS_URL=redis://redis:6379"
    -e "SCANNER_STORE_REDIS_URL=redis://redis:6379"
    -e "SCANNER_JOB_QUEUE_REDIS_URL=redis://redis:6379"
    -e "SCANNER_TRIVY_INSECURE=true"
    -e "TRIVY_NON_SSL=true"
    --network trivy-adapter
    aquasec/harbor-scanner-trivy:0.30.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant