Skip to content

fix(v5.1.0): disable updater signing in release workflow - #398

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/release-signing
Nov 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/release-signing

Conversation

@ohgeeceee

Copy link
Copy Markdown
Owner

What changed

Removed the TAURI_SIGNING_PRIVATE_KEY / TAURI_SIGNING_PRIVATE_KEY_PASSWORD env vars from the release workflow (comment left in place explaining why).

Why

The v5.1.0 release build (run 45990837771) produced all bundles successfully, then failed at the signing step:

failed to decode secret key: incorrect updater private key password: Missing comment in secret key

The TAURI_SIGNING_PRIVATE_KEY repo secret is malformed. The successful v5.0.1 release shipped unsigned for the same underlying reason (older tauri-cli skipped signing with a warning; 2.12.6 hard-fails). This change matches current production behavior so the release can proceed.

Follow-up

A tracking issue will be filed to restore signed auto-updates once the secret is re-set from the original ~/.tauri key file.

Verification

  • YAML-only change; release.yml structure unchanged apart from the two env lines.
  • Matches the exact configuration that produced the published v5.0.1 release.

The TAURI_SIGNING_PRIVATE_KEY repo secret is malformed; tauri-cli 2.12.6
hard-fails decoding it ('incorrect updater private key password: Missing
comment in secret key'), which failed the v5.1.0 release build after the
bundles were produced. v5.0.1 already shipped unsigned for the same
underlying reason, so drop the signing env vars to match current
production behavior until the secret is reset.
@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

Security evidence gate passed (success)

No security-sensitive scanner-evidence gap detected.

Mode: enforce

Scanned 1 changed file(s). No missing scanner-evidence signal was detected.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

PR taxonomy review recommended (neutral)

Detected 2 PR taxonomy bucket(s): Security Evidence, CI/CD Recommendation.

Scanned 1 changed file(s).

Roadmap taxonomy buckets:

Security Evidence

Security-sensitive changes should carry explicit scanner, code-scanning, or focused regression evidence.

Signals:

  • 1 security-sensitive path(s) changed

Paths:

  • .github/workflows/release.yml

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • CI workflow changes may ship without failure-mode evidence
  • Dependency or CI drift could surface after merge
  • 1 CI or workflow path(s) changed

Paths:

  • .github/workflows/release.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

Reference set readiness gaps detected (neutral)

Reference evidence present for 0/7 areas (0%) across 1 changed file(s).

This check is based on files changed in this PR. Repository-level readiness is still reported by /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

Hosted promotion readiness passed (success)

No hosted promotion evidence gaps detected across 1 changed file(s); 0 corpus scenarios had matching evidence.

This check compares PR file changes against the evaluator/RAG promotion corpus in src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

No evaluator corpus scenarios matched this PR.

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Config Audit

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

No changed-config issues detected (success)

Scanned 1 config file(s) present at this commit across 1 changed config path(s) and found no issues in the supported security rules.

Changed config files:

  • .github/workflows/release.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@ecc-tools

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Harness Audit

Commit: 6c476ccd68b814a8573fa5f09a2c7f94347ad667

No harness issues detected (success)

Scanned 1 changed config file(s) and found no harness issues.

Changed config files:

  • .github/workflows/release.yml

Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission.

@github-actions
github-actions Bot merged commit 5a4d4b1 into main Nov 27, 2026
17 checks passed
@github-actions
github-actions Bot deleted the fix/release-signing branch November 27, 2026 11:55
@ohgeeceee

Copy link
Copy Markdown
Owner Author

Follow-up: updater signing is now disabled until the repo secret is fixed (issues are disabled on this repo, so tracking here).

The TAURI_SIGNING_PRIVATE_KEY secret cannot be decoded (Missing comment in secret key) — the stored value is not a valid tauri key block. v5.0.1 already shipped unsigned for the same reason; this PR matches that behavior so releases stop hard-failing on tauri-cli 2.12.6.

To restore signed auto-updates (repo admin, ~5 min):

  1. Open the original key file (%USERPROFILE%/.tauri/beemuu.key) that pairs with the pubkey in src-tauri/tauri.conf.json.
  2. Copy the entire file verbatim into the TAURI_SIGNING_PRIVATE_KEY secret; set TAURI_SIGNING_PRIVATE_KEY_PASSWORD (empty if none).
  3. Re-add the two env lines in .github/workflows/release.yml (comment block at the Build and release step).
  4. Cut a patch release and confirm signed assets + latest.json are uploaded.

If the key file is lost: npx tauri signer generate, update the pubkey in tauri.conf.json, set the new secrets. Until then, in-app auto-update has no latest.json to fetch and stays offline — same as since v5.0.1.

@ohgeeceee ohgeeceee left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thatll do

github-actions Bot pushed a commit that referenced this pull request Nov 27, 2026
## What changed
- `@tauri-apps/cli` pinned to exactly `2.12.4` (package.json + lock) —
the version that shipped the unsigned v5.0.1 release.
- release.yml comment updated with the full picture and restore steps.

## Why
Run 45995338192 failed at `Build and release` on both platforms:

```
A public key has been found, but no private key. Make sure to set `TAURI_SIGNING_PRIVATE_KEY` environment variable.
```

tauri-cli 2.12.6 hard-fails when `tauri.conf.json` carries an updater
pubkey and no usable private key — in both states (malformed secret: run
45990837771; no secret env: run 45995338192). CLI 2.12.4 warns and ships
unsigned, which is exactly how v5.0.1 reached production (`Signature not
found for the updater JSON. Skipping upload...`).

## Verification
- Lockfile resolves `@tauri-apps/cli` 2.12.4 (all platform packages).
- JS suite: 1165/1166 local pass; the single failure is the known local
CRLF checkout artifact in `src-tauri/Cargo.lock` (committed blob is LF
and correct — CI green on this check for #396/#398).

## Follow-up
After merge, tag v5.1.0 moves to the new main HEAD and the release is
re-dispatched (the tag's source must carry this pin). Restore path for
signed updates is documented in release.yml and on #398.
github-actions Bot pushed a commit that referenced this pull request Nov 27, 2026
## What changed
- Fresh minisign keypair generated; private key stored in
`TAURI_SIGNING_PRIVATE_KEY` repo secret (passwordless;
`TAURI_SIGNING_PRIVATE_KEY_PASSWORD` set to empty).
- `src-tauri/tauri.conf.json`: updater pubkey replaced with the new
public key.
- `.github/workflows/release.yml`: signing env lines restored with an
explanatory comment.
- CLI pin reverted: `@tauri-apps/cli` back to `^2.12.6` (valid key makes
2.12.6 work).

## Root cause (fully confirmed)
The updater config is **new in the v5.1.0 cycle** — v5.0.1's
`tauri.conf.json` has no `plugins.updater` block at all, which is why it
shipped unsigned without errors. The matching private key was never in
repo secrets (the secrets API listed only `ANTHROPIC_API_KEY`).
tauri-cli refuses to build with a configured pubkey and no private key
in **both** 2.12.4 and 2.12.6, so neither dropping the env vars (#398)
nor pinning the CLI (#399) could work.

Rotating the pubkey is safe: no released install contains the old one.

## Verification
- Private key file validated as proper base64 minisign format before
upload; both secrets created via API (HTTP 201).
- JS suite: 1165 pass / 1 known local CRLF-only artifact (Cargo.lock
line endings; committed blob is LF, CI green on this check
historically).

## After merge
Move tag v5.1.0 to the merged commit and let the tag push run the
release. Expected: signed bundles (`.sig`), `latest.json` uploaded,
draft auto-published. This supersedes the unsigned-fallback tracking
comment on #398.
@ohgeeceee

Copy link
Copy Markdown
Owner Author

Update — resolved properly in PR #400, no secret surgery needed.

Deeper diagnosis changed the picture: the updater config (plugins.updater with pubkey + endpoint) is new in the v5.1.0 cycle — v5.0.1's tauri.conf.json has no updater block, which is the real reason it shipped unsigned without errors. The secrets API also confirmed TAURI_SIGNING_PRIVATE_KEY never existed in this repo (only ANTHROPIC_API_KEY), so the earlier "malformed secret" theory was wrong: there was no key at all, and tauri-cli refuses to build with a configured pubkey and no private key in both 2.12.4 and 2.12.6.

Resolution: a fresh passwordless minisign keypair was generated, the private key is now stored in the TAURI_SIGNING_PRIVATE_KEY repo secret (password secret intentionally empty), and #400 bakes the matching new pubkey into tauri.conf.json and restores the signing env lines. Rotation is safe because no shipped install contains the old pubkey. v5.1.0 therefore ships with working signed auto-updates (signed bundles + latest.json), superseding the unsigned-fallback approach described above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant