FFFF add FIPS build and FIPS separate tag by Slach · Pull Request #1988 · Altinity/clickhouse-operator · GitHub
[go: up one dir, main page]

Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,6 @@ tests/image/cache
CLAUDE.md
AGENTS.md
.claude
.omc

/.cr-release-packages
1 change: 1 addition & 0 deletions dev/go_build_universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ GOARCH=${GOARCH:-amd64}

if CGO_ENABLED=0 GO111MODULE=on GOOS="${GOOS}" GOARCH="${GOARCH}" GOFIPS140="${GOFIPS140}" go build \
-mod="vendor" \
-tags netgo,osusergo \
-a \
-ldflags " \
-X ${REPO}/pkg/version.Version=${VERSION} \
Expand Down
6 changes: 3 additions & 3 deletions dockerfile/metrics-exporter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${GOOS}" GOARCH="${GOARCH}" GOFIPS140="${
go build \
-mod=vendor \
-a \
-tags acvp_wrapper \
-tags acvp_wrapper,netgo,osusergo \
${GCFLAGS:+-gcflags "${GCFLAGS}"} \
-o /tmp/metrics-exporter \
./cmd/metrics_exporter/main.go && \
Expand Down Expand Up @@ -168,7 +168,7 @@ LABEL altinity.fips.acvp.responder="true" \
# ACVP runs typically override via --build-arg GODEBUG_FIPS140=only or `on` so
# the responder exercises the FIPS module; the default-off image is non-FIPS-
# active and inappropriate for ACVP evidence runs without an override.
ENV GODEBUG=fips140=${GODEBUG_FIPS140}
ENV GODEBUG="fips140=${GODEBUG_FIPS140}"

# Overwrite the production binary with the acvp_wrapper-tagged build and copy
# the argv0 dispatch symlink (created in acvp-builder, since distroless has
Expand Down Expand Up @@ -198,7 +198,7 @@ USER nobody
# dockerfile/operator/Dockerfile and docs/security_hardening_fips.md § "Knobs"
# for the full rationale. Customers can override at runtime via Pod env
# without rebuilding.
ENV GODEBUG=fips140=${GODEBUG_FIPS140}
ENV GODEBUG="fips140=${GODEBUG_FIPS140}"

# Run /metrics-exporter -alsologtostderr=true -v=1
# We can specify additional options, such as:
Expand Down
6 changes: 3 additions & 3 deletions dockerfile/operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ RUN CGO_ENABLED=0 GO111MODULE=on GOOS="${GOOS}" GOARCH="${GOARCH}" GOFIPS140="${
go build \
-mod=vendor \
-a \
-tags acvp_wrapper \
-tags acvp_wrapper,netgo,osusergo \
${GCFLAGS:+-gcflags "${GCFLAGS}"} \
-o /tmp/clickhouse-operator \
./cmd/operator/main.go && \
Expand Down Expand Up @@ -168,7 +168,7 @@ LABEL altinity.fips.acvp.responder="true" \
# `on` (permissive) at the dispatch level so the responder exercises the FIPS
# module; the default-off image is non-FIPS-active and inappropriate for ACVP
# evidence runs without an override.
ENV GODEBUG=fips140=${GODEBUG_FIPS140}
ENV GODEBUG="fips140=${GODEBUG_FIPS140}"

# Overwrite the production binary with the acvp_wrapper-tagged build and copy
# the argv0 dispatch symlink (created in acvp-builder, since distroless has
Expand Down Expand Up @@ -211,7 +211,7 @@ USER nobody
# "Non-security hash exclusions".
# Customers can override at runtime via Pod env (e.g. kubectl set env
# deploy/clickhouse-operator GODEBUG=fips140=on) without rebuilding.
ENV GODEBUG=fips140=${GODEBUG_FIPS140}
ENV GODEBUG="fips140=${GODEBUG_FIPS140}"

# Run /clickhouse-operator -alsologtostderr=true -v=1
# We can specify additional options, such as:
Expand Down
Loading
0