refactor(setup-db): to run trivy in docker #54
Reference in New Issue
Block a user
Delete Branch "feat-wrap-trivy-runtime-in-docker"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As part of our safety initiative, I'm refactoring setup-db to run trivy inside a Docker container with minimal privileges, reducing leakage of secrets, files, etc. to a minimum in case the dependency gets compromised.
Additionally, we are always pinning the trivy docker image to a fixed digest. Renovate has been configured to keep the Trivy image version up-to-date.
0946c898b6toefef29591bfeat!: increase trivy securityto refactor(setup-db): to run trivy in dockerThe changes align with the PR title and description, implementing Docker-based Trivy isolation with digest pinning. Security measures like --read-only, --cap-drop, and --security-opt are appropriately applied. Renovate configuration for Trivy image updates is correctly added.