-
Notifications
You must be signed in to change notification settings - Fork 32
CBL-Mariner: the fips
compiler does not support CGO_ENABLED=0
#492
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
Comments
This is a a design limitation. OpenSSL functions are loaded at runtime using There is a proposal to make those functions work without cgo, but the chances of it getting implemented in the near future are next to zero due to technical limitations. |
The compile error is now fixed in this new set of releases:
However, this doesn't make it so Go will produce FIPS-compatible code when the Go toolset was built without cgo enabled. As noted, that is not possible with the current design: cgo must be enabled to produce build FIPS-compatible apps. The fix just allows the Go standard library crypto fallback to work in this case. We are tracking another change that will make sure Go will Is this issue asking to fix the compile error, or to make FIPS compatibility not require cgo? (The title and description of the issue don't seem to me like they quite match up. The title seems to be asking for the latter.) If it's requesting that FIPS compatibility shouldn't require cgo, can you explain why enabling cgo isn't reasonable for CBL-Mariner's build of Go? |
I think I should apologise for my wording of the issue. I should have written
Yes!, It is asking to fix the compiler error. I only wanted to point out that, using
No!, Absolutely not. It is not asking for FIPS compatibility should not require CGO :) Thanks for the prompt response. I think we can close the issue. |
What did we do ?
fips
compliant go compiler on CBL-Mariner as a drop in replacement for the upstream compiler.CGO_ENABLED=0
How did we build the
fips compiler
?go1.4
go1.18.0
]What Happened ?
moby-buildx
]What did we expect ?
Related Issues/PRs:
microsoft/go
& bump version to 1.18.0 azurelinux#2545microsoft/go
& bump version to 1.16.15 azurelinux#2507The text was updated successfully, but these errors were encountered: