Skip to content

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

Not planned

Description

@mstomar125

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

  1. 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>).
  2. 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).
  3. 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.
  4. 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).

Activity

  1. malibio commented on Nov 28, 2026

    @malibio
    Collaborator

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions