Repository navigation
fix(ingest): a late audit event is still stored, and the Vercel drain stamps its own source - #2561
Conversation
… stamps its own source The export worker shed any frame older than the queue age bound, audit events included, so a backlog longer than five minutes dropped accepted audit rows. Audit trail frames are exempt now: a late audit event is still evidence, and their volume is bounded per org where they are accepted. An accepted Vercel audit delivery recorded use of the key's default source instead of the integration source it was verified against, so an integration whose only feed is the audit drain never looked used. The Vercel and GCP docs no longer point at logs or the Vercel overview for audit events, and say what a self-hosted gateway needs to store them.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 40 minutes. View limit details
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. |
Maple review🟢 Confidence 10/10 · safe to merge. Two contained changes, each pinned by a test that fails before it; the shed exemption keys on a signal no sender can set. Exempts
|
Follow-up to #2530, from the review it got once it targeted main. All of it is on the audit trail path, which is off in production until
INGEST_AUDIT_TRAIL_ENABLEDis set.What changes
INGEST_QUEUE_MAX_AGE_SECS(300 s by default), and that included audit events, so an export backlog longer than five minutes dropped accepted audit rows. Audit trail frames are now exempt. Their volume is bounded per org at the accept path (10 requests a second for Vercel, 100 for GCP), so the exemption cannot build an unbounded backlog.Not in this PR
Verification
cargo testinapps/ingest: 377 + 215 + 4 pass. New tests: an audit event past the queue age bound is still exported; an accepted Vercel audit delivery records use of the integration's source.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.