Minor Changes
-
Feat: warn on silently skipped update signature verification and validate
publisherNameagainst the signing certificate at build time#10056331afdd@claudeTwo guards around Windows update signature verification:
- electron-updater: when
app-update.ymlexists but contains nopublisherName, the updater used to skip signature verification (including customverifyUpdateCodeSignaturehooks) completely silently. It now logs a warning explaining that verification was skipped, how to fix it (sign the build sopublisherNameis derived automatically, or setwin.publisherNameexplicitly), and that this fail-open behavior is deprecated: electron-builder v28 will treat a missingpublisherNameas a verification failure (fail-closed). The no-app-update.ymlpath (unpackaged/dev mode) stays silent. - app-builder-lib: when
publisherNameis explicitly configured and the subject of the local code signing certificate is known, the build now fails with a clear error if none of the configured names match the certificate (same DN-subset/CN matching semantics as the updater's verifier; any one of multiple configured names matching passes, so certificate-rotation setups keep working). This catches signing with the wrong certificate at build time instead of at update time. The check is skipped whenever the actual signing certificate's subject is not genuinely known (customsignhooks, Azure Trusted Signing, PKCS#11 without an extractable certificate, x509 files without a CN), andpublisherName: nullremains a pure opt-out.
- electron-updater: when
Patch Changes
- Fix: expose
./package.jsonin theexportsmap so tooling (including electron-builder's installed-version check) can resolve the installed version viarequire.resolve("electron-updater/package.json")#100190fdb4cb@claude - Security hardening and a migrate-schema fix:
#10036b87a0b7@mmaiettabuilder-utilremovePassword: redact single-letter/URI secret flags (security … -k <password>,osslsigncode -key <pkcs11-uri?pin-value=…>) and whitespace-containing secrets in debug logs, and make the/b … /cblock-redaction regex ReDoS-safe.builder-util-runtimehttpExecutor: fix the non-functionalmaxRedirectsguard (the redirect counter was never advanced), so a redirect loop from a malicious feed/mirror no longer hangs the updater.electron-updaterGitLabProvider: only forward the GitLab token to the channel-file request when its URL is same-origin as the API host, so an off-host/http://direct_asset_urlin the release JSON cannot exfiltrate the token.app-builder-lib: defense-in-depth hardening — validateexecutableNamebefore interpolating it into the generated Flatpak launcher, contain custom-toolset extraction within the cache dir, and XML-escape MSI file-associationext/description.electron-buildermigrate-schema: auto-remove the removedlinux.syncDesktopNameflag.