-
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
Theia cannot reach the API server with both TLS and proxy enabled #16356
Comments
One possible way to fix it might be to use the solution proposed here: axios/axios#925 (comment) in the |
@dmytro-ndp @RickJWagner seemed to think it should be considered as a blocker for CRW 2.1 |
I tend to agree... Running without tls or without proxy is imo no-go for lot of production environments. |
I assigned it me since I'm currently investigating it in the context of the restricted environment tests (required to continue the tests until the end), and @ivinokur (who knows this codebase) kindly proposed his help to implement a potential fix in a temporary 7.9.x-based che-teia docker image (already available). So as soon as I've tested this image and confirmed it can fix the issue, I assume we would propose a PR for the controller team to review, in order to possibly finally update the generated NPM package in the |
@davidfestal Did my fix helped? I can open a PR based on that fix. Would it be useful? |
I tested the docker image provided by @vinokurig based on this proposed fix: axios/axios#925 (comment) But it doesn't seem to fix the problem. |
After a bunch of tests done with the The good news of this is that Axios is configurable / customizable enough, so that, when a https request needs a http proxy, we should be able to override the request config to change the I already tested the I'll further propose a PR to include this into the existing |
The possible fix mentioned in previous comment has been implemented and tested with the help of @ivinokur and it seems to correctly fix the bug on a disconnected environment cluster with a proxy. Only remaining problem is the loading of the project zip through the proxy by wget . That a completely different problem though. |
Main bug will be fixed by PR eclipse-che/che-workspace-client#28 as soon as the built MPN package is updated in |
Hi, I have started che 7.17.0 and I have the same matter when deploy it with tls and use enterprise proxy. How I can mitigate this ? Best Regards |
Describe the bug
When both TLS and http proxy are enabled, it seems that Theia cannot reach the Che server API endpoint by its external URL.
This becomes critical now that TLS is enabled by default to have webviews working.
This might be related to this Axios bug: axios/axios#925 (comment)
Che version
Steps to reproduce
Expected behavior
http proxy configuration should work even when TLS is enabled (which is the default case now)
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Installation method
Environment
Eclipse Che Logs
Additional context
This might be critical for CRW 2.1 and possibly to include into the 7.9.2 release
The text was updated successfully, but these errors were encountered: