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

Feature Request: Support for private marketplace/gallery #21839

Open
levonmamikonyan opened this issue Mar 2, 2017 · 142 comments
Open

Feature Request: Support for private marketplace/gallery #21839

levonmamikonyan opened this issue Mar 2, 2017 · 142 comments
Assignees
Labels
feature-request Request for new features or functionality marketplace Microsoft VS Code Marketplace issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Milestone

Comments

@levonmamikonyan
Copy link

We have created several VSIX extension that have no use to anybody else except our company. We would like to host our own private extension gallery and have an ability to specify alternative extension gallery paths (like "Additional Extension Galleries" in Visual Studio 2015).

  • VSCode Version: 1.10.1
  • OS Version: Windows 10
@chrisdias chrisdias assigned waderyan and unassigned chrisdias Mar 3, 2017
@seanmcbreen seanmcbreen added the feature-request Request for new features or functionality label Mar 7, 2017
@seanmcbreen
Copy link

Hi,

Currently we don't have a way to do this but it's not the first time we have heard this request so adding the correct label. We don't have this in our current backlog but this will help us keep track of it.

Thanks
Sean

@hilleer
Copy link

hilleer commented Jun 13, 2017

This is a feature that we would welcome very, very much as well, as it's kind of time consuming and annoying to have to build and forward the vsix file every time you make changes :-)

@hilleer
Copy link

hilleer commented Nov 16, 2017

Anyone got updates on this?

@ibigpapa
Copy link

ibigpapa commented Nov 28, 2017

So viewing the code don't think i'll have time anytime soon to submit pull request.

https://github.com/Microsoft/vscode/blob/67cd9258fd0ed429ddc626d488d48bd65c2f2283/build/lib/extensions.js#L48

https://github.com/Microsoft/vscode/blob/67cd9258fd0ed429ddc626d488d48bd65c2f2283/build/lib/extensions.js#L67

https://github.com/Microsoft/vscode/blob/67cd9258fd0ed429ddc626d488d48bd65c2f2283/build/lib/extensions.js#L75

These appear to be the main lines used for getting extensions from the market place. I guess you could replace the url with a call to the config to pull the URL and insert a local cached proxy so it would pull from the local proxy if package is there if not pull from marketplace. Then just provide the functions for the query and the upload that mimic the calls from vscode.

Cons to this would be https issues.

Ideally you would modify the Extensions: Market Place UI to provide a filter to a custom repository and market place filter. Something like Show Marketplace Only, Show {Custom name} Only, Show All.

Then modify the original code to query both places and merge the content. You'll probably want to add an indicator that would show what repository it is from. Maybe a dot with a color that indicates this. Something like blue for Marketplace and red for non market place with a tooltip that would spell out the repository name when moused over.

@Luraktinus
Copy link

any news there?

@hilleer
Copy link

hilleer commented Dec 27, 2017

@Luraktinus I haven't read any news regarding this, unfortunately.

@llgcode
Copy link

llgcode commented Jan 15, 2018

Also interested in having this feature.

@Luraktinus
Copy link

yeah, understandable

@gvanbeck
Copy link

+1

@bjoernbusch
Copy link

This would be really nice.

@notlaforge
Copy link

Is it possible to publish extensions on the marketplace and have them not appear in search?

I'm thinking for cases where the extension is not really secret, just not generally useful outside a company.

@sijakret
Copy link
Contributor

+1
i believe this is an important feature for all sorts of custom toolings

@Luraktinus
Copy link

i am fine with the ability to just copy/paste the addon in the extension folder....
the community could develop an own gallery already

@hilleer
Copy link

hilleer commented Mar 21, 2018

@Luraktinus so if you have a private extension that many employees are using, flow could be as following;

  1. Distribute it to employees.
  2. Employees all have to install it manually.

This, to me at least, includes a lot of time wasted, compared to just distributing it to something like the marketplace.

@Luraktinus
Copy link

@hilleer

I mean that the community could do a plug-in to replace the functionality of the gallery.

@levonmamikonyan
Copy link
Author

As a stop gap we've setup an in-house webserver and hosted all extensions there.
It also exposed an API endpoint to return latest number version for a given extension.
Then for every extension we had a timer to ping service every minute, check the version and compare with the one installed.
So if a new version was detected it would prompt to upgrade and then from the it was just a bunch of chained promises (show a prompt, on OK download an extension, show a prompt to restart, restart).
Then the last step was to automate a build pipeline, so every extension release was properly deployed to webserver (really package the extension and copy to appropriate folder).
The only drawback is that the extensions must be installed manually for the first time, from there on it's all automated.

@jan-dolejsi
Copy link

jan-dolejsi commented Mar 22, 2018 via email

@darkvertex
Copy link

Also interested in this. Would be super nice to have.

@itzik-h
Copy link

itzik-h commented Jun 10, 2018

@seanmcbreen would you consider external help for that one?

@roysudi
Copy link

roysudi commented Jun 27, 2018

+1

2 similar comments
@jkasun
Copy link

jkasun commented Jul 9, 2018

+1

@Ubeek
Copy link

Ubeek commented Aug 14, 2018

+1

@ajmas
Copy link

ajmas commented Apr 13, 2023

For someone who isn’t actively working on the project, can anyone who knows indicate whether the issue is technical or policy?

@prashantvc
Copy link
Contributor

Just published a preview of private repository here → https://github.com/prashantvc/extensions/releases/tag/v0.0.1
Give it a try, file an issue or send a PR :)

@timheuer
Copy link
Member

timheuer commented May 2, 2023

@prashantvc cool! This only solves a vsix host right and doesn’t have a means to attach to a marketplace client in vscode.

@prashantvc
Copy link
Contributor

@timheuer

@prashantvc cool! This only solves a vsix host right and doesn’t have a means to attach to a marketplace client in vscode.

Yes, that is right. VS Code does not allow anyone to extend marketplace client (ie. extension view) in VS Code, and not to mention marketplace APIs are hot mess to clone.

The workaround is to build a new view (client), like many other solutions in this issue.
You can switch to vscode-extension branch in extensions repo to try the one I have in works.

Here's a quick preview:
image

@GitMensch
Copy link
Contributor

VS Code does not allow anyone to extend marketplace client (ie. extension view) in VS Code

... which would not necessary if one could override the target endpoints - see #129764 from 2021 for a working solution (which you can use if you build vscode from scratch); or if vscode would allow to specifiy multiple/additional endpoints.

and not to mention marketplace APIs are hot mess to clone.

... there are several projects mentioned here that exactly do this, including osvx-registry (the software, not the public instance run by Eclipse).

For someone who isn’t actively working on the project, can anyone who knows indicate whether the issue is technical or policy?

That's more @isidorn to answer but @sandy081 closed the mentioned PR and similar issues because "the marketplace team has come up with a plan" two years ago, which they seem to have dropped. Maybe it is time to re-review the PR (if it is reopened I'd update it, of course)?

@jeanp413
Copy link
Contributor

jeanp413 commented May 2, 2023

@timheuer @prashantvc is/will https://github.com/prashantvc/extensions officially mantained by microsoft or it's just another free alternative like the ones already mentioned in this issue?

@prashantvc
Copy link
Contributor

@jeanp413 it’s one of my side projects that I am working. The project is not connected to Microsoft in anyway

@msweeney1999
Copy link

I too need this feature.

@Dongyang0810
Copy link

+1

@maxenium
Copy link

I strongly support the idea of implementing a private extensions store for Visual Studio Code. As a representative of many companies and organizations, we often find ourselves in a situation where we need to develop and use in-house extensions and tools, but sharing them on the public marketplace is simply not an option due to sensitive data and intellectual property concerns.

The current landscape has led to workarounds such as relying on third-party plugins or tools to create private extensions stores e.g. Private Extension Manager. However, these solutions often come with their own set of problems. Many of these third-party plugins are no longer actively maintained, and they tend to break with newer versions of VS Code and its dependencies. This makes managing private extensions within a corporate environment impossible without going the manual route of downloading vsix files.

One significant issue we've encountered is the configuration of proxy settings. Outdated extensions fail to recognize and adapt to the latest proxy configurations, which can lead to connectivity issues and security vulnerabilities. For instance, newer versions of VS Code do not work with the "Private Extensions Manager" and the 'no_proxy' settings are not being recognized, causing problems when working behind a proxy.

A dedicated private extensions store within VS Code would address these issues and provide a secure and reliable way for companies to make their proprietary extensions available to their employees. It would enhance the development workflow, streamline the distribution of internal tools, and ultimately improve productivity and collaboration within the organization.

I believe this feature would be a valuable addition to Visual Studio Code, benefiting both individual developers and enterprises alike.

I am wondering why this feature request gets so little attention from the development team. 😢

@Zane-XY
Copy link

Zane-XY commented Oct 24, 2023

Need this feature! Super important for enterprise users. May just reference what IntelliJ platform does.

@taturou
Copy link

taturou commented Oct 30, 2023

I would appreciate this feature.
I am creating private tools, and distributing updates is very tedious.

@omerd-cyera
Copy link

+1

@gjsjohnmurray
Copy link
Contributor

Se also #179919

@zentby
Copy link

zentby commented Dec 25, 2023

Try integrate this Auto Updater plugin into your extension.

With this extension, your extension can be hosted in your private website(e.g. behind a VPN).

@seaniyer
Copy link

seaniyer commented Jan 10, 2024

FYI @JacquelineWiddis

@GitMensch
Copy link
Contributor

Need this af

posting here obviously don't help... either you build vscode yourself, applying the related PR to run a private instance for example of openvsx (that PR was closed because "the marketplace team has come up with a plan" nearly 3 years ago - we all see how well and timely that worked out...), or use vscodium, which did accept a similar patch, or use something like https://marketplace.visualstudio.com/items?itemName=zokugun.vsix-manager which allows to install extensions from any workplace or locally (but needs manual setup of the extensions).

@omerd-cyera
Copy link

I ended up creating releases in github that have the vsix file, and created a component inside the extension that checks for updates periodically, and updates itself.

Not perfect, but its simpler than you think to implement, and it doesn't require extension consumers anything apart for installing the extension from vsix once.

@fone-almosca
Copy link

fone-almosca commented Feb 9, 2024

@omerd-cyera That's exactly what i'm trying to do for the past 2 days, but when I arrive to the point of uploading the .vsix file into release asset, i get the error:

"Resource not accessible by integration"

I'm pretty sure the token has the correct rights, as the upload works for every file except .vsix.
So I'm wondering, if you had the same issue, how did you solve it ?

@omerd-cyera
Copy link

@fone-almosca I think vsix is not supported in gh. Just zip or tar it.

@gaby
Copy link

gaby commented Mar 18, 2024

7 years later and this issue still open? @isidorn Any updates on this?

@haudan
Copy link

haudan commented May 15, 2024

@omerd-cyera

I ended up creating releases in github that have the vsix file, and created a component inside the extension that checks for updates periodically, and updates itself.

How did you accomplish the automatic updating? Do you just invoke the workbench.extensions.action.installVSIX command?

@omerd-cyera
Copy link

I have other tools installed on all relevant machines that are responsible for first install and updates. In my case it was easier to just trigger them via the cli.
I think that in most cases workbench.extensions.action.installVSIX is the way to go.

@jameswiseman76rlg
Copy link

In light of the following article, wouldn't you say that the need for this feature becomes more pressing?

https://www.bleepingcomputer.com/news/security/malicious-vscode-extensions-with-millions-of-installs-discovered/amp/

"Microsoft's lack of stringent controls and code reviewing mechanisms on the VSCode Marketplace allows threat actors to perform rampant abuse of the platform, with it getting worse as the platform is increasingly used."

I work for an org that hosts private NPM, NUGET and Visual Studio extension gallery where we curate the packages we host. It feels like a natural progression to allow this for VS code, especially with with integration through ADO Artefacts.

@GitMensch
Copy link
Contributor

GitMensch commented Jun 10, 2024

As already noted: you can use and curate your own extension marketplace by setting up a "local" entry point target, for example an OpenVSX instance and adjusting package.json to point to that.
In a corporate environment I guess you use a central installation of vscode so that's no big issue, You may drop the marketplace entry points completely as well.

For "local" or "project" scope you can add the curation to the .vscode folder since recently (which together with disabling the other entry points or moving them to a controlled instance).

@jameswiseman76rlg
Copy link

#84756 (comment)

image

@swythan
Copy link

swythan commented Sep 17, 2024

As already noted: you can use and curate your own extension marketplace by setting up a "local" entry point target, for example an OpenVSX instance and adjusting package.json to point to that.

I guess this was in response to the preceding comment. Just to be clear though, this wouldn't solve the problem in the OP (which I share): to have an internal marketplace in addition to the main public marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality marketplace Microsoft VS Code Marketplace issues upstream Issue identified as 'upstream' component related (exists outside of VS Code) upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.