Skip to content

Conversation

@frobware
Copy link
Contributor

@frobware frobware commented Apr 8, 2025

Set CGO_ENABLED=1 in all containerfiles and the Makefile to allow [1] linking against FIPS-compliant C libraries (e.g. OpenSSL).

This is a prerequisite for enabling strict FIPS runtime support:(e.g. via GOEXPERIMENT=strictfipsruntime and -tags strictfipsruntime) in downstream builds.

No functional change expected in non-FIPS environments.

[1] https://developers.redhat.com/articles/2025/01/23/fips-mode-red-hat-go-toolset#validating_fips_mode_capabilities

Signed-off-by: Andrew McDermott [email protected]

Set CGO_ENABLED=1 in all containerfiles and the Makefile to allow [1]
linking against FIPS-compliant C libraries (e.g. OpenSSL).

This is a prerequisite for enabling strict FIPS runtime support:(e.g.
via GOEXPERIMENT=strictfipsruntime and -tags strictfipsruntime) in
downstream builds.

No functional change expected in non-FIPS environments.

[1] https://developers.redhat.com/articles/2025/01/23/fips-mode-red-hat-go-toolset#validating_fips_mode_capabilities

Signed-off-by: Andrew McDermott <[email protected]>
@frobware
Copy link
Contributor Author

frobware commented Apr 9, 2025

This needs cross compiler support to work. Adding cross-compilers I found that the PPC build would intermittently fail with a SEGV. Either a genuine issue in gcc-ppc, or more likely an issue in QEMU as we're reliant on that for cross builds.

@frobware frobware closed this Apr 9, 2025
msherif1234 pushed a commit to msherif1234/bpfman-operator that referenced this pull request Apr 15, 2025
…s/component-update-ocp-bpfman-operator-bundle

chore(deps): update ocp-bpfman-operator-bundle to 2cef525
@frobware frobware deleted the set-CGO_ENABLED-to-1 branch September 3, 2025 15:50
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.

1 participant