-
Notifications
You must be signed in to change notification settings - Fork 28
Can install one extension from marketplace but not others #57
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
Comments
The vim extension is a "web" extension (it downloads to and runs directly in the browser) while regular extensions download to the remote end. But as to why a download would work from the client machine and fail with Maybe we have a bug with |
Oh wait the |
Ah yup unfortunately the path is generated like this by VS Code, I will push up a fix for this in a moment. |
v2.2.1 is live with the vspackage fix. |
Thank you for the quick response @code-asher ! I can't install from the
Note that of course (as the network flows between the remote machine / code-marketplace are opened and all same cluster), using just the local cluster service url of Again thank you for your help. |
Thank you for confirming the download link is fixed! Hmm yeah that is strange. I have never configured Istio before so unfortunately I am not really sure what could be going wrong. |
Ok that's all good thank you for your help thus far! We opened the issue just in case there was some obvious misconfiguration / misunderstanding on our part |
Completely understandable! I will close the issue since I think there is nothing to resolve in code-marketplace, since the http calls work. If you happen to have a way to reproduce locally (maybe with minikube or something, I have not really messed much with Kubernetes though) I would be happy to at least try poking into it, maybe a set of fresh eyes will reveal something. |
You might also want to check with the Istio folks! |
Thanks @code-asher we did submit a discussion post to Istio. One final possibly whacky question is that is there a way to configure code-server to allow insecure non tls connections to code-marketplace? (since our environment is locked down) We are able to |
I believe it is controlled by content security policy meta tags (I wish it used headers, would make this easier), so you would have to edit or delete those tags, either by munging the HTML response in a proxy or by actually editing code-server source (could build code-server with the changes or edit the built files). I think |
Wait actually they are headers, I could have sworn they were meta tags at some point. You might just be able to override the |
Hello!
We're trying to leverage code-marketplace so that users can install vetted extensions in our locked down environment but are running into an issue when testing installing extensions from the deployed code-marketplace pod. As the title states, we are oddly able to install vim but nothing else
Setup
Code-Marketplace
Deployed code-marketplace in our internal k8s cluster using the helm chart.
For the ingress and TLS, our cluster uses Istio to handle that and as such is secured by mTLS, so in the deployed chart there is no
tls
block in theIngress
CRD.Additionally, to minimize variables we have added the extensions to code-marketplace using by modifying the
code-marketplace
dockerfile toCode-server leveraging code-marketplace
We have code-server v4.17.0 running in a jupyter notebook and have the environment variable of
EXTENSIONS_GALLERY
set to that https ingress host.Network Policies + PeerAuthentication
Just for testing, I have tried adding blanket allow-all ingress and egress network policies on all the related namespaces; which would be the namespaces that have the code-server deployment, the code-marketplace service, as well as our namespace that has the
Istio gateways
as that's how the request is routed when we use the Ingress.We have also added
PeerAuthentication
to the code-marketplace to allow the mTLS traffic.Behaviour
Similar to #39, we are able to view the extensions that exist on our code-marketplace deployment, and see the extension's URL

And weirdly enough, we are able to install the vim extension, but only vim
The output log gives
Whereas attempting to install anything else gives
and the "attempt to download manually" page of
https://....ca/api/publishers/ms-toolsai/vsextensions/jupyter/2024.4.0/vspackage
leads to a404 Not Found
(vim also leads to 404 if url is changed)When I exec into the
code-marketplace
pod I can see all the extensions under/extensions
.Any insight would be greatly appreciated!
The text was updated successfully, but these errors were encountered: