Uploaded image for project: 'Red Hat Advanced Cluster Management'
  1. Red Hat Advanced Cluster Management
  2. ACM-29382

RBAC UI - Creation wizard - It is possible to create multiple MulticlusterRoleAssignment resources by clicking on Save button

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • ACM Console Train 36 - 2
    • Moderate
    • None

      Description of problem:

      It is actually possible to create multiple MulticlusterRoleAssignment resources by clicking on Save button while saving

      Video_2026-02-03_09-53-54.mp4

      producing resources like

      apiVersion: v1
      items:
      - apiVersion: rbac.open-cluster-management.io/v1beta1
      kind: MulticlusterRoleAssignment
      metadata:
      creationTimestamp: "2026-02-03T08:58:30Z"
      finalizers:
      - finalizer.rbac.open-cluster-management.io/multiclusterroleassignment
      generation: 2
      labels:
      open-cluster-management.io/managed-by: console
      name: role-assignment-1770109110749-2kbucb2w7
      namespace: open-cluster-management-global-set
      resourceVersion: "19535182"
      uid: bd7c2f31-a298-4d86-a198-1e956b18959c
      spec:
      roleAssignments:
      - clusterRole: acm-vm-cluster-migration:view
      clusterSelection:
      placements:
      - name: global
      namespace: open-cluster-management-global-set
      type: placements
      name: 48ed1f936e53c3f8
      subject:
      kind: User
      name: emingora
      status:
      ...
      - apiVersion: rbac.open-cluster-management.io/v1beta1
      kind: MulticlusterRoleAssignment
      metadata:
      creationTimestamp: "2026-02-03T08:58:31Z"
      finalizers:
      - finalizer.rbac.open-cluster-management.io/multiclusterroleassignment
      generation: 2
      labels:
      open-cluster-management.io/managed-by: console
      name: role-assignment-1770109110933-i09hjrk9n
      namespace: open-cluster-management-global-set
      resourceVersion: "19535169"
      uid: 408d8664-cb70-4c17-89ac-8d49d122d489
      spec:
      roleAssignments:
      - clusterRole: acm-vm-cluster-migration:view
      clusterSelection:
      placements:
      - name: global
      namespace: open-cluster-management-global-set
      type: placements
      name: 48ed1f936e53c3f8
      subject:
      kind: User
      name: emingora
      status:
      ...
      kind: List
      metadata:
      resourceVersion: ""
      

      containing duplicated RoleAssignments on multiple resources. Maybe additional enhancement for the existing CR's webhook on the backend side should be added for avoiding this case

      How reproducible: 

      1. open RA wizard modal
      2. proceed until the end
      3. click on save button as many times and as fast as you can 

      Actual results:

      multiple MulticlusterRoleAssignment resources are created

      Expected results:

      to disable save button as soon as it is clicked

        1. Video_2026-02-03_09-53-54.mp4
          4.07 MB
          Enrique Mingorance Cano

              emingora Enrique Mingorance Cano
              emingora Enrique Mingorance Cano
              David Huynh David Huynh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: