[Bug][Backend] Vulnerabilities detected by Trivy #8263
Labels
component/config-ui
This issue or PR relates to config-ui
devops
Something about CI/CD (devops)
severity/p1
This bug affects functionality or significantly affect ux
type/bug
This issue is a bug
Search before asking
What happened
Similar to issue #6792
We use https://trivy.dev/ to scan images before deploying. Trivy reports a long list of high and critical vulnerabilities on devlake backend since last month. I'm using devlake release v1.0.1. (btw thanks for devlake, it's a very helpful tool, I'm using it to get a gist on how we're doing DORA-wise)
My report shows:
What do you expect to happen
I can see that you're using debian bullseye, which is eol. The vulnerabilities seem to originate from python-slim-bullseye.
Would you kindly update all images so you're using debian bookworm?
(I do see golang 1.20.4-bullseye, I'm not at home with golang, it would mean to upgrade at least to 1.20.5 as that's avaliable https://hub.docker.com/layers/library/golang/1.20.5-bookworm/images/sha256-3a27e287139274678c9907646e35acddc4c5498a21e8c97f6f3b040355f4a225)
It would also perhaps be helpful to use cve scan on dockerhub (docker scout I believe), or implement a cve scan in your own pipelines? And some tooling like renovate for regular updates of dependencies?
For me, I can no longer run devlake as our dependency scanning is strict and has to be repeated quite often. I'm down atm because of this (and I fully agree with our security team on this). I'm a bit surprised no-one else encountered this, besides the reported issue #6792.
How to reproduce
Run a cve scan on backend version 1.0.1
Anything else
No response
Version
v1.0.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: