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"
      }
      

        1. generated_password_value_for_CRW_1.1.0.png
          5 kB
          Dmytro Nochevnov
        2. generated_password_value2_for_CRW_1.1.0.png
          5 kB
          Dmytro Nochevnov
        3. identity_providers_for_CRW_1.1.0.png
          94 kB
          Dmytro Nochevnov
        4. Screenshot from 2019-02-09 21-59-30.png
          103 kB
          Dmytro Nochevnov

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

                Created:
                Updated:
                Resolved: