Skip to content

Verify that the profile-wrapped nodespaced bundle is accepted by macOS, starts under launchd and works through the /usr/local/bin link #4375

Not planned

Description

@mstomar125

Follows #4326 (branch issue-4326-keychain). With NODESPACED_PROVISION_PROFILE, scripts/build-pkg.sh installs nodespaced inside /usr/local/lib/nodespace/NodeSpaceDaemon.app (profile embedded, signed with the keychain access group entitlement) and makes /usr/local/bin/nodespaced a relative link to its executable. The script's block is tested with a stub codesign; the real signing, the system's acceptance and the behaviour of the rest of the product with a link need a signed build with the profile.

Environment: a .pkg built with the profile, notarized, installed on a disposable macOS user or VM.

Steps

  1. codesign -dv --entitlements - /usr/local/lib/nodespace/NodeSpaceDaemon.app shows the entitlements, hardened runtime, team F4M5J7YNLS; codesign --verify --deep --strict passes; spctl --assess --type execute -v accepts it; security cms -D -i .../Contents/embedded.provisionprofile matches the entitlements.
  2. The LaunchAgent starts it (launchctl print gui/$(id -u)/app.nodespace.daemon), the process is not killed at launch (check Console for amfid / "restricted entitlements not validated"), nodespace status works.
  3. With the link in place check: the app's own daemon registration and update detection (packages/desktop-app/app-lib/src/daemon_setup.rs: it compares and kills by the installed binary path under /usr/local/bin), the tray Quit then relaunch, the .pkg reinstall over an older install, and the uninstall scripts. Any code that canonicalises the path or compares file content/mtime through the link must still behave.
  4. The release workflow's "Install .pkg and verify it actually lands correctly" step passes (it tests -x /usr/local/bin/nodespaced, which follows the link).
  5. code_identity still reports a signed release (the daemon log has no "not a signed release").

Expected: all of the above. If the link breaks any step, say which; the alternative is to point the LaunchAgent and the app at the bundle's executable directly.

Activity

  1. malibio commented on Nov 28, 2026

    @malibio
    Collaborator

    Moved to NodeSpace: the task "Verify that the profile-wrapped nodespaced bundle is accepted by macOS, starts under launchd and works through the bin link" (0939ad4a-3eff-44bb-b7e5-7cdaf250bdc6) 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