Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-55987

Impersonate Group doesn't work

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • 4.19.0
    • 4.19
    • Management Console
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • Moderate
    • None
    • None
    • None
    • None
    • In Progress
    • Release Note Not Required
    • None
    • None
    • None
    • None
    • None

      This is a clone of issue OCPBUGS-54234. The following is the description of the original issue:

      Description of problem:

      Impersonating Group action doesn't work any more    

      Version-Release number of selected component (if applicable):

      4.19.0-0.nightly-2025-03-21-030708    

      How reproducible:

      Always    

      Steps to Reproduce:

      1. create a test group, a clusterrole and bind our test group with this clusterrole
      $ cat test-group.yaml
      apiVersion: user.openshift.io/v1
      kind: Group
      metadata:
        name: manager
      users:
        - test-user-1
        - test-user-2
      
      $ cat test-role.yaml
      apiVersion: rbac.authorization.k8s.io/v1
      kind: ClusterRole
      metadata:
        name: auto-metrics-reader
      rules:
        - apiGroups:
            - ''
          resources:
            - namespaces
          verbs:
            - get
            - list
            - watch
      $ cat test-rb.yaml
      kind: ClusterRoleBinding
      apiVersion: rbac.authorization.k8s.io/v1
      metadata:
        name: auto-metrics-rb
      subjects:
        - kind: Group
          apiGroup: rbac.authorization.k8s.io
          name: manager
      roleRef:
        apiGroup: rbac.authorization.k8s.io
        kind: ClusterRole
        name: auto-metrics-reader
      2. cluster admin user login to console and navigate to User Management -> Groups page
      3. click on 'Impersonate Group manager' action on Groups list
          

      Actual results:

      3. nothing happens and we observe errors in browser console
      
      Uncaught (in promise) TypeError: s is not a function    

      Expected results:

      3. no errors and impersonating group should happen    

      Additional info:

          

              rh-ee-jonjacks Jon Jackson
              openshift-crt-jira-prow OpenShift Prow Bot
              None
              None
              YaDan Pei YaDan Pei
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: