You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Change GOFIPS140=v1.0.0 instead of certified - #7219
Use GOFIPS140=v1.0.0 instead of GOFIPS140=certified.
Ensure fips artifacts fail if GODEBUG=fips140=off is set.
How does this PR solve the problem?
Change env var set on build to GOFIPS140=v1.0.0.
Add a function that validates the runtime after the logger has been initialized, on non-fips artifacts this function is a nop, fips artifacts will check if fips is enabled and error out if it's disabled.
The error is emitted as a error level log, and directly to stderr and the process will exit with a non-zero status code.
Buildkite failed on commit 0e0a983a because cmd/fleet/validateenv_fips.go did not return a value on the success path. The PR has since moved to 393667c0, which adds the missing return nil, so the immediate action is to rerun Buildkite for the current head.
Remediation
Keep the current return nil in cmd/fleet/validateenv_fips.go; it addresses the compile failure from the failed build.
Rerun the Buildkite fleet-server pipeline for current PR head 393667c0 to replace the stale failed result.
Investigation details
Root Cause
The failed Buildkite run was for commit 0e0a983a14bd5737645bf8ad88449b3531ad2f5e. At that commit, cmd/fleet/validateenv_fips.go ended after the if !fips140.Enabled() block without returning nil, so func validateEnv() error had a missing return on the success path.
Current PR head 393667c07287736eeb9ab813f9565d139faca8ab contains the follow-up commit Add missing return, and cmd/fleet/validateenv_fips.go:18 now returns nil.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the problem this PR solves?
Use
GOFIPS140=v1.0.0instead ofGOFIPS140=certified.Ensure fips artifacts fail if
GODEBUG=fips140=offis set.How does this PR solve the problem?
Change env var set on build to
GOFIPS140=v1.0.0.Add a function that validates the runtime after the logger has been initialized, on non-fips artifacts this function is a
nop, fips artifacts will check if fips is enabled and error out if it's disabled.The error is emitted as a error level log, and directly to stderr and the process will exit with a non-zero status code.