Skip to content

macos: Finish release signing: run the setup script, then verify a signed release (follow-up to #2383) #2424

Done

Description

@zackees

Follow-up to #2383. The Apple side is ready, and one secret is set. What's left is listed below.

Done (2026-10-25)

  • Apple Developer Program renewed through 2026-10-25 → 2027-10-25. Team Zachary Vorhies (NCFFSNX26D).
  • MACOS_SIGNING_IDENTITY = Developer ID Application: Zachary Vorhies (NCFFSNX26D).
  • Setup script: gist. It makes the key and certificate request, takes the downloaded Developer ID certificate, builds the .p12, and sets the remaining secrets with gh secret set. No secret goes through chat.

To do

  1. Maintainer, on a Mac (needs gh logged in):
    bash <(curl -fsSL https://gist.githubusercontent.com/zackees/546bf7c0a5979ec8f4cff22be2346c3d/raw/f859e9022046292c9b96bc73460889640701a10f/macos-signing-setup.sh)
    
    It asks for the Apple ID email and opens the Developer ID Application certificate page (upload the request, download the .cer). Then it asks for an app-specific password from account.apple.com.
  2. Back up ~/obs-rust-signing (private key and .p12) somewhere safe.
  3. Coordinator: check that all five secrets are set: MACOS_SIGNING_IDENTITY, MACOS_SIGNING_CERT, MACOS_SIGNING_CERT_PASSWORD, MACOS_NOTARIZATION_USERNAME and MACOS_NOTARIZATION_PASSWORD. Then dispatch a release build of master.

Acceptance criteria

Activity

  1. self-assigned this
    on Oct 25, 2026
  2. added
    P2
    size:S
    on Oct 25, 2026
  3. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    All five MACOS_* secrets are set (2026-10-25 22:30 UTC). The certificate is Developer ID Application: Zachary Vorhies (NCFFSNX26D), issued by Developer ID G2 and valid until 2027-11-24. It was checked against its key, and the .p12 uses legacy encryption so security import accepts it. Verification run (verify_only, publishes nothing): https://github.com/obs-rust/obs-studio/actions/runs/40240506753

    Follow-up: the app-specific password was pasted into a chat log, so revoke it and set a new one once signing is confirmed (~/obs-rust-signing/set-notarization-secrets.sh).

  4. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    Status: signing + notarization work. #2428 prints Apple's notary log; #2430 (merged) signs Sparkle's and CEF's nested code; verify_only run 40246027884: both macOS builds Accepted and stapled. Policy in #2433; reusable ci.yml section proposed in forge-ci/ci.yml#462. Left before closing this and #2383: the next tagged release shows codesign/notarize true and the quarantine workaround leaves the release notes. Still open for the account holder: rotate the app-specific password that was exposed in plain text.

  5. zackees commented on Oct 26, 2026

    @zackees
    MemberAuthor

    What's left before this and #2383 close, after the coordinator's research:

    1. Release notes: drop the quarantine workaround. Filed as release: Drop the macOS quarantine workaround from the release notes now that the DMG is notarized (#2424) #2493.
    2. The macOS arm64 DMG shutdown crash (-11) is macOS arm64: packaged app crashes (SIGSEGV) during shutdown after reloading a saved capture profile #2432.
    3. Releases come from release-rust.yaml's daily schedule or a dispatch, not from tags pushed by hand, and it has failed since 2026-10-24: the Windows builds and the Windows x64 release gate. I dispatched a full release on master to get current evidence: run 40352480030.
    4. Once a run publishes, check both macOS jobs show codesign: true and notarize: true, then run spctl --assess --type execute and xcrun stapler validate on the DMG on a Mac.
  6. 7 remaining items

  7. moved this from Blocked to Needs decision in obs-rust Multiviewon Oct 28, 2026
  8. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Decided: the publish criterion is met; what is left is one Mac check plus the password rotation, both for the maintainer, in one sitting. Then close this and #2383.

    Reasons:

    Maintainer, on a Mac:

    gh release download obs-studio-rust-v0.1.0-beta.20261028 -R obs-rust/obs-studio -p "*macos-$(uname -m | sed s/x86_64/x86_64/).dmg" -D ~/Downloads
    DMG=$(ls ~/Downloads/OBS-Studio-Rust-0.1.0-beta.20261028-macos-*.dmg)
    xcrun stapler validate "$DMG"
    hdiutil attach "$DMG" -mountpoint /Volumes/obsr
    spctl --assess --type execute -vv /Volumes/obsr/*.app
    open /Volumes/obsr/*.app   # must open with no Gatekeeper prompt
    hdiutil detach /Volumes/obsr

    Download the DMG with a browser instead of gh if you want the quarantine attribute set, which is the real user path.

    Then rotate the app-specific password that was pasted into a chat log (2026-10-25 comment): revoke it at account.apple.com, create a new one, and run ~/obs-rust-signing/set-notarization-secrets.sh.

    If all of that passes, close #2424 and #2383. If spctl rejects the app, post its output here and this goes back to a worker.

    Removing human-review-needed: no decision is left open, only the steps above.

  9. removed
    human-review-needed
    on Oct 30, 2026
  10. moved this from Needs decision to Triage in obs-rust Multiviewon Oct 30, 2026
  11. vpacher commented on Nov 13, 2026

    @vpacher
    Member

    Coordinator triage: only maintainer steps are left, so this issue is not a worker task.

    1. On a Mac, run the Gatekeeper check from the 2026-10-30 comment (stapler validate, spctl --assess) on the newest beta DMG.
    2. Rotate the app-specific password. Only the Apple account holder can do this.

    Then close this issue and #2383. Labelled human-review-needed, so the issue waits on the maintainer and leaves the triage list.

  12. added
    human-review-needed
    on Nov 13, 2026
  13. moved this from Triage to Needs decision in obs-rust Multiviewon Nov 13, 2026
  14. rdoupe commented on Nov 14, 2026

    @rdoupe
    Collaborator

    The macOS release builds have been failing at notarization since 2026-11-13. This needs the Apple account holder, not a code change.

    Both Build macos arm64 and Build macos x86_64 build and package the DMG, then the notary submission is refused:

    Error: HTTP status code: 403. A required agreement is missing or has expired. This request requires an in-effect agreement that has not been signed or has expired.
    

    Runs: the scheduled release of 2026-11-13 (run 43468991070), the manual run of 2026-11-14 11:45 UTC (43591511399) and the scheduled release of 2026-11-14 (43611475920). The 2026-11-12 and 2026-11-11 runs failed earlier for other reasons (Windows Tier 2, AppImage on 22.04), so they never reached notarization.

    Fix: the account holder for team NCFFSNX26D signs in at developer.apple.com and accepts the updated Apple Developer Program License Agreement from the banner on the Account page. Apple shows it to the Account Holder role only. Then rerun the release workflow. The secrets and scripts need no change.

  15. zackees commented on Nov 21, 2026

    @zackees
    MemberAuthor

    Status 2026-11-21: the agent-side work is done, and only the maintainer can finish this. human-review-needed stays.

    What I checked:

    • Notarization 403 (release: macOS notarization fails with 403, the Apple developer agreement has expired #4868) is resolved and that issue is closed. Every scheduled release since 2026-11-18 has succeeded. In the 2026-11-21 run 44926003835, both macOS builds log codesign: true and notarize: true, Apple returns "status":"Accepted", and both log The staple and validate action worked!. Both Native macOS … DMG startup 🧪 jobs pass. That run published v1.0.1-beta.20261121, and its release notes no longer have the quarantine workaround. Acceptance criteria 1 and 3 are met on current master.
    • The setup script does not need to run again. The five MACOS_* org secrets are set (2026-10-25).
    • No CI job runs spctl. The criterion asks for a person on a Mac to download the DMG and open it without a Gatekeeper prompt, so no agent can check it.

    The one action left for the maintainer, in one sitting on a Mac signed in as the Apple account holder:

    1. Download OBS-Studio-Rust-1.0.1-beta.20261121-macos-<arm64|x86_64>.dmg from the release page with a browser, so the file gets the quarantine attribute. Then run:
      DMG=~/Downloads/OBS-Studio-Rust-1.0.1-beta.20261121-macos-$(uname -m).dmg
      xcrun stapler validate "$DMG"
      hdiutil attach "$DMG" -mountpoint /Volumes/obsr
      spctl --assess --type execute -vv /Volumes/obsr/*.app
      open /Volumes/obsr/*.app   # must open with no Gatekeeper prompt
      hdiutil detach /Volumes/obsr
    2. In the same sitting, rotate the app-specific password that was exposed on 2026-10-25. Revoke it at account.apple.com, create a new one, and run ~/obs-rust-signing/set-notarization-secrets.sh.

    If both pass, close this and #2383. If spctl rejects the app, post its output here and this goes back to a worker.

  16. zackees commented on Nov 22, 2026

    @zackees
    MemberAuthor

    Status 2026-11-22:

    • Gatekeeper check: ci(release): check stapler and Gatekeeper on the downloaded macOS DMG (#2424) #5441 adds xcrun stapler validate and spctl --assess (DMG and installed app) to the release's Native macOS … DMG startup 🧪 job, on both architectures. Once it merges, the next scheduled release checks the acceptance criterion on every DMG, with no Mac needed.
    • Password rotation is still for the Apple ID holder. MACOS_NOTARIZATION_PASSWORD was last set on 2026-10-26 at 21:21 UTC, the day after the exposure. If that update was the rotation and the exposed password was revoked at account.apple.com, this part is done; say so here. If not, revoke it, create a new app-specific password and set it with gh secret set MACOS_NOTARIZATION_PASSWORD -o obs-rust --visibility selected. The org also has APPLE_NOTARY_PASSWORD, set 2026-11-21 and visible to all repos. If it is the same Apple ID's password, rotate it too.
    • Follow-up: moving notarization to an App Store Connect API key (notarytool --key) would remove the app-specific password altogether.
  17. zackees commented on Nov 28, 2026

    @zackees
    MemberAuthor

    Decided: done. The maintainer approved closing this (2026-11-27).

    All acceptance criteria pass on the release run of 2026-11-27, 46051996356, which published v1.0.1-beta.20261127:

    • Both macOS builds are signed and notarized.
    • Both Native macOS … DMG startup 🧪 jobs pass xcrun stapler validate ("The validate action worked!"), and spctl --assess accepts the DMG and the installed app with source=Notarized Developer ID, on arm64 and x86_64. ci(release): check stapler and Gatekeeper on the downloaded macOS DMG (#2424) #5441 added these checks.
    • The release notes no longer have the quarantine workaround.

    The Developer ID certificate expires 2027-11-24. The app-specific password can only be rotated at account.apple.com, and doing so is optional hardening (see the 2026-11-22 comment). Moving notarization to an App Store Connect API key would remove that password altogether.

  18. removed
    human-review-needed
    on Nov 28, 2026
  19. moved this from Needs decision to Done in obs-rust Multiviewon Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2size:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions