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

[gke-operator][epic] VEX related improvements for the build process #782

Closed
macedogm opened this issue Jan 9, 2025 · 3 comments
Closed
Assignees
Labels
kind/enhancement New feature or request kind/epic

Comments

@macedogm
Copy link
Member

macedogm commented Jan 9, 2025

The VEX Hub initiative in rancher/vexhub is now a mature project in Rancher where we generate VEX reports for known false-positive CVEs in our projects (images and binaries).

In order for VEX to fully work and for security scanners (e.g., Trivy) to correctly match a VEX entry in our VEX Hub with a Go binary being scanned, the Go binary must have its full package path inside of it. Example:

> go version -m bin/gke-operator | head -n 3
bin/gke-operator: go1.23.4
	path	github.com/rancher/gke-operator
	mod	github.com/rancher/gke-operator	(devel)

When a Go binary is compiled by specifying directly the file as go build main.go as opposed to go build ., the binary won't contain the package path.

> go version -m bin/gke-operator | head -n 2
bin/gke-operator: go1.23.4
	path	command-line-arguments

In the above case, the security scanner won't be able to match the binary with its respective VEX entry.

Further automation that we developed internally also relies on identifying the commit ID from where the binary was built.

Some branches of gke-operator have the needed package path, but lack the commit ID. We'll propose some PRs to help improve the build process and add the needed information for Rancher's VEX Hub project. None of those PRs are expected to affect the code's behavior and features, as they are only metadata information.

@kkaempf kkaempf moved this to Backlog in CAPI / Turtles Jan 10, 2025
@kkaempf kkaempf changed the title [gke-operator] VEX related improvements for the build process [gke-operator][epic] VEX related improvements for the build process Jan 10, 2025
@kkaempf
Copy link

kkaempf commented Jan 10, 2025

@macedogm all related PRs have been merged. I assume this epic can be considered done !?

@macedogm
Copy link
Member Author

@kkaempf yes, we can close it. Thanks so much for your support on this 🙇🏻

@github-project-automation github-project-automation bot moved this from Backlog to Done in CAPI / Turtles Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request kind/epic
Projects
Archived in project
Development

No branches or pull requests

2 participants