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

Operator installer generates the same sequence of random names and passwords

XMLWordPrintable

      During the several installations from different hardware operator installer has generated the same sequence of values which ought to be different in different installations:

      • oAuth client name: `openshift-identity-provider-h2fh`
      • CHE_JDBC_PASSWORD: `FuvUs9....`

      That values are generated by var.go.

      It uses "rand.Intn(len(chars))", which generates the same sequence of values for certain length.

      As a side effect, constant oAuth client name makes it's impossible to install several CRW application with OpenShift oAuth support at the same cluster:

      {
         error: "invalid_request",
         error_description: "The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise 
         malformed.",
      state: "i5u1LM4RezvUTCvAVlm5HJTNiEUQ3Nnbkzsi35gtF2c.FoN1yrb-vNc.codeready-public"
      }
      

              Unassigned Unassigned
              dnochevn Dmytro Nochevnov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: