Skip to content

Build releases against the FIPS 140-3 validated Go crypto module - #6262

Merged
ilyakuz-db merged 2 commits into
mainfrom
fips140-release-build
Aug 18, 2026
Merged

Build releases against the FIPS 140-3 validated Go crypto module#6262
ilyakuz-db merged 2 commits into
mainfrom
fips140-release-build

Conversation

@ilyakuz-db

@ilyakuz-db ilyakuz-db commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Changes

Build released binaries with GOFIPS140=v1.0.0. This links the FIPS 140-3 validated Go Cryptographic Module into the binary and defaults FIPS 140-3 mode on, so no runtime flag is needed.

Why

Regulated environments (FedRAMP, IL5) require cryptography to come from a validated module. This has to be set at build time: the runtime GODEBUG=fips140=on only toggles the mode on whatever module was already linked, so without the build variable, there is no validated module in the binary and no certificate to cite.

Pinned to a frozen version rather than an alias. v1.0.0 is the version covered by CMVP certificate #5247

This changes behavior for everyone, not just regulated users: the TLS client offers only FIPS-approved suites (6 instead of 13, dropping ChaCha20 and CBC)

CI coverage for the FIPS build is added separately in #6193

Tests

Ran the whole unit and acceptance suite against a FIPS build — no failures. Also confirmed all six release targets (linux/darwin/windows x amd64/arm64) cross-compile with the variable set; none of the platforms Go excludes from FIPS mode are in our matrix.

This PR was written by Claude Code.

@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 4a81d9b

Run: 32123470817

Env 🟨​KNOWN 💚​RECOVERED 🙈​SKIP ✅​pass 🙈​skip Time
🟨​ aws linux 3 1 4 286 1150 7:34
🟨​ aws windows 3 1 4 288 1148 7:05
🟨​ azure linux 3 1 4 285 1150 6:50
🟨​ azure windows 3 1 4 287 1148 7:36
💚​ gcp linux 1 5 286 1150 6:09
💚​ gcp windows 1 5 288 1148 5:44
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Name aws linux aws windows azure linux azure windows gcp linux gcp windows
💚​ TestAccept 💚​R 💚​R 💚​R 💚​R 💚​R 💚​R
🙈​ TestAccept/bundle/invariant/no_drift 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_endpoints/drift/recreated_same_name 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/bundle/resources/vector_search_indexes/recreate/embedding_dimension 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🙈​ TestAccept/ssh/connection 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo 🟨​K 🟨​K 🟨​K 🟨​K 🙈​S 🙈​S
🟨​ TestFetchRepositoryInfoAPI_FromRepo/root 🟨​K 🟨​K 🟨​K 🟨​K
🟨​ TestFetchRepositoryInfoAPI_FromRepo/subdir 🟨​K 🟨​K 🟨​K 🟨​K
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:43 azure windows TestAccept
5:38 aws windows TestAccept
5:36 gcp windows TestAccept
3:51 azure linux TestAccept
3:51 aws linux TestAccept
3:48 gcp linux TestAccept

@ilyakuz-db
ilyakuz-db force-pushed the fips140-release-build branch 4 times, most recently from 2c52d0c to 85233e3 Compare August 17, 2026 09:31
@ilyakuz-db
ilyakuz-db requested review from denik and pietern August 17, 2026 09:36
varundeepsaini pushed a commit to varundeepsaini/cli that referenced this pull request Aug 17, 2026
…icks#6193)

## Changes

Sets `GOFIPS140=v1.0.0` in `Taskfile.yml`, so every `task` invocation
builds the CLI against the FIPS 140-3 validated Go Cryptographic Module.
Adds a test that reads the built binary's build info to confirm it
really was built with it.

## Why

Releases are moving to FIPS builds (databricks#6262). Go picks its cryptographic
module at build time, so testing without it exercises a configuration we
no longer ship.

In the Taskfile rather than a workflow env because every consumer goes
through `task` — local `./task test`, CI's `task test`, and the
integration suite, which runs `task integration` from eng-dev-ecosystem.
One line covers all three, with no cross-repo change. Bare `go test`
outside `task` is not covered, so the check fails there rather than
silently passing.

Worth flagging: this makes eng-dev-ecosystem integration runs FIPS
without a change in that repo.

## Tests

Full unit + acceptance suite under FIPS, locally and in CI (all six
cells, macOS and Windows included) — no failures. Integration against
real workspaces under FIPS: ~11,000 tests across six cells (three clouds
x linux/windows), and the FIPS check passed in every cell. The four
unrelated failures were a leftover-state 409 on AWS and three cluster
timing flakes; baseline nightlies show the same rate without FIPS.

Perf: CLI startup 12ms -> 13ms, RSA-4096 key generation 653ms -> 1.35s.
The new build tag invalidates the Go build cache once, so the first
build after this merges is a full rebuild.
@@ -0,0 +1 @@
Released binaries are now built against the FIPS 140-3 validated Go Cryptographic Module, with FIPS 140-3 mode enabled by default. TLS connections negotiate only FIPS-approved cipher suites, which drops ChaCha20 and CBC from what the client offers. FIPS mode can be disabled at startup with `GODEBUG=fips140=off`, which restores the previous TLS behaviour ([#6262](https://github.com/databricks/cli/pull/6262)).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this really notable? We could move it to the CLI section.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated, moved to the cli/

@ilyakuz-db
ilyakuz-db force-pushed the fips140-release-build branch from 85233e3 to 3c7c16a Compare August 17, 2026 09:41
@pietern

pietern commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

@ilyakuz-db I triggered a rerun (and investigation) of the most recent failure. Looks like a flake.

@ilyakuz-db

Copy link
Copy Markdown
Contributor Author

@ilyakuz-db I triggered a rerun (and investigation) of the most recent failure. Looks like a flake.

Thanks!

@ilyakuz-db
ilyakuz-db force-pushed the fips140-release-build branch from 3c7c16a to 4a81d9b Compare August 18, 2026 09:47
Comment thread .goreleaser.yaml
# cite, and "certified" is resolved by the toolchain so it moves on upgrade.
# Callers who need the previous behaviour can start the binary with
# GODEBUG=fips140=off.
- GOFIPS140=v1.0.0

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not just do top level env in this Taskfile with this setting to ensure that we run all test with it as well?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We have this for tests #6193

But if I understood correctly, Taskfile doesn't cover goreleaser flow, and we still need to set env here

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

got it, thanks

@ilyakuz-db
ilyakuz-db added this pull request to the merge queue Aug 18, 2026
Merged via the queue into main with commit 9a2fbe5 Aug 18, 2026
32 checks passed
@ilyakuz-db
ilyakuz-db deleted the fips140-release-build branch August 18, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants