Repository navigation
Add Azure signing support and improve workflow for releases - #2396
Conversation
|
Thank you! I'm a little busy but I'll try to get to reviewing this soon. |
|
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. |
|
We would love to use this for Turso packaging too. Right now we're working around this with hack in |
|
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? |
|
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
left a comment
There was a problem hiding this comment.
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.
|
@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. |
|
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.
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. |
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.
Amazing, I'll push the changes you suggested. Thank you for all your efforts! |
Co-authored-by: Misty De Méo <[email protected]>
closes #2395