Skip to content

Commit 128f611

Browse files
authored
Merge pull request #120 from Disper/gofips140
fips-140
2 parents 7ff2bc3 + 7ba6e40 commit 128f611

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ COPY pkg/ pkg/
2121
# was called. For example, if we call make docker-build in a local env which has the Apple Silicon M1 SO
2222
# the docker BUILDPLATFORM arg will be linux/arm64 when for Apple x86 it will be linux/amd64. Therefore,
2323
# by leaving it empty we can ensure that the container and binary shipped on it will have the same platform.
24-
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o manager cmd/main.go
24+
RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} GOFIPS140=v1.0.0 go build -a -o manager cmd/main.go
2525

2626
# Use distroless as minimal base image to package the manager binary
2727
# Refer to https://github.com/GoogleContainerTools/distroless for more details
@@ -30,4 +30,5 @@ WORKDIR /
3030
COPY --from=builder /project_workspace/manager .
3131
USER 65532:65532
3232

33+
ENV GODEBUG=fips140=only,tlsmlkem=0
3334
ENTRYPOINT ["/manager"]

0 commit comments

Comments
 (0)