You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Verify on a signed build that a program that is not the team-signed app cannot answer a remote tool's confirmation, including an orphaned descendant #4366
Follows the peer audit token and code-signature check added for #4327 (branch issue-4327-peer-sig). Unit and socket tests in that PR refuse an unsigned test binary and a nonexistent process. This issue checks the same on a real signed install, including the case the process-tree gate could not stop.
Environment: a signed, notarized NodeSpace .pkg installed on a disposable macOS user or a VM.
Steps
Make a remote tool confirmation pending (see the companion issue for the signed-app case); read its request id and digest from the chat card (nodespace node get <chat id>).
From a plain Terminal that is not NodeSpace, run an agent or script that dials the daemon socket and sends AnswerConfirmation with that id and digest (for example a short grpcurl or a Rust/Bun client using nodespace_proto).
Repeat from an orphaned descendant of a program the daemon started: start a tool program that does setsid + nohup a child which then sends the answer after its parent exits.
Repeat with an ad hoc signed copy of the app binary (codesign -s - --force on a copy) and a binary signed by another team.
Expected
Every one of these gets PERMISSION_DENIED and the question stays pending; the daemon log shows "a peer that is not the signed app was refused" with the scope AnswerConfirmation.
Answering from the real app still works afterwards.
A development build of the daemon refuses an unsigned peer too, unless started with NODESPACE_DEV_ALLOW_UNSIGNED_PEER=1 (then a warning is logged for each use).
Moved to NodeSpace: the task "Verify on a signed build that a program that is not the team-signed app cannot answer a remote tool confirmation, including an orphaned descendant" (15a86982-a342-44c9-b269-8accbc08127d) in the NodeSpace workspace. The team's work is tracked there, so this GitHub copy is closed to keep its status in one place.
Activity
malibio commentedon Nov 28, 2026
Moved to NodeSpace: the task "Verify on a signed build that a program that is not the team-signed app cannot answer a remote tool confirmation, including an orphaned descendant" (
15a86982-a342-44c9-b269-8accbc08127d) in the NodeSpace workspace. The team's work is tracked there, so this GitHub copy is closed to keep its status in one place.