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

Update trivy version and run as non-root by default #8

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chgl
Copy link

@chgl chgl commented Jan 30, 2021

This updates trivy and the alpine base image to the latest version.

Also runs the container as non-root by default (the new kube-trivy-exporter user). I updated the mount path and security contexts for the statefulset accordingly.

⚠Note that I removed the --enable-tracing arg and set the image to my personal build to test the changes. That's why I've marked this PR as a draft for now. Let me know if/when I should revert these parts. (It would be great if the container image could be hosted on ghcr.io or some other registry that allows hosting publicly accessible images without requiring the imagePullSecret to be set.).

@chgl chgl marked this pull request as draft January 30, 2021 17:29
@chgl chgl force-pushed the update-trivy-run-as-non-root branch from 773c56b to e7e78d9 Compare January 30, 2021 17:30
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

Successfully merging this pull request may close these issues.

1 participant