You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to install an extension from OpenVSX, a signature validation error occurs.
Steps to reproduce the issue:
Go to the Extensions panel
Search for an extension, e.g. Posit Publisher
Click the Install button
Expected or desired behavior:
Extension installs successfully.
Were there any error messages in the UI, Output panel, or Developer Tools console?
This looks related:
2024-12-16 10:12:38.400 [error] SignatureVerificationInternal: Signature verification was not executed.
at ExtensionManagementService2.downloadExtension (file:///Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:25465:15)
at async ExtensionManagementService2.downloadAndExtractGalleryExtension (file:///Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:25412:46)
2024-12-16 10:12:38.694 [error] Signature verification was not executed.: SignatureVerificationInternal: Signature verification was not executed.
at ExtensionManagementService2.downloadExtension (file:///Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:25465:15)
at async ExtensionManagementService2.downloadAndExtractGalleryExtension (file:///Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js:25412:46)
...
2024-12-16 10:17:14.168 [error] Cannot find package 'yauzl' imported from /Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js: Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'yauzl' imported from /Users/jmcphers/git/VSCode-darwin-arm64/Positron.app/Contents/Resources/app/out/vs/code/electron-utility/sharedProcess/sharedProcessMain.js
at packageResolve (node:internal/modules/esm/resolve:861:9)
at moduleResolve (node:internal/modules/esm/resolve:934:18)
at defaultResolve (node:internal/modules/esm/resolve:1176:11)
at nextResolve (node:internal/modules/esm/hooks:868:28)
at resolve (data:text/javascript;base64,CglleHBvcnQgYXN5bmMgZnVuY3Rpb24gcmVzb2x2ZShzcGVjaWZpZXIsIGNvbnRleHQsIG5leHRSZXNvbHZlKSB7CgkJaWYgKHNwZWNpZmllciA9PT0gJ2ZzJykgewoJCQlyZXR1cm4gewoJCQkJZm9ybWF0OiAnYnVpbHRpbicsCgkJCQlzaG9ydENpcmN1aXQ6IHRydWUsCgkJCQl1cmw6ICdub2RlOm9yaWdpbmFsLWZzJwoJCQl9OwoJCX0KCgkJLy8gRGVmZXIgdG8gdGhlIG5leHQgaG9vayBpbiB0aGUgY2hhaW4sIHdoaWNoIHdvdWxkIGJlIHRoZQoJCS8vIE5vZGUuanMgZGVmYXVsdCByZXNvbHZlIGlmIHRoaXMgaXMgdGhlIGxhc3QgdXNlci1zcGVjaWZpZWQgbG9hZGVyLgoJCXJldHVybiBuZXh0UmVzb2x2ZShzcGVjaWZpZXIsIGNvbnRleHQpOwoJfQ==:13:10)
at nextResolve (node:internal/modules/esm/hooks:868:28)
at Hooks.resolve (node:internal/modules/esm/hooks:306:30)
at MessagePort.handleMessage (node:internal/modules/esm/worker:196:24)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
The text was updated successfully, but these errors were encountered:
I think this may have to do with this commit from upstream. This landed in 1.94 (which was included in our upgrade from 1.93 -> 1.95) and blocked installation of VSIX files that could not validated.
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.
System details:
Positron and OS details:
Interpreter details:
N/A
Describe the issue:
When attempting to install an extension from OpenVSX, a signature validation error occurs.
Steps to reproduce the issue:
Expected or desired behavior:
Extension installs successfully.
Were there any error messages in the UI, Output panel, or Developer Tools console?
This looks related:
...
The text was updated successfully, but these errors were encountered: