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

Improve Trivy configuration #7154

Merged
merged 1 commit into from
Apr 3, 2023
Merged

Improve Trivy configuration #7154

merged 1 commit into from
Apr 3, 2023

Conversation

macedogm
Copy link
Member

@macedogm macedogm commented Mar 27, 2023

Proposed Changes

  1. Simplify Trivy install process in Dockerfile.dapper.
  2. Improve Trivy output during the scan to make it more readable (using Go's Template).
    1. Current output:
      image
    2. Improved output:
Target - Severity - ID - Package - Vulnerable Version - Fixed Version

bin/containerd - CRITICAL - CVE-2022-1996 - github.com/emicklei/go-restful - v2.9.5+incompatible - 2.16.0
bin/containerd - HIGH - CVE-2022-41721 - golang.org/x/net - v0.1.1-0.20221027164007-c63010009c80 - 0.1.1-0.20221104162952-702349b0e862
bin/containerd - HIGH - CVE-2022-41723 - golang.org/x/net - v0.1.1-0.20221027164007-c63010009c80 - 0.7.0
bin/runc - HIGH - CVE-2021-33194 - golang.org/x/net - v0.0.0-20201224014010-6772e930b67b - 0.0.0-20210520170846-37e1c6afe023
bin/runc - HIGH - CVE-2021-44716 - golang.org/x/net - v0.0.0-20201224014010-6772e930b67b - 0.0.0-20211209124913-491a49abca63
bin/runc - HIGH - CVE-2022-27664 - golang.org/x/net - v0.0.0-20201224014010-6772e930b67b - 0.0.0-20220906165146-f3363e06e74c
bin/runc - HIGH - CVE-2022-41723 - golang.org/x/net - v0.0.0-20201224014010-6772e930b67b - 0.7.0

Vulnerabilities - Critical: 1, High: 6
  1. Add UpdateCLI automation to keep Trivy up to date. Example update PR https://github.com/macedogm/k3s/pull/11.

Types of Changes

Verification

Testing

Linked Issues

User-Facing Change

N/A


Further Comments

Signed-off-by: Guilherme Macedo <guilherme.macedo@suse.com>
@macedogm macedogm changed the title [DNT] Update Trivy Improve Trivy configuration Mar 28, 2023
@macedogm macedogm marked this pull request as ready for review March 28, 2023 01:45
@macedogm macedogm requested a review from a team as a code owner March 28, 2023 01:45
@macedogm
Copy link
Member Author

CC @matttrach

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.

4 participants