Skip to content

Add Azure signing support and improve workflow for releases - #2396

Merged
mistydemeo merged 17 commits into
axodotdev:mainfrom
scalerail-solutions:opencode/stellar-falcon
Sep 4, 2026
Merged

mistydemeo merged 17 commits into
axodotdev:mainfrom
scalerail-solutions:opencode/stellar-falcon

Conversation

@blyedev

@blyedev blyedev commented May 17, 2026

Copy link
Copy Markdown
Contributor

closes #2395

@blyedev
blyedev marked this pull request as ready for review May 17, 2026 12:31
@mistydemeo

Copy link
Copy Markdown
Contributor

Thank you! I'm a little busy but I'll try to get to reviewing this soon.

@blyedev

blyedev commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

Hey @mistydemeo, I wanted to follow up about the review of this. If you don't have the time that's perfectly fine as well, I can use a fork on rpx until you do, just don't want to duplicate work if it's going to get reviewed soon.

@penberg

penberg commented Jun 25, 2026

Copy link
Copy Markdown

We would love to use this for Turso packaging too. Right now we're working around this with hack in release.yml: tursodatabase/turso#7618

@blyedev

blyedev commented Jul 28, 2026

Copy link
Copy Markdown
Contributor Author

Hi @mistydemeo, excuse the ping but shipping a workaround for this is pretty complex for me and this feature is becoming a blocker for rrepo-org/rpx#45 and a bigger rollout of my cli I'm trying to do.

Do you think it'd be possible to compensate you for the time it would take to review this / ensuring it's in good enough shape to be merged?

@mistydemeo

Copy link
Copy Markdown
Contributor

Sure, and that's very kind of you to offer!

I would also appreciate any context you can offer on what I'd need to do to validate this is working - for example, is there a straightforward of me to test this without a paid Azure account?

@mistydemeo mistydemeo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for including user documentation! Made this very easy to review. Just a few comments on the docs to make this a little more approachable, and consistent with the existing signing documentation.

I saw the comment that the signing has to run on x86_64 Windows - not even ARM64 Windows, huh? That's unfortunate, but I suppose it makes sense.

Thinking a little bit about handling this, it might be best to avoid overloading the global artifact job for this. If we have this one job that has to run on specific architectures, this may happen again in the future, and I'd like to avoid possible clashes in global runner if we can.

As an alternative, what if we introduced a new signing step that happens in between the global artifacts and hosting? We'd run it once per signing method being used, in between the global build artifacts and hosting; it would download the local and global artifacts, sign the ones that are necessary, and then reupload them with an updated manifest that defines the updated hashes.

Comment thread book/src/reference/config.md Resolved
Comment thread cargo-dist/src/sign/azure.rs Resolved
Comment thread cargo-dist/src/sign/mod.rs Resolved
@blyedev

blyedev commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor Author

@mistydemeo Thanks for the suggestion. I implemented a dedicated x86_64 Windows signing job between global artifact creation and hosting. Executables and MSIs remain signed during local Windows builds, while the global job stays on Linux and the new job signs the PowerShell installer before replacing the global artifact bundle. Hosting is gated on successful signing.

I verified the approach end-to-end with Azure:

The executable inside the Windows archive, MSI, and PowerShell installer all have the expected signatures. I included the same workflow path for SSL.com with test and production snapshot coverage, but could not verify it live because I do not have an SSL.com account.

@mistydemeo

Copy link
Copy Markdown
Contributor

I've run a build and it appears it worked! Thanks for the help on testing. Just to confirm, what's the best way to confirm that the assets were correctly signed? That's I think the only holdup, otherwise we're looking good.

could not verify it live because I do not have an SSL.com account.

As it happens neither do I... the account I had access to belonged to Axo, haha. If this does break anything someone who uses that feature will let me know and it can be fixed then.

@blyedev

blyedev commented Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

I've run a build and it appears it worked! Thanks for the help on testing. Just to confirm, what's the best way to confirm that the assets were correctly signed?

I used jsign v8.0.0. The v7.5 on brew does not have the verify signature capability. I also had some issues compiling it but gpt sol easily fixed it. Otherwise if you have a windows machine you should be able to do so via powershell's later versions.

That's I think the only holdup, otherwise we're looking good.

Amazing, I'll push the changes you suggested. Thank you for all your efforts!

@mistydemeo mistydemeo left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Gave this a test, and this looks good barring a couple minor issues:

  • The Windows target check is actually stricter than it needs to be and is rejecting a target that gets a valid signed binary.
  • cargo fmt needed

Comment thread cargo-dist/src/tasks.rs Resolved
Comment thread cargo-dist/src/tasks.rs Resolved
@mistydemeo
mistydemeo merged commit 21cdda5 into axodotdev:main Sep 4, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

support Azure Artifact Signing for binary signing

3 participants