Repository navigation
id-sync: B06 observable rejection events at the ingest gate - #11944
Merged
Merged
Conversation
ObservedGate wraps the B32 IngestGate, returns exactly its outcome, and appends one typed, hash-chained, local-only RejectionEvent per refusal (reason class, ingress path, claimed signer and key binding, declared vs presented payload digest, gate policy digest). An optional exporter can be switched off without changing fail-closed behavior. Refs #10247 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Caution Review failedThe pull request is closed.
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. |
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.
Before: the B32 signed-ingest gate refused bad envelopes but left no record. An operator could not see what was refused, on which path, or why, and nothing showed that a refusal was handled the same way on local and remote paths.
After:
ObservedGatewraps the B32 gate and records every refusal as a typedRejectionEventin a local-only, hash-chained log, with per-class counters and an optional exporter. Admission outcomes and the admitted set are unchanged.How:
federation/slices/b06_rejection_events.rsmaps eachRejectReasonto one of nine classes and records the ingress path, claimed signer, the identity the presented key is actually bound to, declared and presented payload digests, claimed time and the gate's policy digest. Each record links to the previous one's SHA-256 (domainid-sync/b06-rejection-event/v1), andverify_chaincatches edits, drops and reordering. Turning the exporter off keeps recording and fail-closed behavior.tests/federation_b06.rs(invariant oracle, 7 tests) runs random envelope streams across all ingress paths through a bare B32 gate and the observed gate in lockstep: same outcomes, same admitted set, exactly one event per refusal with fields checked against values the test computes itself, none per admission, and an intact chain. Like the other slices, the module is path-included and not yet wired intolib.rs.Refs #10247
Generated by Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.