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-dbilyakuz-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🙈​skipTime
🟨​aws linux31428611507:34
🟨​aws windows31428811487:05
🟨​azure linux31428511506:50
🟨​azure windows31428711487:36
💚​gcp linux1528611506:09
💚​gcp windows1528811485:44
8 interesting tests: 4 SKIP, 3 KNOWN, 1 RECOVERED
Test Nameaws linuxaws windowsazure linuxazure windowsgcp linuxgcp 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):
durationenvtestname
5:43azure windowsTestAccept
5:38aws windowsTestAccept
5:36gcp windowsTestAccept
3:51azure linuxTestAccept
3:51aws linuxTestAccept
3:48gcp linuxTestAccept

@ilyakuz-db
ilyakuz-dbforce-pushed the fips140-release-build branch 4 times, most recently from 2c52d0c to 85233e3CompareAugust 17, 2026 09:31
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
ContributorAuthor

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-dbforce-pushed the fips140-release-build branch from 85233e3 to 3c7c16aCompareAugust 17, 2026 09:41
@pietern

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
ContributorAuthor

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

Thanks!

@ilyakuz-db
ilyakuz-dbforce-pushed the fips140-release-build branch from 3c7c16a to 4a81d9bCompareAugust 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
ContributorAuthor

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 queueAug 18, 2026
Merged via the queue into main with commit 9a2fbe5Aug 18, 2026
32 checks passed
@ilyakuz-db
ilyakuz-db deleted the fips140-release-build branch August 18, 2026 13:07
deco-sdk-taggingBot added a commit that referenced this pull request Aug 20, 2026
## Release v1.13.0
### Notable Changes
* `bundle deploy` now reports the per-resource actions it took, how many files it synced, and a summary of created/changed/deleted/unchanged resources; `bundle destroy` reports how many resources it deleted. `-q` prints only the summaries, `-qq` only warnings and errors. ([#5720](#5720))
### CLI
* `databricks aitools install` now supports Goose, installing Databricks agent skills into its skills directory.
* Error messages for failed key lookups and variable references now suggest the closest matching key if one is found. ([#6208](#6208))
* 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](#6262)).
* `databricks environments setup-local` now removes a `databricks-connect` pin from `[project].dependencies`, an optional-dependency extra, or a dependency group when its version range conflicts with the compute target's `databricks-connect` version, so `uv sync` no longer fails with an unsatisfiable resolution when a template ships a conflicting pin. A pin that co-resolves, carries no version, or is marker-gated is left untouched, and each removed pin is reported with the new `W_DBCONNECT_CONSOLIDATED` warning. Wildcard version pins such as `==15.1.*` are now also checked for conflicts with the environment's constraints.
### Bundles
* Allow dashes in the catalog and schema names prompted by `databricks bundle init`, and backtick-quote the catalog and schema identifiers in the SQL generated by the built-in templates so names with dashes work at runtime.
* Fixed `bundle.git.branch`, `bundle.git.commit`, and `bundle.git.origin_url` being empty for bundles deployed from a workspace Git folder that has Git CLI access. The workspace API does not report git metadata for those folders, so it is now read from the Repos API instead.
* direct: job_runs deploy progress lines now include the resource key (e.g. `Output from job_runs.foo: id=123: ...`) so concurrent runs are easier to tell apart.
* direct: `resources.job_runs` can set `lifecycle.triggers.on_bundle_deploy: true` to re-fire the run on every bundle deploy. Removing the trigger does not recreate the existing run.
* When migrating a bundle to the direct deployment engine, resources that only the direct engine supports (e.g. instance pools, catalogs) are now skipped by the deploy that migrates the state instead of failing it. They are created by the next deploy, which runs on the migrated state.
* Warn on invalid `secret_scopes` permission levels (`READ`, `WRITE`, `MANAGE`); fail under `bundle validate --strict`.
* Reject secret scope permissions that name no principal, instead of failing after the scope is created.
* Write the deployment state atomically so an interrupted save cannot leave a state file that the CLI refuses to read.
* Warn when the deployment state was last written by a newer CLI version than the one running.
* Support pip extras (e.g. `[train]`) on local wheels in a job environment's `dependencies` ([#1602](#1602)).
### Dependency Updates
* Bump `github.com/databricks/databricks-sdk-go` from v0.170.0 to v0.171.0 ([#6320](#6320)).
* Bump the Databricks Terraform provider to 1.127.0 ([#6319](#6319)).
* Bump Go toolchain to 1.26.6 ([#6266](#6266)).
* Bump Go toolchain to 1.26.7 ([#6325](#6325)).
Sign up for freeto 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

@ilyakuz-db@eng-dev-ecosystem-bot@pietern@denik@andrewnester