Skip to content

Feature: Include groups extra-scope to kubeconfig of ManagedControlPlanes #97

@GenosseOtt

Description

@GenosseOtt

Feature Request for

openMCP provisioned ManagedControlPlanes

Understand the problem

When using Group subject in authorization section, e.g.

authorization:
    roleBindings:
      - role: admin
        subjects:
          - kind: Group
            name: dwc:mcp-access

it will require the scope groups also included in the authroization request to the identity provider. However the kubeconfig generated on the crate cluster looks like this

users:
- name: dwc
  user:
    exec:
      apiVersion: client.authentication.k8s.io/v1beta1
      args:
      - oidc-login
      - get-token
      - --oidc-issuer-url=<some value>
      - --oidc-client-id=<some value>
      - --oidc-use-pkce
      - --grant-type=auto
      - --oidc-extra-scope=offline_access
      - --oidc-extra-scope=email
      - --oidc-extra-scope=profile
      command: kubectl
      env: null
      provideClusterInfo: false

and it will only work if editing the kubeconfig and manually adding - --oidc-extra-scope=groups

Technical Steps

  • To be proposed by Engineer

Context

Using any IDP and groups for authentication to the MCP

Proposal Acceptance Criteria

  • Kubeconfig should work out of the box for configuration chosen in the MCP CR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions