fix(tbtc/signer): fail closed on unsafe share refresh#4155
Merged
mswilkison merged 3 commits intoJul 13, 2026
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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 |
mswilkison
merged commit Jul 13, 2026
43a0d25
into
extraction/frost-signer-mirror-2026-05-26
20 checks passed
mswilkison
added a commit
that referenced
this pull request
Jul 13, 2026
## Stack Rust signer review-fix stack 2 of 2. - Depends on: [#4155](#4155) - Ultimate base: `extraction/frost-signer-mirror-2026-05-26` ([#4005](#4005)) ## What changed - Reject an empty or whitespace-only policy `required_attestation_status` with `required_attestation_status_missing`. - Reject an empty or whitespace-only candidate `attestation_status` with `attestation_status_missing`. - Compare statuses only after both normalized values are non-empty, avoiding a misleading mismatch reason for missing data. - Preserve case-insensitive, whitespace-normalized matching for legitimate non-empty values. ## Review finding addressed - P2: reject empty attestation statuses before comparing them — an empty policy and empty candidate can no longer normalize to equality and pass admission. ## Verification - `cargo fmt --manifest-path pkg/tbtc/signer/Cargo.toml -- --check` - `cargo check --locked --manifest-path pkg/tbtc/signer/Cargo.toml --all-targets` - `cargo clippy --locked --manifest-path pkg/tbtc/signer/Cargo.toml --all-targets -- -D warnings` - `cargo test --locked --manifest-path pkg/tbtc/signer/Cargo.toml` - `cargo test --locked --manifest-path pkg/tbtc/signer/Cargo.toml --bin admission_checker attestation` - `git diff --check`
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.
Stack
Rust signer review-fix stack 1 of 2.
extraction/frost-signer-mirror-2026-05-26(#4005)What changed
RefreshSharessymbol but fail closed with terminal codecryptographic_refresh_not_supporteduntil a multi-round, zero-constant FROST refresh protocol exists.Review findings addressed
The C symbol, request shape, response envelope, and reserved response type remain present; the major version makes the changed status and JSON semantics explicit.
Verification
cargo fmt --manifest-path pkg/tbtc/signer/Cargo.toml -- --checkcargo check --locked --manifest-path pkg/tbtc/signer/Cargo.toml --all-targetscargo clippy --locked --manifest-path pkg/tbtc/signer/Cargo.toml --all-targets -- -D warningscargo test --locked --manifest-path pkg/tbtc/signer/Cargo.tomlcargo test --locked --manifest-path pkg/tbtc/signer/Cargo.toml formal_verification_pkg/tbtc/signer/scripts/run_phase5_chaos_suite.shgit diff --checkThe TLA+ runner was not available locally because this machine has no Java runtime; CI remains the authoritative model-check gate.