[VS-NfD] Add a retention job for audit_log
#196
Labels
No Label
area:auth
area:docs
area:export
area:ops
area:storage
area:supply-chain
auth
backend
blocked
collab
deployment
docs
effort:L
effort:M
effort:S
frontend
plugins
qa
vs-nfd
vs-nfd:blocker
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: stwaidele/dorfteich#196
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
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?
Plan reference:
20-massnahmenplan.md-> Phase 2ADR: n/a
Effort: S (1 AT)
Depends on: —
Context
An audit trail without a retention rule grows without bound and conflicts
with data-protection requirements the operator has to answer for. A
configurable period is also what the IT-Grundschutz mapping (#230) needs
to reference.
Current state
audit_logis theAuditEntrymodel(
apps/api/prisma/schema.prisma:74–91, issue #86), written byapps/api/src/audit/audit.service.tsin addition to theaudit: …stdout line.
Acceptance criteria
the pattern used for backup retention) with a documented default.
is logged (count, cutoff) so the gap is explainable.
job — it gets its own period.
docs/architecture/security.mdand #229document the period. Note: the file has no logging section
today, although
apps/api/prisma/schema.prisma:69already cites"security.md §Logging" — creating it is part of this issue.
Out of scope
Export of audit entries to a SIEM (#201) and the read-access trail (M6).
Delivered by PR #251 (
ed2225b), merged to main fast-forward. CI run 500 green. Closing.