Repository navigation
fix(release): publish _signed.exe copies of the Windows agent for older loaders - #251
Open
swarit-stepsecurity wants to merge 2 commits into
Conversation
…er loaders Windows loaders generated in May 2026 and the pinned 1.11.7/1.13.0 loaders download <name>-windows_<arch>_signed.exe, which releases stopped publishing at 1.11.4, so every run fails with a 404. Upload byte-identical copies of the signed agents under that name; the checksum the backend serves for the .exe matches them, so those loaders verify and install unchanged. verify-release fails if a copy differs from the signed .exe.
There was a problem hiding this comment.
🟢 Approval recommended
The changes preserve signed bytes and check copy integrity, with only a non-blocking documentation correction remaining.
1 open issue
What changed in this PR
Restores compatibility with older Windows loaders by publishing the filenames they expect without changing signed agent bytes or backend checksums. Existing releases still require manual backfilling.
Changes:
- Publish byte-identical
_signed.exeagent copies for Windows amd64 and arm64. - Reject mismatched copies during release verification, while warning when copies are absent.
- Document compatibility assets and the fix in release notes.
| File | Description |
|---|---|
| docs/release-process.md | Documents the compatibility assets. |
| CHANGELOG.md | Records the older Windows loader fix. |
| .github/workflows/verify-release.yml | Checks compatibility copies against signed agents. |
| .github/workflows/release.yml | Creates and uploads both compatibility copies after signing. |
Review effort: Balanced
| | `stepsecurity-dev-machine-guard-windows_amd64.exe.bundle` | Sigstore cosign bundle (covers the signed bytes) | | ||
| | `stepsecurity-dev-machine-guard-VERSION-windows_arm64.exe` | Authenticode-signed Windows ARM64 agent | | ||
| | `stepsecurity-dev-machine-guard-windows_arm64.exe.bundle` | Sigstore cosign bundle (covers the signed bytes) | | ||
| | `stepsecurity-dev-machine-guard-VERSION-windows_{amd64,arm64}_signed.exe` | Byte-identical copies of the signed agents, for Windows loaders generated before v1.11.4 that still download the `_signed.exe` name | |
1.18.0 and 1.18.1 shipped without this change, so its CHANGELOG entry moves to [Unreleased].
There was a problem hiding this comment.
🟡 Changes recommended
The release documentation incorrectly excludes supported pinned 1.11.7 and 1.13.0 templates by using a v1.11.4 loader-generation cutoff instead of describing compatibility by the downloaded filename.
2 open issues
Review effort: Balanced
| | `stepsecurity-dev-machine-guard-windows_amd64.exe.bundle` | Sigstore cosign bundle (covers the signed bytes) | | ||
| | `stepsecurity-dev-machine-guard-VERSION-windows_arm64.exe` | Authenticode-signed Windows ARM64 agent | | ||
| | `stepsecurity-dev-machine-guard-windows_arm64.exe.bundle` | Sigstore cosign bundle (covers the signed bytes) | | ||
| | `stepsecurity-dev-machine-guard-VERSION-windows_{amd64,arm64}_signed.exe` | Byte-identical copies of the signed agents, for Windows loaders generated before v1.11.4 that still download the `_signed.exe` name | |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Windows loaders already on customer devices still ask for
stepsecurity-dev-machine-guard-<ver>-windows_<arch>_signed.exe. That covers the single-binary loaders generated May 12–28 2026 (agent-api138bb7da2…dc6b3ac5f) and the pinned 1.11.7 / 1.13.0 Windows templates served May 29 – Sep 18. Releases stopped publishing that name at 1.11.4, so every run gets a 404 and fails (download_failed, exit 1). Those failures are also reported under a device ID the console doesn't show, so nobody sees them.How the old loaders verify a download (
dc6b3ac5f:scripts/windows-device-agent/stepsecurity-loader.ps1):GET /v1/<tenant>/developer-mdm-agent/latest-binary?os=windows&arch=<arch>and readchecksum+signed_checksum(they ignore any extra launcher fields).signed_checksumis a valid Ed25519 signature of the checksum withssh-keygen -Y verify(namespacestepsecurity-mdm-checksum, using the release key built into the loader).https://github.com/step-security/dev-machine-guard/releases/download/v<ver>/stepsecurity-dev-machine-guard-<ver>-windows_<arch>_signed.exe. They have no mirror fallback.checksum.For 1.11.4 and later, the backend serves the checksum and signature of
…-windows_<arch>.exe(windowsBinaryAssetName). The pinned templates bake in that same checksum.Change
release.yml: after Authenticode signing, upload…-windows_{amd64,arm64}_signed.exeas byte-identical copies of the signed agents. Because the bytes are identical, the SHA-256, Authenticode signature, out-of-band.sha256.sigand attestation digest are all the same as the.exe, so old loaders verify and install without any change and nothing changes on the backend. The old loaders don't fetch a separate.sha256.sigfor this name.verify-release.yml: fail if a copy is not identical to the signed.exe. A missing copy only produces a warning, so older releases can still be verified.Re-pushing current loaders through MDM is still the main fix. This change only stops the existing old copies from failing.
Backfill (manual, not part of this PR)
Future releases get the copies automatically. Existing releases need a one-off upload: the current latest (for old latest-mode loaders) and v1.11.7 / v1.13.0 (for the pinned templates):
Testing
actionlintv1.7.7 onrelease.ymlandverify-release.yml: clean.gh: both copies were created byte-identical (cmp), all 10 listed files exist, and both_signed.exenames are uploaded.fail=1), and missing copies only warn.*-windows_<arch>.exe) matches the new names.releaseenvironment), and an end-to-end install by an old loader against a backfilled release.