Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add binary signature verification#558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
code-asher merged 9 commits intomainfromasher/binary-verification
Jul 29, 2025
Merged

Conversation

code-asher
Copy link
Member

@code-ashercode-asher commentedJul 23, 2025
edited
Loading

I extracted the download function (since I needed to reuse it to download signatures) to a separate commit so it is easier to review the signature additions separately, if that is of interest.

This downloads the detached signature from Coder if available or releases.coder.com if not, then verifies the binary using that detached signature and the bundled public key. The check is performed only when the binary is first download.

  • Add option to disable
  • Skip headers when requesting releases.coder.com
  • Tests (for signing, no tests for the UI changes, ideally we get something set up to do that at some point, although we could mock the VS Code APIs in the meantime...)

@code-ashercode-asherforce-pushed theasher/binary-verification branch 2 times, most recently from753e955 to3e18934CompareJuly 23, 2025 20:45
The main thing here is to pass in an Axios client instead of the SDKclient since this does not need to make API calls and we will need topass a separate client without headers when downloading externalsignatures.Otherwise the structure remains the same.  Some variables are renameddue to being in a new context and some strings messages are simplified.
A tiny refactor since I will need to get a third config option.
@code-ashercode-asherforce-pushed theasher/binary-verification branch 2 times, most recently from33b14b9 to18c3c88CompareJuly 23, 2025 21:59
@code-ashercode-asherforce-pushed theasher/binary-verification branch from18c3c88 to860b1aaCompareJuly 23, 2025 22:11
@code-ashercode-asher requested a review fromaslilacJuly 23, 2025 22:15
They are not needed, and the packaging step will error that it lookslike you are trying to package secrets due to the test key fixtures.
Copy link
Member

@aslilacaslilac left a comment

Choose a reason for hiding this comment

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

I'm gonna need you to sign a waiver indicating that you know I'm not a cryptography expert and will not be held responsible for any glaring security issues before you merge this 😝 but it looks good!

code-asher and fioan89 reacted with laugh emoji
@code-asher
Copy link
MemberAuthor

cc@jdomeracki-coder in case you want to take a look, should be similar to the JetBrains plugin but I went with the original flow instead of the checkbox during login since we can have prompts with multiple buttons here.

jdomeracki-coder reacted with thumbs up emoji

Copy link

@jdomeracki-coderjdomeracki-coder left a comment

Choose a reason for hiding this comment

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

Approved

@code-ashercode-asher merged commit5054994 intomainJul 29, 2025
2 checks passed
@code-ashercode-asher deleted the asher/binary-verification branchJuly 29, 2025 22:03
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aslilacaslilacaslilac approved these changes

@jdomeracki-coderjdomeracki-coderjdomeracki-coder approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@code-asher@aslilac@jdomeracki-coder

[8]ページ先頭

©2009-2025 Movatter.jp