Date: 2026-08-03 (last updated 2026-08-12)
This document is the contract between release.yml and the repository
settings: the names here are the names the workflow reads. See
code-signing-setup.md for the human acquisition
checklist and signing-decision-record.md for why
these services were chosen. The full security model (classification,
compromise response, release trust, onboarding) lives in
docs/security/security-hardening.md;
the architectural trust-zone model (client-safe config schema, deny-lists,
artifact scans, import boundaries, future backend) lives in
docs/security/trust-boundaries.md.
No real credential appears here, and none should ever be committed anywhere in this repository.
The release workflow supports two honest modes. With the signing credentials
below, it produces cryptographically verified platform-signed installers and,
when the updater key is present, signed Tauri updater artifacts. When those
credentials are absent and RELEASE_EXPECT_SIGNED is unset, the documented
zero-cost contingency builds and publishes manual-download installers with
signed: false metadata and OS-specific warnings. It does not generate an
updater feed, and it never labels an unsigned artifact as signed.
RELEASE_EXPECT_SIGNED=true is the explicit fail-closed switch: missing
platform signing credentials stop the release before packaging. The updater
key is independently optional; without it, existing clients remain on manual
updates until the key is provisioned.
Set under Settings → Secrets and variables → Actions → Variables.
| Name | Values | Effect |
|---|---|---|
RELEASE_EXPECT_SIGNED |
true / unset |
When true, signing is REQUIRED for any platform being built: signing-preflight fails if credentials are absent, and the verify trust gate fails if the post-build verification reports do not confirm signatures/notarization/stapling. Set to true before the first stable release. |
AZURE_SIGNING_ACCOUNT |
e.g. varve-signing |
Artifact Signing account name (non-secret configuration) |
AZURE_SIGNING_PROFILE |
e.g. varve-public-trust |
Public Trust certificate profile name (non-secret) |
AZURE_SIGNING_ENDPOINT |
e.g. https://wus2.codesigning.azure.net |
Regional Artifact Signing endpoint (non-secret) |
The Windows signing command contains NO secrets: Tauri's signCommand is built
from these variables at release time and merged via --config; authentication
comes from the AZURE_SIGNING_CLIENT_* secrets via the process environment.
| Secret | What it is |
|---|---|
APPLE_CERTIFICATE |
Developer ID Application certificate, .p12, base64-encoded |
APPLE_CERTIFICATE_PASSWORD |
Password for that .p12 |
APPLE_SIGNING_IDENTITY |
Exactly Developer ID Application: <Legal Name> (TEAMID). The workflow refuses identities that do not start with Developer ID Application: — Apple Development / Apple Distribution certs are the wrong type for direct DMG distribution |
APPLE_API_ISSUER |
App Store Connect API Issuer ID |
APPLE_API_KEY |
App Store Connect API Key ID |
APPLE_API_KEY_P8_BASE64 |
The .p8 private key file, base64-encoded (decoded to a temp file in CI; APPLE_API_KEY_PATH points at it) |
APPLE_TEAM_ID |
10-character Team ID (used only when falling back to Apple ID auth) |
APPLE_ID / APPLE_PASSWORD |
Fallback notarization auth (Apple ID + app-specific password). Prefer the API key trio above — scoped, revocable, no account password |
Notarization auth is satisfied by either the API key trio or the
Apple ID trio; signing-preflight checks both and fails a signed macOS build
if neither is complete.
Not obtainable without a paid membership. There is no free tier for Developer ID signing or notarisation.
Paid Azure subscription required (free/trial/sponsored are rejected by the
service). Basic SKU ≈ USD $9.99/mo. Identity validation (individual or
organization) is a human step — see code-signing-setup.md §A.2.
| Secret | What it is |
|---|---|
AZURE_SIGNING_CLIENT_ID |
Service principal application (client) ID |
AZURE_SIGNING_CLIENT_SECRET |
Service principal secret (rotate on a calendar; see signing-rotation-runbook.md) |
AZURE_SIGNING_TENANT_ID |
Entra tenant ID |
The identity needs exactly one role on the certificate profile: Artifact Signing Certificate Profile Signer. Nothing more.
Auth chain (audited 2026-08-08): Tauri's official integration uses
artifact-signing-cli (pinned 0.11.0), which authenticates by running
az login --service-principal with the client secret and drives signtool
with Microsoft.ArtifactSigning.Client. OIDC/workload-identity federation is
not supported by that tool today — a client secret is required. Mitigations:
short-lived-ish secrets with calendar rotation, a dedicated app registration,
least-privilege role, and secrets that exist only for the tag-only release
workflow. Re-evaluate OIDC when Microsoft or the CLI supports it.
| Secret | What it is |
|---|---|
TAURI_SIGNING_PRIVATE_KEY |
Minisign private key for update manifests |
TAURI_SIGNING_PRIVATE_KEY_PASSWORD |
Its password |
These secrets are used only by the release bundle step and must be stored in a
protected release secret set. The private key is stored, backed up and rotated
separately from the Apple/Windows material above; installed clients trust
the embedded public key, so losing the private key makes future updates
impossible for existing installs. See
update-strategy.md and the rotation runbook.
release.yml follows least privilege, and build is separated from publish:
| Job | Permissions | Why |
|---|---|---|
preflight, gate |
contents: read |
Read-only checks |
signing-preflight |
contents: read |
Presence-boolean policy resolution — secret VALUES never enter this job |
bundle |
contents: read |
Builds + signs. Cannot write a release — a compromised build step cannot publish |
package-smoke, platform-smoke |
contents: read |
Install/launch/signature verification |
verify |
contents: read, id-token: write, attestations: write |
Trust gate + GitHub artifact attestation of final bytes. No contents: write |
draft |
contents: write |
Creates the draft and uploads assets |
publish |
contents: write + environment approval |
Flips the draft public |
The top-level default is contents: read; jobs escalate individually.
id-token: write exists only on verify (for attestation).
release.yml's publish job declares environment: release-publish.
Publication requires explicit authorization and fresh artifact verification:
- Explicit dispatch input. The publish job only runs on a manual
workflow_dispatchwithpublish=yes. A tag push always stops at a draft; nothing in the pipeline auto-publishes. - Actual draft verification. The publish job downloads a fresh copy of
every draft asset. It authenticates
SHA256SUMS.txtthrough the release workflow's GitHub attestation and its certificate's exact source SHA. An explicit recovery build additionally requires accepted master ancestry and the certificate's exact workflow, ref, run and attempt; authenticated installer sidecars retain the certified product tag and policy. It then checks the downloaded bytes, required package formats, policy-bound provenance, SBOMs, installer-size reports, platform signing labels and any updater signatures. Changed asset inventories fail before publication. When the updater signing key is configured, its channel feed is required; any feed must cover every requested and included installer target, includingdarwin-aarch64, and point to this tag's matching signed updater bundles.
Windows reports are retained as signing-report-windows-x86_64.json and
signing-report-windows-aarch64.json. The reader accepts legacy UTF-8 BOMs and
fails on unreadable reports; platform signing labels aggregate both verified
architectures instead of allowing one report to overwrite the other.
The environment adds an approval checkpoint only when Required reviewers are configured in repository settings. A read-only settings check on 2026-10-02 found the environment present with no protection rules; publication does not currently wait for a reviewer. Adding reviewers is a separate repository administration decision, not a prerequisite invented by the workflow.
The exact publish command:
gh workflow run release.yml --ref v0.5.0 \
-f tag=v0.5.0 -f platforms=all -f publish=yesOptional additional protection (repo settings):
- Create the
release-publishenvironment - Add at least one required reviewer
- Verify by running a release and confirming the workflow waits
Why signing secrets are repository-level (decision, 2026-08-08): GitHub
only exposes environment-scoped secrets to jobs that statically declare that
environment, and environment names cannot be conditional on policy output —
attaching production-signing to the bundle job would require human approval
for unsigned prerelease builds too. For a solo maintainer the effective controls
are: the workflow triggers only on tags / explicit workflow_dispatch (never
pull_request — enforced by scripts/validate-workflows.mjs), the draft is
created only after the fail-closed trust gate, and publication requires an
explicit dispatch plus verification of the actual draft. Revisit when a second maintainer exists:
move signing secrets into a production-signing environment with required
reviewers and tag restriction, and declare it on the bundle job.
- Never
echoa secret.release.yml's signing preflight prints only presence booleans (P_APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE != '' }}), never values. - Never pass a secret as a command-line argument — arguments appear in process listings. Use the environment.
- Never persist a secret through
$GITHUB_ENV. Since 2026-08-12 the signing credentials are declared inline on the Tauri build (signed platforms) step only, so no later step (SBOM, checksums, artifact upload, failure diagnostics) can observe them. Enforced byscripts/security/workflow-policy.mjs. - Never add a secret to a workflow triggered by
pull_request_targetor otherwise reachable from a fork.release.ymlruns on tags only; the policy validator rejects non-default secrets in any PR-capable workflow. - Release tags must point at a commit reachable from the protected default
branch — the preflight provenance gate enforces this (a
workflow_dispatchtag input cannot release arbitrary code). - Rotate anything that appears in a log, even if the log was private, and even
if it was masked — masking is best-effort.
scripts/ci-debug.mjsredacts credential-shaped strings before failure snippets reach reports or PR comments. - Client builds fail closed on secret ingress: the environment guard
(
scripts/security/validate-client-env.mjs) denies signing, backend, DNS and PRIVATE_/SIGNING_/DNS_ classes from the website and desktop build environments. The signed Tauri build step is the one documented exception (VARVE_SIGNING_STEP_ALLOWED=1), and its output dist is always re-scanned (scripts/secret-scan.mjs --dir apps/desktop/dist --canary ...). .gitignoreexcludes.env*,*.p12,*.pfx,*.p8,*.key,*.pem,*.der,*.cer,*.crt,*.csr,.npmrc,.netrc, and the CI-generatedtauri.signing.windows.json.- The App Store Connect
.p8is decoded to/tmpon the runner and the keychain is a throwawaybuild.keychain— nothing is uploaded as an artifact. verify-windows-signature.ps1/verify-macos-signature.shnever receive secrets: they inspect artifact bytes and emit JSON reports.
Each involves payment, identity verification, or accepting a legal agreement, and is outside what automation should do. Full walkthrough: code-signing-setup.md §A.
- Apple Developer Program — USD $99/yr; Developer ID Application
certificate; App Store Connect API key; offline
.p12/.p8backup - Azure subscription (paid) + Artifact Signing account (Basic) + identity validation + Public Trust profile + service principal with the Certificate Profile Signer role
- GitHub
release-publishenvironment with required reviewers - (Future) Microsoft Store developer account if the Store path is taken — free, requires government ID verification; Individual vs Company decision cannot be changed later