-
Notifications
You must be signed in to change notification settings - Fork 161
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
OTE-01-005 WP1: Linux Binary Hardening Recommendations #618
Comments
seems like buildmode=pie doesn't necessarily do anything if CGO is disabled |
@jackgopack4 I believe some platforms do support it and others do not (at least that's what I get from this comment: golang/go#64875 (comment) ). We could pass the option only in those platforms |
@mx-psi you're right; the error message is exactly the same and only happens on unsupported platforms. will add conditional logic and test again. |
I think the actual PR that fixes this is #726, reopening until we merge that one |
apologies for the confusion |
From the security audit:
Since we do not use CGO, I think this should be as easy as adding
-buildmode=pie
.Note
2024 OpenTelemetry security audit finding reference:
OTE-01-005 WP1: Linux Binary Hardening Recommendations
The text was updated successfully, but these errors were encountered: