Every state-changing API route is mapped to an action; a test fails for unmapped routes. Successful changes are recorded with actor, API token, target, IP, user agent and request ID; failed sign-ins too. Names are taken from the response, never secrets. Organizations read their log with audit.read under Settings, users their account activity on the security page, admins the platform log. Entries expire after UPTIME_RETENTION_AUDIT. Closes #65 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
8 lines
195 B
Go
8 lines
195 B
Go
package api
|
|
|
|
// LookupTXT lets tests replace DNS lookups for domain verification.
|
|
var LookupTXT = &lookupTXT
|
|
|
|
// AuditActions exposes the audited routes to tests.
|
|
var AuditActions = auditActions
|