Helm chart trivy the java-db is missing no update like normal DB #10189
Replies: 2 comments 5 replies
-
|
Hello @marinhio75 The size of the trivy-java-db database is quite large and downloading it for every user would significantly slow down Trivy's performance. Therefore for trivy-java-db we use different logic: If you want the database to be downloaded in advance, then as you correctly wrote, you can use the Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your quick reply. I understand the logic, but it doesn't make Trivy any faster if I have to download the Java database beforehand. Ideally, once downloaded, it would update automatically like the other database. That would be perfect. Right now, if I want to automate this, I have to create a role with role binding to set up a simple cron job just to update the database every day. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Question
Hi,
I deployed the helm chart Trivy to our Kubernetes Cluster (no, not the trivy-operator, need scans for images outside of kubernetes). So far, so good, but I was surprised that the Java database wasn't there.
Okay, I can still install it with
trivy image --download-java-db-only --java-db-repository $TRIVY_JAVA_DB_REPOSITORY.Setting up a simple cron job is a huge hassle involving a role and role bindings, etc.
It would be great to integrate the Java database with an automated download like the regular database.
Does someone has an suggestion? Or a solution how to get it?
Load balancer knows the DNS adress, but inside the pod its missing, so if i start trivy with server ... the dns is unkown, but with IP Adress it works hmm
Any ideas why? Thank you!
Best regards
Marinhio
Target
Kubernetes
Scanner
Vulnerability
Output Format
JSON
Mode
Client/Server
Operating System
kubectl 1.32
Version
~ $ trivy -v Version: 0.69.1 Vulnerability DB: Version: 2 UpdatedAt: 2026-02-12 06:48:08.083436615 +0000 UTC NextUpdate: 2026-02-13 06:48:08.083436255 +0000 UTC DownloadedAt: 2026-02-12 07:18:02.658677362 +0000 UTC Java DB: Version: 1 UpdatedAt: 2026-02-08 01:35:35.381861997 +0000 UTC NextUpdate: 2026-02-11 01:35:35.381861736 +0000 UTC DownloadedAt: 2026-02-12 08:02:01.44516072 +0000 UTCBeta Was this translation helpful? Give feedback.
All reactions