buzz icon indicating copy to clipboard operation
buzz copied to clipboard

[Bug] macOS auto-update fails signature verification on Intel — both darwin arches share one unversioned Buzz.app.tar.gz in buzz-desktop-latest

Open bosoud opened this issue 4 months ago • 2 comments

Describe the bug

Auto-update on an Intel Mac fails with Update failed: The signature verification failed (observed updating a Block-signed 0.4.22 → 0.4.24). The cause is in the buzz-desktop-latest updater release: both macOS platform entries in latest.json point to the same unversioned Buzz.app.tar.gz, but carry different signatures — the two mac release jobs upload under one shared filename and the last upload wins, so at most one architecture's signature can ever verify.

latest.json as of version: 0.4.24:

platform url signature
darwin-aarch64 …/buzz-desktop-latest/Buzz.app.tar.gz …d1VIeGs3a3REd2QyQ1hYeTNqSlhhL3lUK0RnPT0K
darwin-x86_64 …/buzz-desktop-latest/Buzz.app.tar.gz …cXdrd3pNOWxsbmlZaEVOUzJUZUV2dFJTSUNRPT0K
linux-x86_64 …/Buzz_0.4.24_amd64.AppImage (versioned, per-file)
windows-x86_64 …/Buzz_0.4.24_x64-setup_alpha-unsigned.exe (versioned, per-file)

Same URL, two different signatures. The file currently at that URL is the arm64 build:

$ gh release download buzz-desktop-latest -R block/buzz -p Buzz.app.tar.gz
$ tar -xzf Buzz.app.tar.gz && file Buzz.app/Contents/MacOS/buzz-desktop
Buzz.app/Contents/MacOS/buzz-desktop: Mach-O 64-bit executable arm64

So every darwin-x86_64 client fails signature verification — and the failure is actually load-bearing: if the x86_64 signature ever did verify, Intel users would be handed an arm64 binary.

Note the asset list also shows every Linux/Windows artifact since 0.3.20 accumulating in buzz-desktop-latest with versioned names, while macOS alone uses the overwriting unversioned name — which is presumably how the collision was introduced.

To Reproduce

  1. Install Buzz_0.4.22_x64.dmg (Intel) from the v0.4.22 release.
  2. Settings → check for updates → install.
  3. Update failed: The signature verification failed.

Expected behavior

Each mac architecture publishes its own updater artifact (e.g. Buzz_<version>_aarch64.app.tar.gz / Buzz_<version>_x64.app.tar.gz, matching the versioned naming already used for Linux/Windows), with latest.json pointing each darwin-* key at its own file.

Environment

  • Installed app: Buzz 0.4.22, Developer ID Block, Inc. (EYF346PHUG), notarized, Mach-O thin x86_64
  • macOS on Intel (x86_64), Darwin 25.5.0
  • buzz-desktop-latest state as of 2026-07-24

bosoud avatar Jul 24 '26 08:07 bosoud

Fixed in https://github.com/block/buzz/pull/2694 — arch-specific updater archive names so Intel/arm64 no longer overwrite each other.

chessing234 avatar Jul 24 '26 08:07 chessing234

Still live on v0.5.2 — with the served payload confirmed as the wrong architecture

Hit this again today on an Intel Mac: "Update failed: The signature verification failed". Since the original report diagnosed this from the pipeline, here is the same failure captured from the production updater manifest and the served artifact, which pins down the mechanism end to end.

The manifest points both macOS architectures at one unversioned file

From the endpoint the shipped app reads, …/releases/download/buzz-desktop-latest/latest.json (v0.5.2):

platform url
darwin-aarch64 …/buzz-desktop-latest/Buzz.app.tar.gz
darwin-x86_64 …/buzz-desktop-latest/Buzz.app.tar.gz
linux-x86_64 …/Buzz_0.5.2_amd64.AppImage
windows-x86_64 …/Buzz_0.5.2_x64-setup_alpha-unsigned.exe

Two architectures, two distinct signature values, one shared URL. Linux and Windows already use versioned, arch-specific filenames; only the macOS pair collides.

The signatures show which build won the race

Decoding the minisign trusted comments from the two darwin entries in that same manifest:

darwin-x86_64    timestamp 2026-07-29T22:16:02Z   file:Buzz.app.tar.gz
darwin-aarch64   timestamp 2026-07-29T22:28:55Z   file:Buzz.app.tar.gz

The asset's own updatedAt is 22:29:05Z — i.e. the aarch64 job finished ~13 minutes after the x86_64 job and overwrote its tarball, while latest.json kept both signatures.

Confirming the served bytes are actually arm64

Downloading the file the manifest hands to an Intel client:

$ curl -sL -o Buzz.app.tar.gz .../buzz-desktop-latest/Buzz.app.tar.gz
$ tar xzf Buzz.app.tar.gz
$ file Buzz.app/Contents/MacOS/buzz-desktop
Buzz.app/Contents/MacOS/buzz-desktop: Mach-O 64-bit executable arm64

So an Intel client downloads an arm64 application and verifies it against the x86_64 signature. The mismatch is real and the signature check is behaving correctly — it is the only thing preventing an arm64 bundle from being installed onto an Intel machine.

Consequences worth noting

  • It is a race, not a constant. aarch64 finished last this time. If the x86_64 job ever finishes last, Apple Silicon users get the identical failure instead. Whichever arch loses the race has a broken updater for that release.
  • The signature check is the safety net, not the bug. Fixing this by relaxing verification would silently install a wrong-architecture bundle.
  • Manual DMG install is unaffected, because Buzz_<ver>_x64.dmg and Buzz_<ver>_aarch64.dmg are already distinct assets on the versioned release. That is the current workaround: quit, download the arch-correct DMG, verify spctl -a -vv -t install and file …/buzz-desktop, then ditto into /Applications. Confirmed working on v0.5.2 (x86_64, notarized, codesign --verify --deep --strict clean).

#2694 (arch-specific updater archive names) still appears to be open and would resolve this. The manifest above is the direct evidence for the change it makes: the two darwin entries need distinct filenames, exactly as the linux and windows entries already do.

Environment: macOS Intel (x86_64), Buzz Desktop 0.5.0 → attempted in-app update to 0.5.2, Block-signed build. Manifest and artifact fetched 2026-07-31.

bosoud avatar Jul 31 '26 13:07 bosoud