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

After cascade removal, the first time approval is not shown to the removed user after login using openshift

XMLWordPrintable

    • False
    • None
    • False
    • Not Required
    • Hide
      • Have a cluster with two users, both logged in at least once
      • Set one of them as superadmin per documentation
      • Execute GDPR removal
        oc patch checluster devspaces --type merge -p '{ "spec": { "server": {"customCheProperties": {"CHE_SYSTEM_SUPER__PRIVILEGED__MODE": "true"} } }}' -n openshift-devspaces
        oc patch checluster devspaces --type merge -p '{ "spec": { "server": {"customCheProperties": {"CHE_SYSTEM_ADMIN__NAME": "admin"} } }}' -n openshift-devspaces
        oc patch checluster devspaces --patch "{\"spec\":{\"server\":{\"customCheProperties\": {\"CHE_KEYCLOAK_CASCADE__USER__REMOVAL__ENABLED\": \"true\"}}}}" --type=merge -n openshift-devspaces
        curl -ki -X GET --cookie '_oauth_proxy=<cookie>' 'https://devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user'
        curl -ki -X GET --cookie '_oauth_proxy=<cookie>' 'https://devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user/find?name=user'
        curl -ki -X DELETE --cookie '_oauth_proxy=<cookie>' 'https://devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user/78821e99-9da7-479b-ac82-29d19ba6e53d'
        
      Show
      Have a cluster with two users, both logged in at least once Set one of them as superadmin per documentation Execute GDPR removal oc patch checluster devspaces --type merge -p '{ "spec" : { "server" : { "customCheProperties" : { "CHE_SYSTEM_SUPER__PRIVILEGED__MODE" : " true " } } }}' -n openshift-devspaces oc patch checluster devspaces --type merge -p '{ "spec" : { "server" : { "customCheProperties" : { "CHE_SYSTEM_ADMIN__NAME" : "admin" } } }}' -n openshift-devspaces oc patch checluster devspaces --patch "{\" spec\ ":{\" server\ ":{\" customCheProperties\ ": {\" CHE_KEYCLOAK_CASCADE__USER__REMOVAL__ENABLED\ ": \" true \ "}}}}" --type=merge -n openshift-devspaces curl -ki -X GET --cookie '_oauth_proxy=<cookie>' 'https: //devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user' curl -ki -X GET --cookie '_oauth_proxy=<cookie>' 'https: //devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user/find?name=user' curl -ki -X DELETE --cookie '_oauth_proxy=<cookie>' 'https: //devspaces-openshift-devspaces.apps.ocp410-bmakam.crw-qe.com/api/user/78821e99-9da7-479b-ac82-29d19ba6e53d'

      User is correctly removed from the postgres after the cascade removal.

      The first time agreement is not shown to the same user after they log in using the openshift auth and their user is re-created in postgres.

              ibuziuk@redhat.com Ilya Buziuk
              tdancs Tibor Dancs (Inactive)
              Max Leonov Max Leonov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: