Repository navigation
cloud: derive trigger identity from trusted scope - #31133
Conversation
|
cmux status (one comment, edited in place; each line is updated by the job that owns it) Review App of this head (app.zip, kept 1 day)
red: cmux-next checks (god files, concurrency, crash safety, l10n); no finished base run on fe90490 to compare; do not merge until green; see lane-rules Shipped in:
The feat-cmux-next push run https://github.com/manaflow-ai/cmux/actions/runs/41330433296 at e0fa06f failed: cmux-next crash ends the app. |
|
Found 6 test failures on Blacksmith runners: Failures
|
|
Review (claude-opus-5-5 medium, cloud-reviewer): BLOCK at 4793f86 I read the PR's own commit, 4793f86 ("cloud: derive trigger identity from trusted scope", +27/-1 in [blocking] On an already-bound machine, the fallback overwrites the install key the server knows.
[blocking] The new identity path has no tests. The commit adds no test, and nothing in
What the platform does with it. The platform reads Other checks
Follow-ups:
🤖 Generated with Claude Code |
|
Review (claude-opus-5-5 medium, cloud-reviewer): SHIP at d4438ac This is a delta review against my BLOCK at 4793f86. The new commit is d4438ac, "cloud: isolate scoped identity enrollment state", in Prior blocker: fixed.
Follow-ups:
🤖 Generated with Claude Code |
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-3x.png)
Cloud platform workspace machines receive a root-owned trusted turn scope but may not have the legacy Cloud bind record that normally creates an identity receipt. In that state
cmux host cloud identityreturnedidentity_unavailable, so trigger delivery could never authorize.When the trusted scope exists and no bind is in progress, the host now creates a per-scope install key and receipt, then serves the resulting identity over the existing root-owned socket. Existing bind enrollment remains authoritative and unchanged. This lets the trigger principal bind to the platform scope while preserving key freshness across cloned scopes.
Follow-up probe: trigger-preflight must read back a delivered turn on a real Cloud machine.
Agent session: agent session
Need help on this PR? Tag
@codesmith-botwith what you need.Summary by cubic
Cloud machines with a trusted turn scope but no legacy bind record previously returned
identity_unavailablefromcmux host cloud identity, so trigger delivery could never authorize. The host now derives identity from the trusted scope when no bind is in progress.0600regular file in a root-owned protected directory; malformed or untrusted files fail startup, while a missing file leaves existing machines unchanged.CMUX_PLATFORM_*fields are handed to the daemon; secret platform values are never inherited.Written for commit d4438ac. Summary will update on new commits.