GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — darwin tarball binaries are not notarized at release time · Issue #67140 · nodejs/node

darwin tarball binaries are not notarized at release time #67140

New issue
Copy link
New issue
Copy link
Open
Open
darwin tarball binaries are not notarized at release time#67140
Copy link
Assignees
UlisesGascon
Labels
buildIssues and PRs related to Node.js builds or CI infrastructure.

Description

@UlisesGascon
UlisesGascon
opened on Oct 30, 2026
Issue body actions

Thanks @sxa for bringing this to my attention. It has been a while since I last touched the macOS notarization, so I went back to it with fresh eyes.

Update 2026-10-31: the "no notarization ticket" findings below were produced with codesign --verify -R=notarized, which only reads the local ticket cache. Asking Apple's ticket service directly shows that 15 of the 18 most recent tarballs do have a ticket, created days after release by third parties that bundle our binary. Only v26.13.0 (both arches) and v26.12.0 x64 lack one. The root cause and the fix are unchanged; the gap is the first days after every release. Details in this comment. Struck text below is kept for context.

Context

We have had reports about badly signed or non notarized macOS binaries for a long time:

  • macOS refuses to start node when downloaded from the tarball build#3538 (2023): Gatekeeper refuses to start node from the tarball, "Notary Ticket Missing".
  • tools: add osx notarization support for tarballs #52610 (2024): my first attempt to notarize the tarballs, stalled on the Jenkins side and closed as stale.
  • error: Signature will not be accepted by Gatekeeper! in macos15-release-pkg build build#4527 (2026-10-19): pkg notarization ticket not visible right after Accepted, fixed with a retry loop in tools: retry Gatekeeper check and stapling after notarization #66855.
  • v26.13.0 Darwin tarball binaries are not notarized build#4545 (2026-10-29): v26.13.0 tarball binaries have no ticket, syspolicyd slows every spawn.
  • macOS 26.3 arm64: Node v24.19.0 checksum-matched artifacts fail signature verification help#5173, Node.js Foundation Core Technical Committee (CTC) Meeting 2016-02-10 #5176, test: mark test flaky on windows again #5178 (October 2026): "invalid signature" reports on Node 24 artifacts that collaborators cannot reproduce.

Historically this was hard to reproduce locally, which is why #52610 never got the testing it needed.

[Solved] local reproduction at least to debug

I wrote a script that downloads the darwin tarball and the pkg for a version, verifies signatures, asks Apple whether a notarization ticket exists, and compares the tarball binary with the one inside the pkg. It needs no credentials and executes nothing it downloads, so anyone can run it on any modern macOS version and architecture: https://gist.github.com/UlisesGascon/ddce84a3f80521324e1c77bbfba12dba.

sh macos-validate.sh v26.12.1 v26.13.0 v24.22.1
DIST=https://nodejs.org/download/nightly ARCH=arm64 sh macos-validate.sh v28.0.0-nightly202610304e48b9b06b

Relevant output from my execution, same result for all three releases and for the nightly:

$ codesign --verify --strict --verbose=2 node-v26.13.0-darwin-x64/bin/node
node-v26.13.0-darwin-x64/bin/node: valid on disk
node-v26.13.0-darwin-x64/bin/node: satisfies its Designated Requirement
  exit=0
$ codesign --verify --verbose=2 -R=notarized node-v26.13.0-darwin-x64/bin/node
test-requirement: code failed to satisfy specified code requirement(s)
  exit=3

$ pkgutil --check-signature node-v26.13.0.pkg
   Status: signed by a developer certificate issued by Apple for distribution
   Notarization: trusted by the Apple notary service
  exit=0
$ xcrun stapler validate node-v26.13.0.pkg
The validate action worked!
  exit=0

  CDHash DIFFER: tarball=f2a61f63d9bcc07d74e1f67c443c85cff7a5cdd5 pkg=940e23498f45871c88f11bdf04d07760a4e243a7

So every tarball bin/node is correctly signed with our Developer ID but has no notarization ticket, on x64 for 24.22.1, 26.12.1 and 26.13.0, and on arm64 for today's nightly. Correction: the signatures are fine, but the "no ticket" results came from codesign -R=notarized, which only reads the local cache. Apple's ticket service shows tickets for 24.22.1 and 26.12.1 on both arches (created 2026-10-21 to 10-23, by third parties) and none for 26.13.0 and the nightly. Every pkg is notarized and stapled. The pkg's bin/node is a different build from the tarball's, so the pkg ticket does not cover it. The "invalid signature" errors in the help issues do not reproduce on 15.0.1, 26.4.1 or 27.0.1.

What is wrong here?

  1. The binary target in the Makefile only runs tools/osx-codesign.sh. tools/osx-notarize.sh is only called by the pkg target, takes a version id and hardcodes node-$pkgid.pkg as the thing to submit. Tarball binaries have never been submitted to Apple.
  2. On the Jenkins side the NOTARIZATION_* variables that gate the script are only exported on the pkg axis, so even a Makefile change would be a no-op on the tar nodes until the job is adjusted.
  3. There is no verification step for tarballs. The pkg gets spctl --assess and a stapler check; the tar job has nothing, so an unticketed binary ships silently.
  4. The one tarball known to carry a ticket (26.12.1 arm64, per v26.13.0 Darwin tarball binaries are not notarized build#4545) is the exception, probably from a manual submission during the test-http-regr-gh-2928 is flakey in parallel runs #4527 debugging, not evidence of a working path. Correction: most tarball binaries do end up with a ticket, one to seven days after release, because third parties notarize apps that bundle our signed bin/node and Apple issues a ticket for every nested binary. That is accidental and late, not a working path; 26.13.0 shows what the first days after a release look like. The pkg's bin/node cannot cover it: the pkg target configures with the default prefix and the tarball target with --prefix=/ and PORTABLE=1, so the two binaries always differ.

Proposal

Two PRs plus one Jenkins change:

  1. nodejs/node: make tools/osx-notarize.sh take a path, keep the pkg flow as is, and add a binary flow: zip bin/node with ditto, submit with notarytool, verify that Apple's ticket service returns a ticket for the binary's cdhash, using the existing retry helper, fail the build if no ticket appears. Call it from the binary target after codesign. The binary is not modified, so the published checksums do not change. Backport to 22, 24 and 26.
  2. nodejs/build: a tools/macos-tarball-notarization.sh that checks any published version for a ticket against Apple's ticket service (codesign -R=notarized is not a reliable check, see the update) and, with --submit and the release keychain profile, backfills the ones that lack it. Plus docs in release-overview.md describing the signing and notarization flow and how to enable it on a job axis.
  3. ci-release iojs+release: export NOTARIZATION_ID and NOTARIZATION_TEAM_ID on the macOS tarball axes. NOTARIZATION_PASSWORD already reaches every axis through the job-level credentials binding apple-notarization-password, and the release image already has the cert and the NODE_RELEASE_PROFILE keychain profile on every macOS release VM, so nothing changes in ansible or orka. The job has one conditional step per axis type; the pkg one injects the variables, the tar one does not. The change is two lines in the tar step's "Inject environment variables" block:
 <org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>
   <runCondition class="org.jenkins_ci.plugins.run_condition.core.ExpressionCondition">
     <expression>osx1(\d|\d\d\d)-release-tar|macos1(\d|\d\d\d)-release-tar</expression>
     <label>${ENV, var="nodes"}</label>
   </runCondition>
   <conditionalbuilders>
     <EnvInjectBuilder>
       <info>
-        <propertiesContent>CODESIGN_CERT=Developer ID Application: Node.js Foundation</propertiesContent>
+        <propertiesContent>CODESIGN_CERT=Developer ID Application: Node.js Foundation
+NOTARIZATION_ID=REDACTED
+NOTARIZATION_TEAM_ID=REDACTED</propertiesContent>
       </info>
     </EnvInjectBuilder>
     <hudson.tasks.Shell>
       <command>... security unlock-keychain -p ${SSH_RELEASE_PASSWORD} ... make -j $JOBS binary-upload ...</command>
     </hudson.tasks.Shell>
   </conditionalbuilders>
 </org.jenkinsci.plugins.conditionalbuildstep.ConditionalBuilder>

Backlog

We can split into 2 goals (notarize on release and backfill) as they are independent and the priorities differ too.

Notarize on release

  • @UlisesGascon create the Node PR: tools: notarize bin/node in the darwin tarballs #67143
    • land the PR
  • @UlisesGascon fork the existing iojs+release job into a new one and execute it
  • @UlisesGascon validate the results and decide if we apply the changes on iojs+release and remove the temporal job
  • @UlisesGascon check the nighthly buils now are properly notarize

Backfill

  • @UlisesGascon create the Build PR: Check and backfill notarization of darwin tarballs build#4549
    • land the PR
  • @nodejs/build to decide if we want a pipeline job just to backfill (see: Check and backfill notarization of darwin tarballs build#4549 (comment))
    • @UlisesGascon create the job to check and backfill recent releases in Jenkins release
  • @UlisesGascon backfill the missing binaries without a ticket via ssh on a release VM
    • @UlisesGascon to check the total affected packages: see Check and backfill notarization of darwin tarballs build#4549 (comment). In non-EOL 136 already have a notarization ticket and 42 do not, (29 x64 and 13 arm64).
Reacted by Stewart X Addison

Activity

  1. UlisesGascon
    self-assigned this
    on Oct 30, 2026
  2. UlisesGascon
    added
    buildIssues and PRs related to Node.js builds or CI infrastructure.
    build-agendaIssues and PRs to discuss during Build Working Group meetings.
    on Oct 30, 2026
  3. sxa commented on Oct 30, 2026

    @sxa
    sxa
    on Oct 30, 2026
    Member
    More actions

    Sounds good to me - thanks for investigating and figuring out how to fix it. I feel we wouldn't want to go back and re-submit previous ones so we should ideally try to get this in place for the next feasible release on each line.

  4. UlisesGascon
    added 2 commits that reference this issue on Oct 30, 2026

    tools,doc: check and backfill notarization of darwin tarballs

    29df27f

    tools,doc: check and backfill notarization of darwin tarballs

    c9e0277
  5. UlisesGascon commented on Oct 30, 2026

    @UlisesGascon
    UlisesGascon
    on Oct 30, 2026
    MemberAuthor
    More actions

    While working on nodejs/build#4549 and shaping the backfill script I discovered quite interesting things, so basically:

    • codesign --verify -R=notarized is not an online check. It only reads the local ticket cache. On a Mac that never fetched a ticket for a binary it fails even when Apple has one. Running spctl --assess first triggers the fetch and the same codesign call then passes. All the "no ticket" results in this issue and in the logs above came from that command, so most of them were false negatives. Sorry for the noise.
    • Asking Apple directly tells a different story. Apple's Gatekeeper ticket service can be queried by CDHash, the same lookup syspolicyd does, and it is cache-free. For the 18 most recent tarballs (three releases per supported line, both arches): 15 have a notarization ticket, 3 do not: v26.13.0 x64, v26.13.0 arm64 and v26.12.0 x64.
    • The tickets are not ours. Our .pkg tickets are created within a minute of the pkg signature. The tarball tickets are created one to seven days after each release and get re-issued regularly. That is third parties: when someone notarizes an app that bundles our unmodified, Developer ID signed bin/node, Apple issues a ticket for every nested binary, including ours. Popular versions get covered within days; a brand new one (26.13.0 was built on 10-28) or one nobody bundles (26.12.0 x64) does not. This follows from how tickets work, none of it is Node specific:
      • A ticket is a signed list of cdhashes with "at least one entry for every item of executable code in your product", and a cdhash "uniquely identifies executable code that's been notarised" (Apple DTS, Notarisation Fundamentals). So a bundled bin/node gets its own entry under the bundler's submission, keyed by the same hash as our tarball binary.
      • Gatekeeper checks "the notarization status of any piece of signed code, using only its code signing digest", and without a stapled ticket it fetches it from an Apple CloudKit service (Mothers Ruin, Notarization Tickets). The same DTS post shows syspolicyd fetching from api.apple-cloudkit.com/.../com.apple.gk.ticket-delivery/.../records/lookup, which is the endpoint I queried; the record name is 2/<digest_type>/<cdhash> (apple-codesign ticket_lookup).
      • Gatekeeper "looks for the app's ticket online" first and only falls back to a stapled ticket offline (Xcode help), which is why a bare binary with no stapled ticket still runs clean once anyone has notarized that hash.

    So the tarball binaries are not "never notarized"; they are notarized late, by accident, by other people. The real gap is the first days after every release, which is when most users upgrade, plus any version nobody happens to bundle. That is exactly the window where nodejs/build#4545 was hit.

    What this changes:

    • tools: notarize bin/node in the darwin tarballs #67143 stands, with a better reason: the ticket should exist at release time, not whenever a vendor gets to it.
    • The backfill shrinks to the three binaries above.
    • The check in Check and backfill notarization of darwin tarballs build#4549 queries Apple's ticket service by CDHash instead of relying on codesign. Check mode is verified on macOS against those 18 tarballs and matches the direct queries.
    • The "invalid signature" help issues are still unreproduced; nothing here explains them.

    I will edit the issue body to strike the wrong claims and point here.Edit: Already up to date

  6. UlisesGascon commented on Oct 30, 2026

    @UlisesGascon
    UlisesGascon
    on Oct 30, 2026
    MemberAuthor
    More actions

    I feel we wouldn't want to go back and re-submit previous ones so we should ideally try to get this in place for the next feasible release on each line.

    @sxa I did split the effort into two independent pieces, so we can decide without pressure on the backfill. I am checking now how many versions are affected after the last findings

    Reacted by Stewart X Addison
  7. UlisesGascon
    changed the title [-]darwin tarball binaries are signed but not notarized[/-] [+]darwin tarball binaries are not notarized at release time[/+] on Oct 30, 2026
  8. nodejs-github-bot
    added a commit that references this issue on Nov 15, 2026

    tools: notarize bin/node in the darwin tarballs

    55da353
  9. aduh95
    added 2 commits that reference this issue on Nov 16, 2026

    tools: notarize bin/node in the darwin tarballs

    e0c71bc

    tools: notarize bin/node in the darwin tarballs

    eff99c1
  10. UlisesGascon commented on Nov 18, 2026

    @UlisesGascon
    UlisesGascon
    on Nov 18, 2026
    MemberAuthor
    More actions

    Goal archived: Notarize on release

    So, the first part is completed. From now on any binary for macOS that is signed also is notarized at the same time. We need to decide about the backfill to complete close this issue

    Details

    So the nightly build v28.0.0-nightly202611181fb0cd6978 has been notarized successfully (as includes #67541), while the previous nightly build v28.0.0-nightly20261116ab476eccd0 has not been notarized yet.

    Logs at https://ci-release.nodejs.org/job/iojs+release/12368/nodes=macos15-release-pkg/console and https://ci-release.nodejs.org/job/iojs+release/12368/nodes=macos15-arm64-release-tar/console show the notarization process for both builds.

    Using the nodejs/build#4549 you can check locally using MacOS (no matter CPU architecture) if a nightly build has been notarized or not. The script tools/macos-tarball-notarization.sh can be used to check the notarization status of a specific nightly build.

    Install the build repository and checkout the PR to use the script:

    git clone https://github.com/nodejs/build.git && cd build
    gh pr checkout 4549 --repo nodejs/build
    export NODE_DIST_URL=https://nodejs.org/download/nightly

    Check notarization of the nightly build v28.0.0-nightly202611181fb0cd6978 (notarized):

    tools/macos-tarball-notarization.sh --arch arm64 v28.0.0-nightly202611181fb0cd6978
    echo "exit $?"
    ==> node-v28.0.0-nightly202611181fb0cd6978-darwin-arm64
        notarization: ticket present
    checked 1, without ticket 0, could not check 0
    all checked binaries carry a notarization ticket
    exit 0
    

    Check notarization of the nightly build v28.0.0-nightly20261116ab476eccd0 (not notarized):

    tools/macos-tarball-notarization.sh --arch arm64 v28.0.0-nightly20261116ab476eccd0
    echo "exit $?"
    ==> node-v28.0.0-nightly20261116ab476eccd0-darwin-arm64
        notarization: NO ticket (run with --submit to backfill)
    checked 1, without ticket 1, could not check 0
    published binaries without a notarization ticket; see above
    exit 1
    
  11. Renegade334
    added a commit that references this issue on Nov 21, 2026

    tools: notarize bin/node in the darwin tarballs

    7d50f8a
  12. sxa
    removed
    build-agendaIssues and PRs to discuss during Build Working Group meetings.
    on Nov 26, 2026
  13. gabylb
    added a commit that references this issue on Nov 27, 2026

    tools: notarize bin/node in the darwin tarballs

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

Metadata

Metadata

Assignees

  • @UlisesGascon
    UlisesGascon

Labels

buildIssues and PRs related to Node.js builds or CI infrastructure.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.