Documentation
¶
Overview ¶
Package security provides cryptographic utilities for cloop's data integrity.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidSignature = errors.New("state file signature mismatch: file may have been tampered with")
ErrInvalidSignature is returned when HMAC verification fails.
Functions ¶
func RedactAPIKey ¶
RedactAPIKey masks all but the first 4 and last 4 characters of a secret. Values of 8 or fewer characters are fully masked as "****". Used to ensure sensitive values are never logged in plaintext.
func SigningKey ¶
func SigningKey() string
SigningKey returns the HMAC key from the environment variable CLOOP_STATE_HMAC_KEY. Returns an empty string when the variable is not set (signing disabled).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.