-
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
Failure to clone zip projects when using OpenShift trusted CA bundle #18654
Comments
A workaround is to pre-create a secret in the workspace namespace so that Che will inject file apiVersion: v1
kind: Secret
metadata:
name: file-to-inject
annotations:
"che.eclipse.org/automount-workspace-secret": "true"
"che.eclipse.org/mount-path": "/tmp/che/secret"
"che.eclipse.org/mount-as": file
labels:
app.kubernetes.io/part-of: che.eclipse.org
app.kubernetes.io/component: workspace-secret
data:
ca.crt: "bWlubmllCg==" |
and then add |
Related to the Welcome Plug-in, so triaged as |
Probably it's not |
Here's the example of how it was done for Task Plug-in: |
Eventually, we need to have a common way to deal with certificates across all our plugins. |
The bug is reproducible. |
Describe the bug
Theia uses
curl
to download projects zip files. When a zip file is hosted on a server that uses a TLS cert signed by an untrusted CAcurl
fails to download the file. That's normal.But if Che is running on OpenShift and the CA certificate is added into OpenShift CA trusted bundle (as described here)
curl
should not fail anymore. The certificates are correctly mounted in the container wherecurl
runs (theia container) butcurl
doesn't take them into account.This is the error:
Che version
nightly
Steps to reproduce
N/A
Expected behavior
Currently Theia looks for an hardcoded crt file (
/tmp/che/secret/ca.crt
) and if it founds runs curl with the unsecure option-k
. The problem is thatcrt
files are currently mounted in folder/public-certs
and we should avoid usingcurl
option-k
anyway.Runtime
OpenShift
Installation method
OperatorHub
Environment
Cloud
The text was updated successfully, but these errors were encountered: