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

Disable UPX for binaries shipped in images #3316

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

skitt
Copy link
Member

@skitt skitt commented Feb 25, 2025

Compressing Go binaries with UPX prevents scanners from evaluating them, which reduces the accuracy of scanning results for example on Quay. The disadvantage is a substantial increase in image size:

  • gateway: 167MiB → 234MiB
  • globalnet: 41MiB → 76MiB
  • route-agent: 155MiB → 223MiB

Compressing Go binaries with UPX prevents scanners from evaluating
them, which reduces the accuracy of scanning results for example on
Quay. The disadvantage is a substantial increase in image size:

* gateway: 167MiB → 234MiB
* globalnet: 41MiB → 76MiB
* route-agent: 155MiB → 223MiB

Signed-off-by: Stephen Kitt <[email protected]>
@submariner-bot
Copy link
Contributor

🤖 Created branch: z_pr3316/skitt/disable-upx-images
🚀 Full E2E won't run until the "ready-to-test" label is applied. I will add it automatically once the PR has 2 approvals, or you can add it manually.

@skitt
Copy link
Member Author

skitt commented Feb 25, 2025

See https://quay.io/repository/skitt/submariner-route-agent/manifest/sha256:77225e214af4cc910b46c33dd5b131bf56ffd05c30fdb5141a1b99f93bb2e703?tab=packages for an example of the scanning results available with uncompressed Go binaries.

@tpantelis tpantelis requested a review from dfarrell07 February 26, 2025 17:29
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.

3 participants