Skip to content

Home > @opengovsg/logging > FailuresAudit

FailuresAudit interface ​

Security failure audit events (category failures) — *handled*, security- relevant denials, so they fire at warn (the control worked). Application *errors* go through the base error(); anomaly/abuse detection is a sink concern (ADR-0007).

Signature:

typescript
export interface FailuresAudit

Methods ​

MethodDescription
accessDenied(input)An unauthorized access attempt was denied. Fires at warn.
privilegeEscalationDenied(input)A privilege-escalation attempt was denied. Fires at warn.
sensitiveActionBlocked(input)A sensitive action was blocked (e.g. a blocked export). Fires at warn.