Commit c30738b
feat: enable FIPS 140-3 auto-detection via //go:debug directive
When built with GOFIPS140=certified (or latest), Go embeds fips140=on
in DefaultGODEBUG, making FIPS always active. The //go:debug fips140=auto
directive overrides this default so the binary reads
/proc/sys/crypto/fips_enabled at startup and activates FIPS only when
the host system is in FIPS mode.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 19c76d7 commit c30738b
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
0 commit comments