-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Unable to verify the first certificate when install vscode extension #23135
Comments
When trying to accss the plugin registry url ( https://che.stengg-devcheworkspaces.com/plugin-registry/v3), the browser redirect me to https://che.stengg-devcheworkspaces.com/v3/ and the page is not working. Is it expected behavior? |
That's a bug. I need to investigate |
Could you try in the terminal of a user workspace:
|
Dashboard doesn't use anymore pluginregistry to fetch editors definitions. |
@tolusha the cert you mentioned does not exist. Here is the log from my empty workspace
I found instead this cert
Not sure if this info relevant but I use the self signed cert for the che domain (https://eclipse.dev/che/docs/stable/administration-guide/configuring-che-with-self-signed-certificate/). So I the workspace should use this cert rather than some temp cert, right?
|
Yes, but for some reason the certificate is not propagated into workspace. HOST=che.stengg-devcheworkspaces.com
NAMESPACE=$(kubectl get checluster -A -o "jsonpath={.items[0].metadata.namespace}")
CERTS=$(openssl s_client -showcerts -connect $HOST:443 < /dev/null | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p')
kubectl create configmap custom-certificate --from-literal registry.crt="${CERTS}" -n $NAMESPACE
kubectl label configmap custom-certificate app.kubernetes.io/component=ca-bundle app.kubernetes.io/part-of=che.eclipse.org -n $NAMESPACE |
@tolusha I created the config map as you suggested in the eclipse-che namespace. I see that The certificate is then added to the configmap List of cm and secert use by workspace pod
che-trusted-ca-certs config map
custom-certificate config map
error message
|
Could you try in the terminal of a user workspace: curl --cacert /public-certs/custom-certificate.registry.crt https://che.stengg-devcheworkspaces.com |
@vitaliy-guliy |
@tolusha the problem fixed. It is because the root and intermediate certs is missing in the ca chain cert. Thank alot for your help |
Thank you for letting me know. |
@tolusha I tried 2 commands as below. I then checked again the ca chain cert and saw that the intermediate and root certificates are not included.
$ openssl s_client -connect che.stengg-devcheworkspaces.com:443 -showcerts
|
Describe the bug
After setup the che cluster to use the embedded Open VSX registry instance in the plugin-registry, I can see the list of available extensions. However, when trying to install them, I get the error
Che version
7.89
Steps to reproduce
avaible extenstions shows
click the install button to install any extension, then got the certificate error log
Expected behavior
Should be install successfully
Runtime
other (please specify in additional context)
Screenshots
Installation method
other (please specify in additional context)
Environment
Amazon
Eclipse Che Logs
Additional context
runtime: eks
installation method: helm (che-operator)
The text was updated successfully, but these errors were encountered: