Documentation
¶
Overview ¶
Package fips reports FIPS 140-3 mode and provides helpers to gate operations that rely on cryptography not approved by the Go FIPS 140-3 module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckWebSocketURL ¶
CheckWebSocketURL returns an error when running under FIPS and any of the provided URLs use ws:// or wss://.
Background: the nats.go client computes SHA-1 unguarded in its WebSocket handshake (Sec-WebSocket-Accept), which panics under GODEBUG=fips140=only. nats-server ships an fips140.WithoutEnforcement bypass for the same path (https://github.com/nats-io/nats-server/pull/8141, merge 7224db1) but nats.go does not yet have an equivalent. Until that lands upstream we refuse WebSocket URLs up front so users get a clear error instead of a runtime panic. Each argument may contain a comma-separated list of URLs.
func DisabledError ¶
DisabledError returns an error indicating an operation is unavailable in the FIPS build. op is the user-facing operation name and algo the algorithm or primitive that is not part of the FIPS 140-3 module.
Types ¶
This section is empty.