Skip to content

COO-1739: build: enable strictfipsruntime and CGO for COO Go images#2875

Open
danielmellado wants to merge 1 commit intorhobs:release-1.4from
danielmellado:release-1.4-fips
Open

COO-1739: build: enable strictfipsruntime and CGO for COO Go images#2875
danielmellado wants to merge 1 commit intorhobs:release-1.4from
danielmellado:release-1.4-fips

Conversation

@danielmellado
Copy link
Copy Markdown
Contributor

@danielmellado danielmellado commented Mar 20, 2026

Align Konflux Docker builds with Red Hat FIPS-oriented Go (OpenSSL-backed
crypto): set GOTOOLCHAIN=local, CGO_ENABLED=1, and GOEXPERIMENT=strictfipsruntime
on alertmanager, observability-operator, prometheus, and thanos builder
stages.

Admission webhook: build via explicit go build with CGO enabled instead of
the upstream Makefile recipe (CGO_ENABLED=0), so binaries pass
openshift/check-payload validation. Fix webhook binary COPY path.

Thanos: correct go build flags (-mod=mod -tags=netgo).

hack/analyze-xcrypto-fips.sh: inventory golang.org/x/crypto reachability for
all git submodule roots with go.mod (OCPSTRAT-1882 helper).

Tekton (get-submodule-commit-labels): the get-submodule-sha step used
buildah-task:2296080, which does not ship git, so CI failed with "git: command
not found" after the Konflux image bump (#2846). Run that step
on digest-pinned ubi9-minimal and install git-core before querying submodule
HEAD.

Signed-off-by: Daniel Mellado dmellado@fedoraproject.org

Align Konflux Docker builds with Red Hat FIPS-oriented Go (OpenSSL-backed
crypto): set GOTOOLCHAIN=local, CGO_ENABLED=1, and GOEXPERIMENT=strictfipsruntime
on alertmanager, observability-operator, prometheus, and thanos builder
stages.

Admission webhook: build via explicit go build with CGO enabled instead of
the upstream Makefile recipe (CGO_ENABLED=0), so binaries pass
openshift/check-payload validation. Fix webhook binary COPY path.

Thanos: correct go build flags (-mod=mod -tags=netgo).

hack/analyze-xcrypto-fips.sh: inventory golang.org/x/crypto reachability for
all git submodule roots with go.mod (OCPSTRAT-1882 helper).

Tekton (get-submodule-commit-labels): the get-submodule-sha step used
buildah-task:2296080, which does not ship git, so CI failed with "git: command
not found" after the Konflux image bump (rhobs#2846). Run that step
on digest-pinned ubi9-minimal and install git-core before querying submodule
HEAD.

Signed-off-by: Daniel Mellado <dmellado@fedoraproject.org>
@danielmellado danielmellado changed the title build: enable strictfipsruntime and CGO for COO Go images COO-1739: build: enable strictfipsruntime and CGO for COO Go images Mar 25, 2026
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