Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
v0lkc opened this issue Jul 10, 2024 · 0 comments · Fixed by #3209
Closed
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@v0lkc
Copy link
Contributor

v0lkc commented Jul 10, 2024

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

@mrCherry97 mrCherry97 added the kind/bug Categorizes issue or PR as related to a bug. label Aug 19, 2024
@chriskari chriskari self-assigned this Aug 20, 2024
@chriskari chriskari linked a pull request Aug 20, 2024 that will close this issue
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants