Skip to content

feat(cli): Publish install script checksums with each release - #1962

Merged
BYK merged 2 commits into
mainfrom
feat/cli-install-script-checksums
Nov 4, 2026
Merged

BYK merged 2 commits into
mainfrom
feat/cli-install-script-checksums

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

The install scripts served at cli.sentry.dev/install and /install.ps1 have 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 an install-scripts artifact, and craft picks it up. That gives each [email protected] release install and install.ps1 assets, with GitHub's automatic SHA-256 digests. The release registry target records every release artifact, so files.install.checksums["sha256-hex"] will also show up at release-registry.services.sentry.io/apps/sentry/<version|latest>. I checked the current latest entry: it already lists every artifact, including vercel.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 download sentry-*-*, 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]

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]>
@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 4, 2026 9:35pm UTC

Request Review

@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 4, 2026
@BYK
BYK enabled auto-merge (squash) November 4, 2026 21:30
@BYK
BYK merged commit eecd4c7 into main Nov 4, 2026
36 checks passed
@BYK
BYK deleted the feat/cli-install-script-checksums branch November 4, 2026 21:45
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

1 inactive deployment
Preview — deabe694 Deployed Nov 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants