Documentation
¶
Overview ¶
Package audit emits security-relevant events: auth/authz failures, rate limiting, and configuration reloads
Index ¶
Constants ¶
View Source
const ( EventAuthFailure = "auth_failure" EventConfigReload = "config_reload" EventRateLimited = "rate_limited" )
Operators match on these in their log pipelines, so changing one is a breaking change
View Source
const ( OutcomeSuccess = "success" OutcomeFailure = "failure" )
Outcomes of a config reload
View Source
const ReasonConfigFile = "config_file"
Secret-driven reloads supply their own reason from internal/secrets
View Source
const ReasonSignal = "signal"
Variables ¶
This section is empty.
Functions ¶
func AuthFailure ¶
func ConfigReload ¶
Records a hot reload and the error that stopped it, if any. reason is one of the Reason constants
func RateLimited ¶ added in v0.14.0
The caller limits how often this fires so a client hammering away doesn't flood the log
func SetAuditLoggerOnStartup ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.