Repository navigation
docs(id): design record for boundary enforcement inputs (#8851) - #11412
Conversation
Decides the three inputs #7787 parts 2-4 need before any surface can be wired: declaration residence (operator ServerConfig [[boundaries]], content-addressed, scope-resolved via ScopeRef + effective()), evidence sources (self-signed per-hop evidence from the component performing the hop, peer claims capped by peer_asserted_claim, one trust_roots list), and the app-side EvidenceVerifier (ed25519 verify_strict + B31 revocation, no policy decisions). Plumbing steps and the explicit out-of-scope call-site wiring (task 15074) are listed in §7.
|
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 59 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. |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0ee275ed0f
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| 1. local hops the process performed itself (a, b, c) — `ProviderVerified` when | ||
| the local issuer is a trust root; |
There was a problem hiding this comment.
Preserve assurance grades independently of issuer trust
For a local hop backed only by the component's own signed location claim, this rule assigns ProviderVerified merely because the issuer is a trust root. That conflates issuer trust with independent verification: residency.rs explicitly says assurance is stored, never inferred or auto-promoted, and the referenced framework's §3.2 reserves ProviderVerified for a fact verified by a trusted third party. A claims-builder following this decision would let self-reported placement satisfy a boundary requiring provider verification. Preserve the claim's established assurance and provenance, applying trust-root membership as a separate acceptance check.
Useful? React with 👍 / 👎.
| - `revoked` consults the revocation state the key lifecycle already maintains: | ||
| slice B31's per-peer `PeerPolicy::policy_version` | ||
| (`b31_peer_classes.rs`) for peer issuers, and the key-revocation record for | ||
| local issuers. Revocation is checked per call, not cached across a session, |
There was a problem hiding this comment.
Consult actual revocation records for peer issuers
When a peer key is revoked or a peer is emergency-disabled without changing its B31 policy snapshot, consulting PeerPolicy::policy_version cannot detect the revocation: that field versions policy changes, rather than recording key or issuer revocations. The existing B02 RevocationRegistry provides is_key_blocked_at and is_peer_blocked_at for precisely these cases (pkgs/id/crates/id-sync/src/federation/slices/b02_key_revocation.rs). Specify those current revocation checks for peer issuers as well as local issuers; otherwise a verifier implemented as prescribed can continue accepting evidence from a revoked peer despite checking on every call.
Useful? React with 👍 / 👎.
Closes part 1 of #8851 (design note). Plumbing is listed in §7 and remains to land; call-site wiring stays with #7787 parts 2-4 (queue task 15074).
What this decides
The three inputs
boundary_surfaces::check_surfaceconsumes, which today nothing outsideid-corecan produce (verified atb4b6a1b16b:git grep BoundaryDeclaration -- pkgs/idreturns onlycrates/id-core/src/):ServerConfig[[boundaries]](server_config/mod.rs:178), content-addressed byBoundaryDeclaration::id, resolved per scope through existingScopeRef(boundary.rs:71) and intersected byboundary::effective(boundary.rs:468). No second operator artifact.peer_asserted_claim(boundary_surfaces.rs:267) and onetrust_rootslist (residency.rs:90) serving both peer trust and issuer trust. Follows the landed design(id): peer trust classes + signed-data acceptance rule #9141 acceptance rule.EvidenceVerifier(residency.rs:159),ed25519 verify_stricton the existing sync path (artifact.rs:531) plus B31 revocation; decides signature/revocation only, never policy, so it can fail closed but cannot widen a boundary.The record names every location it relies on at
b4b6a1b16b, records four rejected alternatives with reasons, and states the open points (per-hop key custody, relay trust) rather than deciding them.Not in this PR
Calling
check_surfacefromDirectory::sign_up/sign_up_keyed/authenticate, world membership/blob paths, or federation ingress/egress — that is #7787 parts 2-4, queue task 15074, which this record exists to unblock.Part of #8851. Parent #5683.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.