Skip to content

Add GOFIPS140 spec to the build commands - #74

Merged
webbnh merged 1 commit into
release-4.2.4from
proposed-4.2.4
Sep 4, 2026
Merged

Add GOFIPS140 spec to the build commands#74
webbnh merged 1 commit into
release-4.2.4from
proposed-4.2.4

Conversation

@webbnh

@webbnh webbnh commented Sep 4, 2026

Copy link
Copy Markdown
Collaborator

This is substantially the same change as in #73 which adds the additional required build switch for FIPS compliance to the release-4.2.4 branch.

@webbnh webbnh self-assigned this Sep 4, 2026
@openshift-ci
openshift-ci Bot requested a review from baijum September 4, 2026 20:02
@openshift-ci

openshift-ci Bot commented Sep 4, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: webbnh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci Bot added the approved label Sep 4, 2026
Comment thread Makefile
GODEBUG=fips140=auto CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -o "_dist/linux-amd64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GODEBUG=fips140=auto CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -o "_dist/darwin-amd64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GODEBUG=fips140=auto CGO_ENABLED=0 GOARCH=arm64 GOOS=darwin go build -o "_dist/darwin-arm64/$(BINNAME)" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm
GODEBUG=fips140=auto CGO_ENABLED=0 GOARCH=amd64 GOOS=windows go build -o "_dist/windows-amd64/$(BINNAME).exe" $(GOFLAGS) -tags '$(TAGS)' -ldflags '$(LDFLAGS)' ./cmd/helm

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit/unrelated: I have noticed an unrelated (out of scope for this PR) inconsistency:
In some v3 versions (and upstream for that matter) a -trimpath flag is used and I think we missed it in some versions of our releases. Its not breaking just something to keep in mind for the next releases for sake of good hygiene. For example in #73 in the build-cross section of a Makefile its correctly used

cc: @webbnh @baijum @sowmya-sl

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we need to find a way to have a single source for our local changes, so that we don't end up with a different version of it in each release. That way, when we add something (like -trimpath or GOFIPS140) it ends up being applied consistently (at least as we go forward).

@martinszuc

Copy link
Copy Markdown

/lgtm

@openshift-ci openshift-ci Bot added the lgtm label Sep 4, 2026
@webbnh
webbnh merged commit 9468dda into release-4.2.4 Sep 4, 2026
4 checks passed
@webbnh
webbnh deleted the proposed-4.2.4 branch September 4, 2026 23:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants