Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable extension validation in Positron #5787

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

jmcphers
Copy link
Collaborator

@jmcphers jmcphers commented Dec 17, 2024

This change causes Positron to skip extension validation. Extension validation isn't a new feature from upstream, but it is a feature that was formerly not very aggressive. In this change from upstream 1.94 (which we picked up with the 1.93 -> 1.95 upstream merge), VS Code started blocking installation when signature verification fails.

microsoft/vscode@2991008

This change also added a new option, extensions.verifySignature, which controls the new behavior. The fix is to effectively hide this option and never perform signature verification.

In early drafts of this change I considered just defaulting the setting to false, but it turns out that Positron is missing an essential binary needed to perform signature verification (@vscode/vsce-sign), so we cannot verify signatures. Verification is also restricted to Windows and macOS platforms, even in upstream VS Code.

This fix is a stopgap to get installation back online quickly. In the long term, we should consider investigating what work is needed to perform signature verification. While Positron does not bundle a copy of the vsce-sign tool, the tool is distributed on npm (note however that it is closed source and under a Microsoft license). https://www.npmjs.com/package/@vscode/vsce-sign

Addresses #5758.

QA Notes

Installing from local VSIX files as well as OpenVSX should work smoothly.

Copy link

github-actions bot commented Dec 17, 2024

E2E Tests 🚀  ?
This PR will run tests tagged with: @critical

Copy link
Collaborator

@petetronic petetronic left a comment

Choose a reason for hiding this comment

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

We'll need to start with this to unblock releases and then work on the items mentioned.

@jmcphers jmcphers merged commit afc264f into main Dec 17, 2024
7 checks passed
@jmcphers jmcphers deleted the bugfix/extension-validation-setting branch December 17, 2024 23:40
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants