Repository navigation
id-config: capability negotiation and downgrade rejection (9111-04) - #12957
Merged
Merged
Conversation
…10195) New negotiation.rs in id-config: a per-peer session state machine that selects the highest mutually supported allowlisted protocol version and the capability intersection, and rejects security-weakening downgrades — an outcome below the policy floor or missing a required capability (the config contract's fixed gates, seeded from a resolved config), and any renegotiation weaker than the established session. Rejected initial offers close the session (never fall back silently); rejected renegotiations leave the established session on its previous terms. Offers are identity-bound and round-ordered (stale/replayed rounds reject); every acceptance emits a transcript whose canonical bytes are the exact bytes a signature must cover. Crate-root export stays with slice 9110-02; the oracle test includes the module by path per the sibling-slice pattern. Oracle: cargo test --manifest-path pkgs/id/Cargo.toml --test config_downgrade — 17 passed / 0 failed, including a generated adversarial state-machine model comparison and the golden transcript vector.
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. |
|
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 50 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. |
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.
Slice 9111-04 for #10195:
pkgs/id/crates/id-config/src/negotiation.rs(per-peer negotiation state machine: highest mutually supported allowlisted version, floor + required-capability downgrade rejection, identity-bound round-ordered offers, signed-transcript canonical bytes) plus the model-oracle testpkgs/id/tests/config_downgrade.rs. Crate-root export remains with slice 9110-02; the test includes the module by path per the sibling pattern. Oracle:cargo test --manifest-path pkgs/id/Cargo.toml --test config_downgrade— 17 passed / 0 failed. Closes #10195.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.