Skip to content

Commit c30738b

Browse files
martinszucclaude
andcommitted
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

File tree

cmd/helm/helm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ limitations under the License.
1616

1717
package main // import "helm.sh/helm/v4/cmd/helm"
1818

19+
//go:debug fips140=auto
20+
1921
import (
2022
"errors"
2123
"log/slog"

0 commit comments

Comments
 (0)