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 <greene.al1991@gmail.com>
  • Loading branch information
awgreene committed Jul 24, 2023
1 parent da9d438 commit a2f0634
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="*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 a2f0634

Please sign in to comment.