From ea2266b7269bf10a89c318b5e30b69e76e798b36 Mon Sep 17 00:00:00 2001 From: Vikram Date: Mon, 30 Nov 2026 22:37:22 +0530 Subject: [PATCH] Release: sign and notarize the Mac builds; fix the Rust security advisories macOS: the builds were ad-hoc signed ("signingIdentity": "-"), so Gatekeeper blocked them. They are now signed with the Developer ID Application certificate and notarized with an App Store Connect API key (secrets APPLE_CERTIFICATE, APPLE_CERTIFICATE_PASSWORD, APPLE_SIGNING_IDENTITY, APPLE_API_ISSUER, APPLE_API_KEY, APPLE_API_KEY_CONTENT; the .p8 is written to a temporary file for APPLE_API_KEY_PATH). A new step fails the release unless each Mac app passes codesign --verify --strict, carries the Developer ID authority and hardened runtime, passes Gatekeeper (spctl) and has its notarization ticket stapled. cargo audit (which stopped the 0.12.0 release): patch updates for the four vulnerable dependencies: url 2.5.9 (RUSTSEC-2026-0592), cookie 0.18.3 (RUSTSEC-2026-0594), quinn-proto 0.11.19 (RUSTSEC-2026-0523, -0524) and quinn-udp 0.5.16 (RUSTSEC-2026-0538). The remaining entries are informational (unmaintained/unsound) and don't fail the audit. cargo check passes. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 46 +++++++++++++++++++++++++++++------ CHANGELOG.md | 4 +++ src-tauri/Cargo.lock | 46 +++++++++++++++++------------------ src-tauri/tauri.conf.json | 1 - 4 files changed, 65 insertions(+), 32 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 020b087..75b63bd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -89,20 +89,33 @@ jobs: echo "VEYRA_NOTES_EOF" } >> "$GITHUB_OUTPUT" + # macOS: Developer ID signing and notarization (App Store Connect API key). The .p8 key is written to a + # temporary file because Tauri reads it from a path. + - name: Apple notarization key + if: matrix.platform == 'macos-latest' + shell: bash + env: + APPLE_API_KEY_CONTENT: ${{ secrets.APPLE_API_KEY_CONTENT }} + run: | + if [ -z "$APPLE_API_KEY_CONTENT" ]; then echo "::error::The APPLE_API_KEY_CONTENT secret is missing"; exit 1; fi + key="$RUNNER_TEMP/AuthKey.p8" + printf '%s\n' "$APPLE_API_KEY_CONTENT" > "$key" + chmod 600 "$key" + echo "APPLE_API_KEY_PATH=$key" >> "$GITHUB_ENV" + - uses: tauri-apps/tauri-action@v0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Signs the update bundles; the matching public key is in src-tauri/tauri.conf.json. TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }} - # Optional OS code signing (removes "unidentified developer" / SmartScreen warnings). - # Uncomment after adding the secrets; see docs/RELEASING.md. - # APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }} - # APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }} - # APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }} - # APPLE_ID: ${{ secrets.APPLE_ID }} - # APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} - # APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} + # macOS: sign with the Developer ID Application certificate and notarize with the App Store Connect + # API key, so the app opens without Gatekeeper warnings. Only set on the macOS builds. + APPLE_CERTIFICATE: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_CERTIFICATE || '' }} + APPLE_CERTIFICATE_PASSWORD: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_CERTIFICATE_PASSWORD || '' }} + APPLE_SIGNING_IDENTITY: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_SIGNING_IDENTITY || '' }} + APPLE_API_ISSUER: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_API_ISSUER || '' }} + APPLE_API_KEY: ${{ matrix.platform == 'macos-latest' && secrets.APPLE_API_KEY || '' }} with: tagName: v__VERSION__ releaseName: Veyra Studio v__VERSION__ @@ -112,6 +125,23 @@ jobs: includeUpdaterJson: true args: ${{ matrix.args }} + # Fail the release if a Mac build isn't signed with Developer ID, notarized and stapled. + - name: Check the macOS signature and notarization + if: matrix.platform == 'macos-latest' + shell: bash + run: | + set -euo pipefail + target=$(echo "${{ matrix.args }}" | sed -E 's/.*--target ([^ ]+).*/\1/') + bundle="src-tauri/target/$target/release/bundle" + app=$(find "$bundle/macos" -maxdepth 1 -name '*.app' | head -1) + dmg=$(find "$bundle/dmg" -maxdepth 1 -name '*.dmg' | head -1) + echo "App: $app"; echo "DMG: $dmg" + codesign --verify --deep --strict --verbose=2 "$app" + codesign -dv --verbose=4 "$app" 2>&1 | grep -E "Authority=Developer ID Application|TeamIdentifier|flags=.*runtime" + spctl --assess --type execute --verbose=4 "$app" + xcrun stapler validate "$app" + spctl --assess --type open --context context:primary-signature --verbose=4 "$dmg" + # The VS Code extensions (Veyra Live Server, Veyra Port Manager), attached to the same draft release. vscode-extension: name: VS Code extension (${{ matrix.dir }}.vsix) diff --git a/CHANGELOG.md b/CHANGELOG.md index 38f1af7..776bfa5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,9 +19,13 @@ in-app update prompt. Headings must be `## `. **A cinematic launch screen** - The hummingbird sweeps in under drifting stars, lands, and "Veyra Studio" types itself out while a real progress bar fills +**Signed and notarized for Mac** +- The macOS downloads are signed with an Apple Developer ID and notarized by Apple, so Veyra opens without the "unidentified developer" warning + **Fixes** - Error Lens messages no longer overlap the next line - Search Everywhere highlights matches without spacing out the text +- Security updates for the networking and URL libraries Veyra uses ## 0.11.0 diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index d58011b..ffb3a4e 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -516,9 +516,9 @@ dependencies = [ [[package]] name = "cookie" -version = "0.18.2" +version = "0.18.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +checksum = "d55f2d6c30eeec7d5c6f98bd4395d4abb1895629eab97ee6522d340623615f8a" dependencies = [ "time", "version_check", @@ -789,7 +789,7 @@ dependencies = [ "libc", "option-ext", "redox_users", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -966,7 +966,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -1092,9 +1092,9 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" [[package]] name = "form_urlencoded" -version = "1.2.2" +version = "1.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "afa489199eaffb1211795df1c6236ce1ad0d41a6fa45250add73e3b02420f06e" dependencies = [ "percent-encoding", ] @@ -2249,7 +2249,7 @@ dependencies = [ "png 0.18.1", "serde", "thiserror 2.0.20", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -2977,9 +2977,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.18" +version = "0.11.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9746dbde176634f4f2f1faf2404e30a31b2bc1e9cafb5329c95d8177a18c9fc" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" dependencies = [ "bytes", "getrandom 0.4.3", @@ -2999,16 +2999,16 @@ dependencies = [ [[package]] name = "quinn-udp" -version = "0.5.15" +version = "0.5.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" dependencies = [ "cfg_aliases 0.2.2", "libc", "once_cell", "socket2", "tracing", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -3273,7 +3273,7 @@ dependencies = [ "errno", "libc", "linux-raw-sys", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -3330,7 +3330,7 @@ dependencies = [ "security-framework", "security-framework-sys", "webpki-root-certs", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -3761,7 +3761,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -4363,10 +4363,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.3", + "getrandom 0.3.4", "once_cell", "rustix", - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -4719,7 +4719,7 @@ dependencies = [ "png 0.18.1", "serde", "thiserror 2.0.20", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -4754,7 +4754,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" dependencies = [ "memoffset", "tempfile", - "windows-sys 0.60.2", + "windows-sys 0.61.2", ] [[package]] @@ -4777,9 +4777,9 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "url" -version = "2.5.8" +version = "2.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +checksum = "f00cd2407bb42c0ef17be88d4cf020f5cceffd121665bac9b8b9493a369b3b1a" dependencies = [ "form_urlencoded", "idna", @@ -5130,7 +5130,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.60.2", + "windows-sys 0.59.0", ] [[package]] @@ -5151,7 +5151,7 @@ dependencies = [ "objc2-foundation", "objc2-quartz-core", "raw-window-handle", - "windows-sys 0.60.2", + "windows-sys 0.61.2", "windows-version", ] diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 882bc47..ecd5f3d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -53,7 +53,6 @@ "shortDescription": "AI-native desktop code editor", "category": "DeveloperTool", "macOS": { - "signingIdentity": "-", "minimumSystemVersion": "11.0" } },