From 05c5463efb4bf8ccba346a9ff55900f38ffd1800 Mon Sep 17 00:00:00 2001 From: skylartaylor Date: Thu, 26 Nov 2026 16:57:42 +0100 Subject: [PATCH] nightly: forward the thirteen signing secrets the sign steps actually read The caller forwarded fifteen: the thirteen environment names plus the optional Windows PFX pair. The PFX pair is optional at runtime (the signer accepts the six AZURE_* values when it is absent), and no app's release environment holds it, so forwarding it does nothing. It also puts the caller outside the reviewed set: the settings closure derives its allowlist from the app's targets, which is thirteen for a Linux/macOS/Windows app, and refuses an extra name. This forwards exactly the thirteen and trims the app's own SIGNER_SECRETS allowlist to match. The callee keeps declaring all fifteen, since extra declarations are harmless and it only checks for missing ones. --- .github/workflows/nightly-sign.yml | 2 -- packaging/nightly-release-tests.py | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/nightly-sign.yml b/.github/workflows/nightly-sign.yml index 053ef7a014..6e52159bbf 100644 --- a/.github/workflows/nightly-sign.yml +++ b/.github/workflows/nightly-sign.yml @@ -50,8 +50,6 @@ jobs: APPLE_ID: ${{ secrets.APPLE_ID }} APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }} APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }} - WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }} AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} diff --git a/packaging/nightly-release-tests.py b/packaging/nightly-release-tests.py index c47537301f..21866a4be8 100755 --- a/packaging/nightly-release-tests.py +++ b/packaging/nightly-release-tests.py @@ -13,8 +13,7 @@ ROOT = Path(__file__).resolve().parents[1] # Exactly the secrets the nightly sign steps read; the signer caller may forward these and no others. SIGNER_SECRETS = { "LINUX_SIGNING_KEY", "APPLE_CERTIFICATE", "APPLE_CERTIFICATE_PASSWORD", "KEYCHAIN_PASSWORD", - "APPLE_ID", "APPLE_PASSWORD", "APPLE_TEAM_ID", "WINDOWS_CERTIFICATE", - "WINDOWS_CERTIFICATE_PASSWORD", "AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET", + "APPLE_ID", "APPLE_PASSWORD", "APPLE_TEAM_ID", "AZURE_TENANT_ID", "AZURE_CLIENT_ID", "AZURE_CLIENT_SECRET", "AZURE_SIGNING_ENDPOINT", "AZURE_SIGNING_ACCOUNT", "AZURE_CERT_PROFILE", } INSTALLED_POLICY = ROOT / ".github/nightly-signing-policy.json"