[DEF-4] audit_log grows forever; no retention and no read API #25

Closed
opened 2026-07-04 15:30:47 +00:00 by a73x · 1 comment
a73x commented 2026-07-04 15:30:47 +00:00 (Migrated from git.a73x.sh)

[claude 2026-07-03] Deferred from audit review (store.go schema comment). Add (a) GET /api/v1/audit?limit=N admin endpoint (completes the forensic story — rows are currently only reachable via sqlite), and (b) retention: audit_retention config (duration, default e.g. 2160h), pruned at startup and daily. E2E: real server binary; mint tokens -> rows visible via the API; restart with tiny retention -> old rows pruned, recent survive.


Migrated from git-collab issue 22de4ebf8ef97005038a53572ecea0a0e4799c27.

Original author: a73x dev@a73x.sh.

Close reason: Fixed by patch 8de9b58d

[claude 2026-07-03] Deferred from audit review (store.go schema comment). Add (a) GET /api/v1/audit?limit=N admin endpoint (completes the forensic story — rows are currently only reachable via sqlite), and (b) retention: audit_retention config (duration, default e.g. 2160h), pruned at startup and daily. E2E: real server binary; mint tokens -> rows visible via the API; restart with tiny retention -> old rows pruned, recent survive. --- Migrated from git-collab issue `22de4ebf8ef97005038a53572ecea0a0e4799c27`. Original author: a73x <dev@a73x.sh>. Close reason: Fixed by patch 8de9b58d
a73x commented 2026-07-04 15:32:36 +00:00 (Migrated from git.a73x.sh)

[claude 2026-07-04] Picking this up. store.PruneAudit(olderThan) + GET /api/v1/audit?limit=N (admin) + audit_retention server config (default 2160h/90d, 0 disables) pruned at startup and daily.

[claude 2026-07-04] Picking this up. store.PruneAudit(olderThan) + GET /api/v1/audit?limit=N (admin) + audit_retention server config (default 2160h/90d, 0 disables) pruned at startup and daily.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
a73x/eitri#25
No description provided.