Skip to content

fix: escape Unicode format chars in terminal output; gate releases on signing key - #198

Merged
andyrewlee merged 1 commit into
mainfrom
advisor/025-sanitize-release-gate
Sep 28, 2026
Merged

andyrewlee merged 1 commit into
mainfrom
advisor/025-sanitize-release-gate

Conversation

@andyrewlee

Copy link
Copy Markdown
Owner

Summary

  • Terminal sanitization now covers Unicode Cf format chars. isTerminalControl escapes bidi overrides (U+202A–E, U+2066–9), zero-width spaces, word joiners, BOM, and tag chars — a paste-hijack vector in branch/commit/path text that git refname rules allow. Same \xNN escape convention as existing Cc/C1 handling; the raw-JSON boundary is untouched.
  • Release gate. make release now runs check-release-ready after check-release-version: it fails fast when install.sh's MINISIGN_PUBKEY is empty/placeholder or MINISIGN_KEY_FILE is unset/not a minisign secret key. Snapshots are intentionally ungated (goreleaser build never reaches the signs: pipe).
  • Docs. CONTRIBUTING's Releasing section + signing runbook now describe the local flow (key file outside the repo, MINISIGN_KEY_FILE env, check-release-ready preflight); .goreleaser.yaml comment updated to match.

Test plan

  • go test ./cmd -run 'Sanitize|Teleport' — new Cf cases pass in both text and error renderers
  • sh scripts/check-release-ready.sh — fails on empty key; passes with real key + key file; fails on bogus key file
  • make ci — green

@andyrewlee
andyrewlee merged commit f33a96a into main Sep 28, 2026
3 checks passed
@andyrewlee
andyrewlee deleted the advisor/025-sanitize-release-gate branch September 29, 2026 05:32
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