Rule Change Audit Logger
Component Detail
Infrastructure
low complexity
backend
1
Dependencies
0
Dependents
1
Entities
0
Integrations
Description
Thin infrastructure adapter that writes before/after snapshots of rule configuration changes to the central audit log whenever an administrator saves an updated ruleset. Ensures all rule mutations are traceable for compliance with Bufdir-funded activity accounting requirements.
rule-change-audit-logger
Responsibilities
- Capture before/after snapshots of rule configuration on each save
- Write structured audit entries to the audit_logs table via the Audit Service
- Tag auto-approved claim events with the rule snapshot that triggered approval
Interfaces
logRuleChange(orgId, actorId, before, after): void
logAutoApprovalEvent(claimId, matchedRules): void