Repository navigation
fix(cluster): show the other Mac's pairing posture as reported, not verified - #2129
Merged
Merged
Conversation
…erified `ClusterPairingProvider.verifyAttestation` checks that the other Mac's attestation is signed by the identity key it pairs with, binds this ceremony's ephemeral key and is fresh. The signing key comes from the same blob, so this proves possession of the key, not that a Secure Enclave holds it: a software P-256 key passes with any claimed posture. The posture gates nothing (it is shown, persisted and never read back), but `darkbloom cluster pair` stated the other Mac's SIP, Secure Boot and sealed-volume status and a "Secure Enclave key pin" as facts. - Add `ClusterPairingTerminal.reportedPosture`, used by the pairing screen and the onboarding pairing event, which marks the posture "reported by the other Mac, not verified", and call the other Mac's pin a key pin. This Mac's own line still names its Secure Enclave key, which it knows. - Say what is and is not verified in `ClusterPairingProvider`, `ClusterPairingPeerPosture` and the encryption architecture doc. Binding the key to Apple hardware (for example App Attest over the ceremony transcript) is a separate feature. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e key Refactor-pass follow-up. The "Paired" summary, the setup wizard and the ceremony's proof-failure message still described the other Mac's key as a Secure Enclave key, which pairing cannot know. They now say the key it pairs with (or proved it holds); this Mac's statements about its own key are unchanged. Docs and the changelog describe only what is shown: onboarding drops the peer lines and shows the code alone, so only `cluster pair` and the setup wizard show the reported posture. `verifyAttestation`'s doc says `secureEnclaveAvailable` is the other Mac's own claim. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…osture-is-self-reported Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…osture-is-self-reported Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 14, 2026
jonathan308
added a commit
that referenced
this pull request
Nov 14, 2026
- changelog.d/gemma-tool-grammar-linear-optional-members.md: generic public text (#2111) - changelog.d/updater-signed-version-matches-release.md: generic public text (#2117) - changelog.d/cluster-pairing-posture-is-self-reported.md: generic public text (#2129) - changelog.d/inbound-json-depth-and-tool-schema-budget.md: generic public text (#2130) - changelog.d/coordinator-inbound-queue-budget.md: generic public text (#2135) - changelog.d/toml-parse-memory.md: generic public text (#2138) - changelog.d/cluster-link-key-keychain.md: generic public text (#2137) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch was successfully 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.
Problem
A security scan (finding 274) reported that cluster pairing accepts self-signed Secure Enclave claims. Confirmed on
dev, with a smaller impact than reported:ClusterPairingProvider.verifyAttestationverifies the other Mac's attestation signature under the public key embedded in the same blob (AttestationBuilder.verify), then checks that key equals the identity key it pairs with, binds this ceremony's ephemeral key and is fresh. That proves possession of the paired key, not that a Secure Enclave holds it: a software P-256 key passes with any claimed posture (the existingattestationBindsTheKeyAndTheCeremonytest already pairs software keys).darkbloom cluster pair(and the setup wizard) stated the other Mac's SIP, Secure Boot and sealed-volume status and its "Secure Enclave key pin" as facts; the "Paired" summary, the wizard and the proof-failure message called the other Mac's key a Secure Enclave key; and the encryption doc said both Macs "verify each other".Change
ClusterPairingTerminal.reportedPosturerenders the posture as "… (reported by the other Mac, not verified)", used by the pairing screen and the onboarding pairing event; the other Mac's pin is a "key pin". This Mac's own line still names its Secure Enclave key, which it knows.ClusterPairingError.proofInvalidsay "the key it pairs with" instead of "Secure Enclave key".ClusterPairingProvider,ClusterPairingPeerPostureanddocs/architecture/security/encryption.mdsay exactly what is verified.No check, gate, ceremony step or stored field changes. Binding the key to Apple hardware (for example App Attest over the ceremony transcript) is a separate feature.
Before
After
Validation
provider-swift/Tests/ClusterPairingChecks/run.sh(real two-process pairing over pseudo-terminals) withdev's terminal codeClusterConsoleChecks/run.shClusterOnboardingChecks/run.shpeerPostureIsShownAsReportedNotVerified: a software-key attestation still verifies, and its posture renders as reported)make docs-check,make docs-impact-check BASE=upstream/dev,make changelog-checkThis touches
libs/darkbloom-cluster, so the cluster CI jobs run. No live two-Mac pass was needed: only strings, comments and docs change.Limitations
darkbloom cluster pair --status --jsonstill prints the storedpeerPosturewithout a "self-reported" marker (a JSON field; changing its shape is a separate decision).darkbloom cluster) shows only the code, not the posture, before and after this change.Security stack
No change to encryption, attestation verification, signing or weight hashes: the same checks run and the same fields are stored. Only what the screen claims changes.
Refactor pass
An independent refactor pass confirmed nothing reads the posture back, found that onboarding never displayed it (the first draft's docs and changelog said otherwise; corrected) and listed the remaining places that still called the other Mac's key a Secure Enclave key; those are fixed in the second commit.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.