Skip to content

Verify on a signed build that the team-signed nodespace command can approve a remote tool and an unsigned or shadowed one cannot #4367

Not planned

Description

@mstomar125

Follows the peer audit token and code-signature check added for #4327 (branch issue-4327-peer-sig). ApproveTool is admitted from the team-signed app or the team-signed nodespace command (signing identifier nodespace, the file name codesign uses for a bare executable, see CLI_IDENTIFIER in packages/daemon/src/peer_signature.rs); the person at the screen still confirms.

Environment: a signed, notarized NodeSpace .pkg installed on a disposable macOS user or a VM.

Steps

  1. codesign -dv /usr/local/bin/nodespace 2>&1 | grep -E 'Identifier|TeamIdentifier'
  2. nodespace tool approve <node-id> in a terminal; confirm in the system dialog.
  3. Put an unsigned or ad hoc signed program named nodespace first on PATH (a shadowing command) that calls the same RPC; run it.

Expected

  • Step 1 shows Identifier nodespace and TeamIdentifier F4M5J7YNLS. If the identifier is different, the constant must change (or build-pkg.sh must pass --identifier).
  • Step 2 approves the tool.
  • Step 3 gets PERMISSION_DENIED before any dialog is shown.

Activity

  1. malibio commented on Nov 28, 2026

    @malibio
    Collaborator

    Moved to NodeSpace: the task "Verify on a signed build that the team-signed nodespace command can approve a remote tool and an unsigned or shadowed one cannot" (98ad3534-0d49-4fd8-8043-196fdd63a13f) 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