Repository navigation
feat(cli): Publish install script checksums with each release - #1962
Merged
Merged
Conversation
Attach the install and install.ps1 scripts the website serves to each CLI release. Craft uploads them to the GitHub release and the release registry records their SHA-256, so users and agents can check the scripts from cli.sentry.dev against a source other than the website. Co-Authored-By: Burak Yigit Kaya <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
evanpurkhiser
approved these changes
Nov 4, 2026
BYK
approved these changes
Nov 4, 2026
BYK
enabled auto-merge (squash)
November 4, 2026 21:30
Co-Authored-By: BYK <[email protected]>
This was referenced Nov 4, 2026
7 tasks done
evanpurkhiser
added a commit
to getsentry/sentry
that referenced
this pull request
Nov 12, 2026
…ease (#130060) The private CLI setup runbook (#129764) tells the agent to run `curl -fsSL https://cli.sentry.dev/install | … bash`. That runs whatever cli.sentry.dev serves at that moment, at whatever version it picks. Since getsentry/toolkit#1962, each CLI release attaches its `install` script as a GitHub release asset, and the release registry lists its URL (`file_urls.install`). The runbook now runs the installer from the latest release in the cached `/apps` registry entry and pins `SENTRY_VERSION` to that same release. CLI releases are immutable on GitHub, so that script can't change after publish, and the installer already verifies the CLI binary against the registry's checksums before installing it. - `sentry.agent_handoff.installer` picks the installer and builds the command; the runbook only renders it. - The URL ends up in a shell command, so only a `github.com/getsentry/toolkit/releases/download/cli@<semver>/install` URL is accepted, and the pinned version comes from that URL. - When the registry has no `install` asset (self-hosted, or before the first CLI release that ships one), the runbook uses the plain `curl https://cli.sentry.dev/install | bash` command. <!-- junior-request-attribution:start --> via **evan.purkhiser**, @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC010884QHLG%3A1793826611.312959 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC010884QHLG%3A1793826611.312959) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC010884QHLG%3A1793826611.312959/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Evan Purkhiser <[email protected]> Co-authored-by: BYK <[email protected]>
This branch was previously 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.
The install scripts served at
cli.sentry.dev/installand/install.ps1have no checksum published anywhere. A checksum served from the same origin wouldn't help, because whoever can change the script can change the checksum too.The Build workflow now uploads the scripts from the built docs output (the files that end up in
vercel.zip) as aninstall-scriptsartifact, and craft picks it up. That gives each[email protected]releaseinstallandinstall.ps1assets, with GitHub's automatic SHA-256 digests. The release registry target records every release artifact, sofiles.install.checksums["sha256-hex"]will also show up atrelease-registry.services.sentry.io/apps/sentry/<version|latest>. I checked the currentlatestentry: it already lists every artifact, includingvercel.zip. The npm, brew, and vercel targets filter by name, so they ignore the new files.The artifact gets its own name instead of a
sentry-*one because the nightly jobs downloadsentry-*-*, and the scripts shouldn't end up in GHCR or the patch generation.The installation docs get a short "verify the install script" snippet that checks the downloaded script against the registry. The craft targets run in order (github → vercel → registry), so for a short time during a release the website can be newer than the registry. The docs say to retry if the checksums differ.
The first release after this merges will be the first to include the new assets.
via @BYK.
--
View Session [Sentry]