# Verifying releases (/docs/thaw/verifying-releases)

Thaw ships macOS app builds intended for wide use. Releases are protected by
several layers. This page explains what those layers are and how you can check
them.

## What we sign [#what-we-sign]

| Layer | What it proves | How it is produced |
| --- | --- | --- |
| **Apple Developer ID + notarization** | Binary came from the Thaw developer team and passed Apple’s notarization checks | Release GitHub Actions (signing + `notarytool`) |
| **Sparkle EdDSA** | Downloaded **update archives** (e.g. release ZIPs) match signatures produced with the project’s Sparkle private key; the app verifies them with `SUPublicEDKey` | Sparkle tools in the release pipeline sign update packages; public key embedded in the app (`Info.plist`). The appcast lists those updates over HTTPS; **feed-level** signing (`SURequireSignedFeed`) is not enabled |
| **Sigstore (cosign)** | GitHub Release **DMG** (and **SBOM**) blobs match a keyless cosign signature bundle uploaded beside the asset | org-ci’s `release-macos-app.yml` runs `cosign sign-blob` and attaches `*.sigstore.json` |
| **SLSA build provenance** | Subject was built by the shared `thaw-app/org-ci` build workflow, which this repository’s release workflow can call but not alter, so verification can be pinned to that builder (**SLSA v1.0 Build L3**) | org-ci’s `build-macos-app.yml` via `actions/attest-build-provenance`; stored in the GitHub Attestation Store and attached as `*.intoto.jsonl` |
| **CycloneDX SBOM** | Machine-readable inventory of the SwiftPM dependencies linked into the shipped app | Syft (pinned by version and archive digest) over the tagged source tree in org-ci’s `build-macos-app.yml`; uploaded as `Thaw_<tag>.cdx.json` |
| **Git tag signatures** | Important version tags are GPG-signed by the releaser | `git tag -s` (or equivalent) on release tags |

The Sparkle **private** key and Apple signing credentials are stored as CI
secrets. They are not kept on the public download host as the long-term way
users fetch builds (GitHub Releases / Homebrew are the distribution surfaces;
signing happens in CI before publish).

## Public Sparkle key [#public-sparkle-key]

The EdDSA public key shipped inside Thaw:

```text
fQ2kWqCLfAPAxQX1rp8gVNoG9hlAV/Gmm7kMBbxFe+A=
```

Source of truth in-tree: `Thaw/Resources/Info.plist` key `SUPublicEDKey`.  
Appcast URL: `https://thaw-app.github.io/updates/appcast.xml` (`SUFeedURL`).
Legacy installs may still poll `https://stonerl.github.io/Thaw/appcast.xml`;
release CI mirrors the same `appcast.xml` there (see [RELEASES.md](/docs/thaw/releases)).

How installers vs Sparkle payloads are split across repos:
[Release and update distribution](/docs/thaw/releases).

Sparkle uses this key automatically when checking for updates inside the app.
You normally do **not** need to verify EdDSA by hand if you install a notarized
build and use in-app updates.

## Check a downloaded `.app` (Gatekeeper / notarization) [#check-a-downloaded-app-gatekeeper--notarization]

After unzipping a GitHub Release archive:

```sh
# Quarantine + Gatekeeper assessment (macOS)
spctl --assess --type execute -v /path/to/Thaw.app

# Notarization ticket staple / history (when available)
xcrun stapler validate /path/to/Thaw.app
codesign --verify --deep --strict --verbose=2 /path/to/Thaw.app
codesign -dv --verbose=4 /path/to/Thaw.app 2>&1 | grep -E 'Authority|TeamIdentifier|Timestamp'
```

Expect a **Developer ID Application** certificate and a successful assessment
for notarized release builds. Homebrew-installed builds follow Homebrew’s own
cask/bottle verification in addition to Apple’s checks.

## Check a release DMG with Sigstore [#check-a-release-dmg-with-sigstore]

Release installers on `thaw-app/Thaw` include a companion
`Thaw.dmg.sigstore.json` (or similarly named) asset produced by cosign keyless
signing in CI, plus a `Thaw.dmg.sha256` checksum.

Releases from 3.0.0-beta.1 on are signed by the shared release workflow in
`thaw-app/org-ci`, so the certificate identity names that workflow and the
certificate’s repository extension names `thaw-app/Thaw`. Check both: the
identity alone would also match another app released through the same
workflow, and the repository alone would accept a bundle signed by **any other
workflow** of this repository. The component after `@` records the org-ci ref
the workflow ran at; print the certificate with
`cosign verify-blob … --output json` if you want to pin it exactly for a given
release. Releases up to 3.0.0-alpha.11 were signed by this repository’s own
`release.yml`; verify those with
`--certificate-identity-regexp '^https://github\.com/thaw-app/Thaw/\.github/workflows/release\.yml@refs/'`
and without the repository flag.

```sh
# Download DMG + bundle + checksum from the GitHub Release, then:
shasum -a 256 -c Thaw.dmg.sha256

cosign verify-blob \
  --bundle Thaw.dmg.sigstore.json \
  --certificate-identity-regexp '^https://github\.com/thaw-app/org-ci/\.github/workflows/release-macos-app\.yml@' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-github-workflow-repository thaw-app/Thaw \
  Thaw.dmg
```

## Check SLSA build provenance [#check-slsa-build-provenance]

Releases that went through the current release workflow also publish **GitHub
Artifact Attestations** for the installer DMG and SBOM. The app is built,
notarized and attested inside
[`thaw-app/org-ci`’s `build-macos-app.yml`](https://github.com/thaw-app/org-ci/blob/main/.github/workflows/build-macos-app.yml),
a reusable workflow that this repository’s release workflow calls. The caller
chooses what to build and cannot change the build steps or the signer, which is
what **SLSA v1.0 Build L3** asks for. The provenance names that workflow as the
builder and the tag’s commit as the source: the release is dispatched on the
tag, and the build fails if the tag names any other commit.

Releases before this change (3.0.0-alpha.11 and earlier) were attested at Build
L2 by a signing-only workflow in this repository,
`thaw-app/Thaw/.github/workflows/attest-build-provenance.yml`; verify those with
that path as the signer workflow.

The same attestation bundle is attached to the GitHub Release as
`Thaw.dmg.intoto.jsonl` / `Thaw_<tag>.cdx.json.intoto.jsonl` (for offline copy
and OpenSSF Scorecard Signed-Releases). Prefer verifying via the Attestation
Store:

```sh
# After downloading Thaw.dmg from the GitHub Release:
gh attestation verify Thaw.dmg --repo thaw-app/Thaw \
  --signer-workflow thaw-app/org-ci/.github/workflows/build-macos-app.yml

# Same for the SBOM:
gh attestation verify Thaw_3.0.0.cdx.json --repo thaw-app/Thaw \
  --signer-workflow thaw-app/org-ci/.github/workflows/build-macos-app.yml
```

`--signer-workflow` pins verification to the shared build workflow: the
identity that built and signed, rather than any workflow in this repository.
Cosign `*.sigstore.json` bundles prove **blob integrity** from the release job;
attestations prove **build provenance**. Check both for a full release review.

## Check the release SBOM [#check-the-release-sbom]

Each Thaw GitHub Release that went through the current release workflow includes:

| Asset | Purpose |
| --- | --- |
| `Thaw_<tag>.cdx.json` | CycloneDX Software Bill of Materials for the release’s resolved SwiftPM dependencies |
| `Thaw_<tag>.cdx.json.sha256` | SHA-256 of the SBOM file |
| `Thaw_<tag>.cdx.json.sigstore.json` | Cosign keyless signature bundle for the SBOM |
| `Thaw_<tag>.cdx.json.intoto.jsonl` | SLSA build provenance attestation bundle (also in the GitHub Attestation Store) |

```sh
# After downloading the three files from the GitHub Release:
shasum -a 256 -c Thaw_3.0.0-beta.1.cdx.json.sha256

cosign verify-blob \
  --bundle Thaw_3.0.0-beta.1.cdx.json.sigstore.json \
  --certificate-identity-regexp '^https://github\.com/thaw-app/org-ci/\.github/workflows/release-macos-app\.yml@' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  --certificate-github-workflow-repository thaw-app/Thaw \
  Thaw_3.0.0-beta.1.cdx.json
```

The SBOM is generated by Syft from the tagged source tree, whose
`Package.resolved` is the authoritative record of the SwiftPM dependencies linked
into the shipped app. Build output and CI workflow definitions are excluded, so
the SBOM describes shipped dependencies rather than release tooling. It is a
best-effort inventory, not a legal license notice.

## Check a Git version tag [#check-a-git-version-tag]

1. Fetch tags and identify the release tag (e.g. `2.0.0-rc.1`).
2. Before trusting a new key, obtain the releaser’s **full GPG fingerprint**
   from a source you already trust (for example the Project Lead’s GitHub
   profile GPG keys page, or a fingerprint previously confirmed out-of-band).
   Compare that fingerprint **character-for-character** to the key you are about
   to import. Do not import or trust a key solely because `git verify-tag`
   downloaded it from a keyserver.
3. Verify the tag signature, then confirm the tag points at the intended release
   commit (the commit published for that GitHub Release).

```sh
git fetch --tags origin

# After importing a key whose full fingerprint you already matched to a trusted source:
git verify-tag <tag>    # e.g. 2.0.0-rc.1

# Tag must resolve to the intended release commit:
git rev-parse <tag>^{}
# Compare to the commit SHA shown on the GitHub Release page for that tag.
```

If `git verify-tag` reports an unknown key, import only after the fingerprint
check above succeeds.

## Install channels [#install-channels]

- GitHub Releases: https://github.com/thaw-app/Thaw/releases  
- Homebrew: `brew install thaw` / `brew install thaw@beta`  
- In-app updates: Sparkle (stable / beta channels in Settings)

## Related [#related]

- [ARCHITECTURE.md](/docs/thaw/architecture)
- [ASSURANCE_CASE.md](/docs/thaw/assurance-case)
- [Thaw/Floe Security Policy](https://github.com/thaw-app/.github/blob/main/.github/SECURITY.md)
