busola icon indicating copy to clipboard operation
busola copied to clipboard

ClusterPreview shows only one `scope`, even if there are multiple configured in the kubeconfig

Open v0lkc opened this issue 7 months ago • 0 comments

Description

The review page of the cluster wizard only displays one oidc scope, even if multiple scopes are configured in the kubeconfig. The configuration may look like this:

users:
- name: xsuaa
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      args:
      - oidc-login
      - get-token
      - --oidc-use-access-token
      - --oidc-issuer-url=...
      - --oidc-client-id=...
      - --oidc-client-secret=...
      - --oidc-extra-scope=scope_a
      - --oidc-extra-scope=scope_b
      - --oidc-extra-scope=scope_c

It would only display scope_a

Expected result

scope_a, scope_b and scope_c should be displayed.

Actual result

Only scope_a is shown.

image

Steps to reproduce

Add a kubeconfig with multiple extra scopes as shown above and navigate to the review page.

Troubleshooting

v0lkc avatar Jul 10 '24 08:07 v0lkc