-
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
Failed to download project zip file from the external devfile registry because of x509: certificate signed by unknown authority
error
#22393
Comments
Probably related to the fact the downloading zip does not take care of certificates. |
For the record we also commented that this could be related to #22370 (if the openshift cluster has cluster wide proxy configured then the download may still fail). |
x509: certificate signed by unknown authority
errorx509: certificate signed by unknown authority
error
I spent a bit of time looking into this: the project-clone container only uses certificates from the system pool by default, and Che mounts additional certificates to We can add additional certificates to the pool, but none of the options I see are ideal:
These options would all require Che-side changes as well, so I'm not sure the best way to proceed. Our main problem here is that there's no defined way to specify additional certs for project-clone, and certificate mount paths aren't consistent enough to have a one-size-fits-all solution. Since project-clone is a go-based project, it will automatically check the following directories: var certDirectories = []string{
"/etc/ssl/certs", // SLES10/SLES11, https://golang.org/issue/12139
"/etc/pki/tls/certs", // Fedora/RHEL
"/system/etc/security/cacerts", // Android
} (ref: https://go.dev/src/crypto/x509/root_linux.go)
|
PR devfile/devworkspace-operator#1161 configures project-clone to read any certs in To test the PR changes, edit the DWO CSV to change the |
Closing this issue as completed as devfile/devworkspace-operator#1161 has been resolved. Feel free to reopen issue if something has been missed. |
Describe the bug
Failed to clone a project from the external devfile registry because of
x509: certificate signed by unknown authority
errordChe version
next (development version)
Steps to reproduce
chectl server:deploy -p openshift --olm-channel next
oc create namespace external-devfile-registry
Configure Che
oc patch checluster/eclipse-che --patch '{"spec": {"components": {"devfileRegistry": {"disableInternalRegistry": true, "externalDevfileRegistries": [{"url": "'${DEVFILE_REGISTRY_URL}'"}]}}}}' --type=merge -n eclipse-che
Start a python workspace
Observe error in a project-clone container
Expected behavior
Project is successfully cloned and workspace is stated
Runtime
OpenShift
Screenshots
No response
Installation method
chectl/next
Environment
Linux
Eclipse Che Logs
The text was updated successfully, but these errors were encountered: