openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

[Publishing] Require all data required to form a PURL

Open alvsan09 opened this issue 1 year ago • 1 comments

In order to facilitate the analysis of the source code associated to an Extension version, it's essential to have proper coordinates to the corresponding source code.

Today, the extension meta-data is polluted with some extensions listing invalid URLs, or URLs requiring credentials, see some examples at [2] below.

When the URL is valid, it is also not possible to find the corresponding release associated to the version.

Adopting a well known standard to associate a VSX version with well defined coordinates will make vetting of extensions feasible.

This issue, proposes to adopt the Package URL specification (see [1]).

This would make it possible to resolve VSX version's source code and therefore facilitating vetting and analysis of it.

References: [1] PURL spec [2] Example of invalid URLs for open-vsx published VSXs:

http://tmc-gitlab.trasre.com/liucan.li/vscode-dlt
llc.vscode-dlt

https://devops.codingcorp.net/p/cloud-studio-next/d/cloud-studio-extensions/git
cloudstudio
browser-preview-lite
cloudstudio
workspaces
cloudstudio
deploykit
cloudstudio
metawork
cloudstudio
memory-cue

https://dgit.cs.uni-saarland.de/modest/vscode-plugin
https://git.holllo.cc/Holllo/love
https://git.snoot.club/chee/cheekeyoil
https://gitlab.devstar.cloud/devstar-ide/devcode.git

alvsan09 avatar Jun 10 '24 17:06 alvsan09

This would make it possible to resolve VSX version's source code and therefore facilitating vetting and analysis of it.

What do you mean? The source code is in the package.

amvanbaren avatar Jun 12 '24 07:06 amvanbaren

After asking @ouuan's perspective on this issue I've come to the conclusion that this could lead to a false sense of security.
See 999 crates of Rust on the wall (comparing crates on crates.io against their upstream repositories) for more information.

amvanbaren avatar Jul 09 '24 10:07 amvanbaren