chore: block panic

This commit is contained in:
Julian Sommer
2026-08-19 15:03:47 +10:00
parent 60c9dfa89d
commit f21db26816
3 changed files with 6 additions and 1 deletions
+1
View File
@@ -9,6 +9,7 @@ import (
func init() {
if !fips140.Enabled() {
//nolint:forbidigo // Refuse to start when the required FIPS mode is disabled.
panic("fipsboot: FIPS 140-3 mode is not enabled at runtime — refusing to start. " +
"Build with GOFIPS140=v1.0.0 and do not set GODEBUG=fips140=off.")
}