Repository navigation
Check that Apple, Sigstore and the latest stable's updater still accept releases - #1337
Open
tolgaergin wants to merge 6 commits into
Open
tolgaergin wants to merge 6 commits into
tolgaergin wants to merge 6 commits into
Conversation
tolgaergin
force-pushed
the
ci/release-trust-gates
branch
from
November 25, 2026 12:43
70773ab to
8ab098e
Compare
…pt releases Installed copies of LPM check each update with code they can never change, against Apple and Sigstore records that keep changing. Nothing watched those from the outside, and nothing checked that a new release is one the updaters already in the field accept. - scripts/ci/previous-stable-update-gate.sh installs the latest stable through the official installer into a throwaway home, serves a release on loopback, and has that stable update itself to it through its own `lpm self-update`. On macOS it hides Xcode and the Command Line Tools once the latest stable no longer needs them. - The release workflow runs it on every candidate and nightly after the installer smoke test, so a release the latest stable's updater would refuse is never published. - The new Release trust workflow runs daily: Apple must still vouch for the current stable and nightly macOS apps (stapler and Gatekeeper, which see revoked tickets and certificates that offline clients can't), Sigstore's live repository must still serve the trust root built into LPM, and the latest stable must update itself to the newest nightly on Linux x64 and arm64 and macOS arm64 and x64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…and use real publication times Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The updater finds the account's home from the system, not $HOME, and on macOS updates only an app in that home, so the gate failed on every Mac. It now runs only in GitHub Actions, sets the account's ~/.lpm aside beside itself, and puts it back afterwards. The developer tools state lives under RUNNER_TEMP with an always() restore step, python3 must not come from the tools it hides, the server binds its own port, and versions compare by SemVer precedence through scripts/ci/semver-newer.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Promotion signs the release again, and users get that signature, not the candidate's. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…es, and install the Sigstore job's build packages The macOS run exited with no message. The server now writes the port it bound, startup failures print the server's log, and an ERR trap names the failing line. The Sigstore job installs pkg-config and libdbus-1-dev like the other Linux builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On macos-15-intel the server never wrote its port. It now runs from a script file with stdin closed, gets 30 seconds to start, and a failure prints the python3 used, the server process and its log. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tolgaergin
force-pushed
the
ci/release-trust-gates
branch
from
November 25, 2026 13:36
f5d8979 to
6a2c546
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
An installed copy of LPM checks every update with code it can never change, against records that Apple and Sigstore keep changing. Nothing watched those records from the outside. Nothing checked that a new release is one that the updaters already in the field accept, either. #1329 removed the Apple calls from the clients and agreed to move those checks to the release side. This PR adds them.
Fix
scripts/ci/previous-stable-update-gate.sh:$HOME, and on macOS it updates only an app installed there. So the gate runs only in GitHub Actions. It sets the account's~/.lpmaside and puts it back afterwards.lpm self-update, and the gate checkslpm --version.stapler.scripts/ci/semver-newer.py.RUNNER_TEMP, and analways()step restores the tools.release.yml: the gate runs in two places.A release the latest stable's updater would refuse is never published.
New
Release trustworkflow, which runs daily, on PRs that touch it, and on dispatch:codesign,stapler validate(with the existing retry wrapper) and Gatekeeper'sspctl --assess. These see revoked tickets and certificates that offline clients can't.Tests
Review round: the council found that the first version of the gate could never pass on macOS. Check that Apple, Sigstore and the latest stable's updater still accept releases #1337's own run on macos-15-intel failed with "macOS standalone updates require execution from /Users/runner/.lpm/…". That is fixed as described above, along with:
python3that comes from the hidden tools.Declined: Sol's suggestion to run the gate with Sigstore refresh turned off. Once Sigstore rotates a key, that would block every release, because installed copies learn new keys by refreshing.
Gate against the real nightly, on Linux arm64 (OrbStack, Debian 12): after the rework, with
GITHUB_ACTIONS=trueand the realpublishedAt, 0.88.0, installed by the official installer, updated itself through loopback to0.89.0-nightly.20261124.284.bc3608e. A planted~/.lpmcame back intact. In an earlier run, one byte appended toSHA256SUMS.txtmade 0.88.0 refuse the update, and the gate failed, saying installed copies would be stranded. Outside GitHub Actions the gate refuses to run.Apple checks: run locally against the real 0.88.0 app; all three pass.
Sigstore check: the live test passes against Sigstore's repository today.
Lint:
actionlintandshellcheckare clean for the new files. The one remainingrelease.ymlwarning is in an existing job.Stacked on #1336.
🤖 Generated with Claude Code