Uploaded image for project: 'Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces) '
  1. Red Hat OpenShift Dev Spaces (formerly CodeReady Workspaces)
  2. CRW-2873

curl/git does not seem to use certs in /public-certs

XMLWordPrintable

    • False
    • None
    • False
    • Hide
      add as a KI for.31 if this becomes necessary
      (If the problem persists in 3.0, we can re-visit making a KI.)
      Show
      add as a KI for.31 if this becomes necessary (If the problem persists in 3.0, we can re-visit making a KI.)
    • Not Required
      • Set up a GitLab private project (TLS protected)
      • Attempt to access it from a Workspace

      Working to provide a workspace for the following conditions:

      • 'private' repo on GitLab
      • source is on a branch (not main)

       

      When starting the workspace, the user is prompted 'Do you trust the authors of (GitLab repo)?'  Response is 'Yes'.  A brief message flashes (too quickly to read), then the workspace opens, but no Project is associated (no source code).

      Examining the Theia log shows messages like this:
      -----------------------
      Promise rejection not handled in one second: Error: Error: Cloning into '/projects/nodejs-web-app2'...
      996fatal: unable to access 'https://gitlab.cee.redhat.com/rwagner/node_sample_private/': SSL certificate problem: unable to get local issuer certificate
      997, reason: Error: Error: Cloning into '/projects/nodejs-web-app2'...
      998fatal: unable to access 'https://gitlab.cee.redhat.com/rwagner/node_sample_private/': SSL certificate problem: unable to get local issuer certificate
      999
      1000With stack trace: Error: Error: Cloning into '/projects/nodejs-web-app2'...
      1001fatal: unable to access 'https://gitlab.cee.redhat.com/rwagner/node_sample_private/': SSL certificate problem: unable to get local issuer certificate
      1002
      1003at TheiaGitCloneCommand.gitClone (/tmp/theia-unpacked/eclipse_che_workspace_plugin.theia/lib/theia-commands.js:198:19)
      1004at processTicksAndRejections (internal/process/task_queues.js:97:5)
      ----------------------

      Examining the /public-certs mount on the Theia container shows the expected certificates are in place (and appear valid when examined):
      --------------------
      bash-4.4$ pwd
      /public-certs
      bash-4.4$ ls
      ca-bundle.crt custom-certs.RH_CertAuth.pem custom-certs.RH_IT_Rootcert.pem custom-certs.RH_Intermediate.pem

            azatsary Artem Zatsarynnyi
            rhn-support-rick Rick Wagner
            Max Leonov Max Leonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: