fix: audit hash-chain GDPR, serialization, and alerting (#541-544)#738
fix: audit hash-chain GDPR, serialization, and alerting (#541-544)#7382witstudios wants to merge 4 commits intomasterfrom
Conversation
Hash chain now only includes non-PII fields (eventType, serviceId, resourceType, resourceId, details, riskScore, anomalyFlags, timestamp, previousHash) so the chain remains verifiable after GDPR anonymization erases user data. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace FOR UPDATE row locking with pg_advisory_xact_lock to prevent concurrent chain forks. Advisory locks work even on an empty table (genesis case) where no row exists to lock. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add alert handler callback and periodic cron verification scheduler. Fires alerts when chain verification detects tampering or breaks. Includes setChainAlertHandler, verifyAndAlert, startPeriodicVerification. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Use explicit `any` for transaction callback parameter in mock to avoid Drizzle ORM complex generic type mismatch in test mocks. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Summary
FOR UPDATErow locking withpg_advisory_xact_lockto prevent concurrent chain forks — works even on empty tables (genesis case)setChainAlertHandlercallback andstartPeriodicVerificationcron scheduler that fires alerts on chain integrity failuresTest plan
🤖 Generated with Claude Code