Conversation
Under GODEBUG=fips140=only, Go < 1.26.3 fails every TLS handshake while generating the default X25519MLKEM768 key share (golang/go#78372): crypto/ecdh: use of X25519 is not allowed in FIPS 140-only mode so a FIPS-enforced client cannot reach the Defined Networking API at all. Pin the minimum toolchain to the first release with the upstream fix.
johnmaguire
approved these changes
Sep 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
A client built with Go < 1.26.3 running under
GODEBUG=fips140=onlycannot complete any TLS handshake with the Defined Networking API:This is golang/go#78372: under
fips140=only, the TLS client still attempts to generate the default X25519MLKEM768 key share, which is hard-disabled in enforce mode. Fixed upstream in go1.26.3.Fix
Pin
go 1.26.3in go.mod so consumers (dnclient release builds) cannot silently produce FIPS-broken binaries with an older toolchain.Runtime workaround for binaries already built with an affected Go:
GODEBUG=fips140=only,tlsmlkem=0.Verification
go build ./...and full test suite pass on go1.26.3+.GOTOOLCHAIN=go1.26.0 go build ./...is now correctly refused by the go directive.GODEBUG=fips140=only(see https://github.com/DefinedNet/dnclient/pull/885).