Repository navigation
SDK: verify enclave release statements in Rust sessions, report-only - #1672
Open
w3irdrobot wants to merge 8 commits into
Open
w3irdrobot wants to merge 8 commits into
w3irdrobot wants to merge 8 commits into
Conversation
w3irdrobot
force-pushed
the
codex-sigrs-maple
branch
from
November 21, 2026 14:03
34e9772 to
025c074
Compare
w3irdrobot
force-pushed
the
codex-sigrs-maple
branch
from
November 23, 2026 17:15
58f5862 to
67a8aad
Compare
Verify signed release bundles using a local approval key, a pinned trusted root, and the expected environment and measurement tuple. Require a DSSE statement, one Rekor v2 log entry with a bound checkpoint, and one RFC 3161 timestamp. Enforce JSON and content-shape rules for statements, log entries, timestamp evidence, signatures, certificates, and media types. Add accepted and rejected managed-key corpus cases without connecting the verifier to sessions.
Observe the authenticated enclave's release after attestation and transcript checks without delaying or failing the session. Support the embedded Development bundle, bound remote lookups to 1 MiB, cache verified results, and permit one bounded TUF refresh before one retry. Expose the latest outcome through the client without observing unauthenticated loopback sessions. Cancel pending observations with the client and prevent queued cryptographic work from starting afterward.
Keep Rust formatting, Clippy, tests and documentation active while the manifest has Git-only dependencies that cannot be packaged. Emit an explicit marker for that state, restore packaging when registry versions are available, and reject missing archives otherwise. Stage and compare the approval key and trusted root through the SDK lane tests, and select that lane when either trust input changes.
Validate signed source and build fields and expose the repository, commit, workflow run, and Rekor index on successful verification results. Include that audit data in release logs and reject entries whose two log indexes differ.
Apply the shared statement checks in order and accept equivalent JSON number forms for build attempts. Add the shared 48-vector fixture and pin its digest in the Rust test.
w3irdrobot
force-pushed
the
codex-sigrs-maple
branch
from
November 24, 2026 16:13
67a8aad to
4967533
Compare
w3irdrobot
marked this pull request as ready for review
November 24, 2026 20:43
Depend on the patched verifier as the registry package maple-sigstore-verify 0.17.0-maple.1 instead of a Git revision, keeping the sigstore-verify dependency key so imports do not change. The unmodified sigstore-types and sigstore-trust-root come from crates.io at exactly 0.17.0, the release the patched crate pins. crates.io refuses a crate with a Git dependency, so this makes maple-sdk publishable again. The SDK compiles against 0.17.0 unchanged, and every corpus and release statement vector keeps its expected outcome and reason. The proxy, Agent and Research desktop lockfiles change only in the verifier crates and their two new transitive dependencies. Agent's Nix package no longer needs a hash for the Git source. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SDK's dependencies all come from crates.io now, so cargo package can run for it. Remove the lane's skip for Git-only dependencies and validate the packaged crate for upload as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
What this adds
The Rust SDK now checks an enclave's signed release statement after Transport V2 session setup and logs the result. It is report-only: it never changes, delays or fails a session, and there is no UI. This is the Rust counterpart of #1668.
After a remote enclave's attestation and transcript checks pass, the SDK starts a background task that:
attestations-dev.maple.aiorattestations.maple.ai);Where the Sigstore crates come from
Upstream
sigstore-verifycannot yet verify P-384 keys logged in Rekor v2 or require a checkpoint from the entry's own log, so the SDK usesMaplePrivacyLabs/sigstore-rust's patched copy, published on crates.io:sigstore-verifyis the registry packagemaple-sigstore-verify=0.17.0-maple.1, under its usual dependency key, so imports do not change. It bringsmaple-sigstore-rekor0.17.0-maple.1with it.sigstore-typesandsigstore-trust-rootare the unmodified upstream crates at=0.17.0, the release the patched crates are built on and pin exactly.Nothing comes from Git, so
maple-sdkstays publishable and thesdk-rustlane packages it as before. Once an upstream release has both fixes (sigstore/sigstore-rust#375 is open for the P-384 part), the SDK can return to upstreamsigstore-verify.How to read it
Eight commits, in order. The first three are the feature; the rest are changes from review:
sdk/rust/src/release_verification/bundle.rs, the trust assets, and the tests. 100 of the files are a copied test corpus undersdk/rust/tests/fixtures/managed-key/.sdk/rust/src/transport_v2/client.rs, and the lockfiles of the three in-tree consumers (proxy, Agent, Research desktop).sdk/rust/tests/fixtures/release-statement/, byte-identical to the copy in SDK: verify enclave release statements in TypeScript sessions, report-only #1668.sdk-rustlane's packaging skip is removed.Outside the corpus, the vectors and the generated lockfiles it is about 3,500 lines.
Things worth knowing
approval-key-not-configured, makes no request and never falls back to the Dev key.maple-sigstore-*crates at0.17.0-maple.1and seven upstream crates at0.17.0. The SDK and proxy lockfiles gain 61 crate names, Agent 19, Research 22.Checked
release verification observation completed outcome=Verifiedfor the deployed enclave, with its bundle fetched fromattestations-dev.maple.ai.sdk-rustlane passes, includingcargo packageand the upload validation, andcargo publish --dry-runformaple-sdksucceeds.maple-sdk's own Sigstore dependencies changed.scripts/ci/opensecret-release/in the SDK lane, and a change to either selects that lane.Not checked
🤖 Generated with Claude Code