feat(audit): add the audit log #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/audit-log"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
feat/api-keys); retarget tomainonce #2 to #8 are merged.Changes
audit_eventstable (reversible, portable, append-only): actor type and snapshot label (user email,API key <name> (tck_...), or a visitor's address), action, subject type/id/label (no foreign key, so events outlive their subject), JSON metadata, microsecond timestamp.Audit.write/4,Audit.update/4andAudit.record/4write the event in the same transaction as the change. An update that changes nothing writes nothing and leaves no event. Wired into organizations, memberships, invitations, nodes, resources, targets, headers, access settings, rules, share links and API keys.[changed]; header values (which can be credentials for the backend), CA text, tokens and hashes are not stored.TRAEFIK_CONTROL_AUDIT_RETENTION_DAYS(default 90,0keeps them).Verification
compile --warnings-as-errors,credo --strictclean;mix dialyzer0 errors on both backends.TRAEFIK_CONTROL_TRUST_PROXY(documented).Not included