-
Bug
-
Resolution: Cannot Reproduce
-
Major
-
3.12.0.GA
-
False
-
None
-
False
-
-
Description of problem:
"Github Device Authentication" command inside Visual Code Web is failing on a disconnected environment with global proxy configuration. The extension generates a code and when submitted to GitHub - the extension logs this error inside DevSpaces:
2024-04-10 13:46:06.327 [error] GitHubAuthProvider: an error happened at session creation (get user step): Request failed with status code 502 2024-04-10 13:46:06.327 [error] An error has occurred at the Device Authentication flow: Request failed with status code 502
Appears to be caused by an error condition in:
- https://github.com/redhat-developer/devspaces-images/blob/devspaces-3.12-rhel-8/devspaces-code/code/extensions/che-github-authentication/src/github.ts#L92
- https://github.com/che-incubator/che-code/blob/main/code/extensions/che-api/src/impl/github-service-impl.ts#L61
As a consequence, Device Authentication fails.
In CheCluster/devspaces is already present the nonProxyHosts with KUBERNETES_SERVICE_HOST as described in: https://github.com/eclipse-che/che/issues/22768#issuecomment-1895553752
Also checked that the 172.30.0.1 corresponds to KUBERNETES_SERVICE_HOST with:
$ oc exec -n openshift-devspaces deploy/devspaces -- printenv KUBERNETES_SERVICE_HOST
spec:
components:
cheServer:
proxy:
nonProxyHosts:
- "172.30.0.1"
Prerequisites:
- DevSpaces v3.12 in a disconnected environment with a global proxy configuration in the OpenShift.
Actual results: It is not possible to process the GitHub Device Authentication
Expected results: GitHub Device Authentication proceeds without correctly
Reproducibility: Always
Acceptance criteria:
- relates to
-
CRW-6844 Device Authentication flow should respect GitHub Enterprise Server
- Open