Files
photocraft/book/src/development/release-security.md
T
Erica Franco 938542c78b Security: pin and verify the Windows signing client (#2936) (#3938)
sign.ps1 downloaded Microsoft.Trusted.Signing.Client from the unversioned
NuGet URL and loaded its dlib into signtool, next to the Azure signing
secrets, with no version or integrity check.

Download a pinned version (1.0.95, which the unversioned URL serves today)
and refuse it unless its SHA-256 matches, so upgrading the client is a
deliberate change in the repository. The release docs say where the pin
lives.
2026-10-25 12:32:10 -04:00

1.5 KiB

Release security

PhotoCraft's release workflow builds platform packages and a draft GitHub Release from the release branch. The authoritative process is docs/releasing.md.

Implemented workflow elements

  • platform-specific signing/notarization steps exist for macOS and Windows;
  • signing secrets are scoped through the GitHub release environment;
  • the Azure Trusted Signing client that Windows signing loads is pinned to a version and SHA-256, and refused on a mismatch;
  • release artifacts include SHA256SUMS.txt;
  • the final release job receives contents: write, while build jobs use narrower access;
  • artifacts remain in a draft release until a maintainer publishes them.

Signing is conditional. The workflow can produce unsigned artifacts when signing material is unavailable and emits warnings. Consumers and maintainers must verify the job summary and artifact signature rather than assuming every release is signed.

Future hardening

  • generate a machine-readable SBOM for each release;
  • publish provenance/attestations tied to the source commit and workflow;
  • make signature state explicit in release metadata;
  • verify checksums, signatures, notarization, and installer behavior before publication;
  • review action pinning and release-tool provenance;
  • document key rotation and compromise response.

Building, signing, drafting, publishing, and deploying are separate states. A successful build must not be reported as a published release.