Repository navigation
Audit log and vault reveal log - #34
Merged
Merged
Conversation
Record security events through a shared non-failing helper, expose an admin-only filtered/paginated API with CSV export, add a Journal d'audit admin tab, per-entry vault access history, and a daily retention purge (AUDIT_RETENTION_DAYS, default 365). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
…ues caused a 500) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
The list/create/update responses no longer carry the plaintext secret nor its ciphertext, so unmasking or copying in the UI cannot happen without an audit row. Editing leaves the password blank to keep it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
…push Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
…60px) Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01StC4huMbM6BRB9r4XFXvXv
# Conflicts: # CHANGELOG.md # backend/src/db/schema.js # backend/src/lib/dailyJobs.js
Installation-04
marked this pull request as ready for review
November 5, 2026 03:12
# Conflicts: # CHANGELOG.md
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
audit()helper (backend/src/lib/audit.js): never fails the request, redacts secret-looking keys, IP fromreq.ip(honours the existingtrust proxysetting; X-Forwarded-For is never read directly), user agent clipped.GET /api/admin/audit(filters: user, action or prefix, from/to, text; pagination, page size capped at 200) andGET /api/admin/audit/export(CSV, formula-injection safe, itself audited). Admin only.POST .../passwords/:id/reveal(any user, logs) andGET .../passwords/:id/audit(admin).AuditLog.jsx), filters, pagination, CSV export, dark mode, French UI. "Copier" button and Historique link added to the vault tab.AUDIT_RETENTION_DAYS(default 365, 0 = keep all); env passed through compose files and.env.example.ip,user_agent,target_type,target_idplus indexes onaudit_log.docs/administration.md, CHANGELOG under Non publié (no version bump).Tests
Full
npm teston real Postgres: 213 pass, 0 fail (newbackend/test/audit.test.js,frontend/test/audit.test.mjs). Frontendnpm run buildOK.Notes
The vault list endpoint still returns all secrets to the browser (masked in the UI), so the reveal log reflects UI actions, not direct API reads. Documented.
Generated by Claude Code