Skip to content

Commit

Permalink
Allow cpb to be statically compiled / exempt from FIPS compliance
Browse files Browse the repository at this point in the history
To be FIPS compliant, all binaries shipped in OCP must be dynamically linked against openssl unless they are specifically exempted (e.g. they do not perform any cryptography). The golang builder images made available for CI by ART will enforce this requirement (overriding any attempt to statically link) unless the binary is identified in this environment variable.

Signed-off-by: Alexander Greene <[email protected]>
  • Loading branch information
awgreene committed Jul 19, 2023
1 parent da9d438 commit 5c87510
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ ENV GO111MODULE auto
ENV GOPATH /go
ENV PATH $GOPATH/bin:/usr/local/go/bin:$PATH

# Permit the cpb binary to be compiled statically. The Red Hat compiler
# provided by ART will otherwise force FIPS compliant dynamic compilation.
ENV GO_COMPLIANCE_EXCLUDE="build.*operator-lifecycle-manager/util/cpb"

WORKDIR /build

# copy just enough of the git repo to parse HEAD, used to record version in OLM binaries
Expand Down

0 comments on commit 5c87510

Please sign in to comment.