Skip to content

feat(backend): add structured audit logging for admin and auth actions#938

Open
Banx17 wants to merge 1 commit into
LabsCrypt:mainfrom
Banx17:feat/824-structured-audit-logging
Open

feat(backend): add structured audit logging for admin and auth actions#938
Banx17 wants to merge 1 commit into
LabsCrypt:mainfrom
Banx17:feat/824-structured-audit-logging

Conversation

@Banx17

@Banx17 Banx17 commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Closes #824

Emit audit entries with actor, action, params, and requestId for auth success, admin access grant/deny, and successful indexer reset/replay. Keeps logs free of secrets/tokens.

Co-authored-by: Cursor <cursoragent@cursor.com>
@ogazboiz

ogazboiz commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

heads up: main's ci was broken (the Backend CI and Backend Docker Image CI jobs) until the fixes in #969 and #974 just landed, so the red backend/docker checks on this pr are almost certainly stale, they ran against the broken main. please rebase to re-test against the now-green main: git fetch origin && git rebase origin/main && git push --force-with-lease. once it's green i'll review and merge. (if a non-backend check like Frontend CI is still red after the rebase, that part is a real issue worth a look, since frontend ci was passing on main.)

@ogazboiz

ogazboiz commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

the structured audit logging looks clean (and it omits secrets, good). the red is infra noise, the Docker CI 'could not find prisma schema' plus a frontend parse error in create/page.tsx which your pr doesn't touch (fixed by #943). stale base, rebase: git fetch origin && git rebase origin/main && git push --force-with-lease.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] No structured audit logging for destructive admin actions or auth outcomes

2 participants