XMLWordPrintable

    • 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:

      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:

       

            abazko Anatolii Bazko
            rhn-support-rludva Radomir Ludva
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: