Skip to main content

Module audit

Module audit 

Source
Expand description

Lightweight audit logging for sensitive operations.

Functions§

audit_log_path
Where audit events are written, for surfaces that point a person at the full record (for example /permissions). None when no Codewhale home resolves; callers show a placeholder rather than guessing a path.
log_sensitive_event
Append an audit event to $CODEWHALE_HOME/audit.log (or the default ~/.codewhale/audit.log when no explicit CodeWhale home is configured).
log_sensitive_event_in
Append an audit event to <codewhale_home>/audit.log for a caller that already owns an explicit Codewhale home (for example the DSH integration’s DshPaths), so its audit record lands beside the rest of its state rather than in whatever home the process environment names (#6534).