Git Product home page Git Product logo

Comments (5)

weinong avatar weinong commented on August 30, 2024 1

As much as I like the proposal, kubelogin is just a recipient of the AAD token and there is no way we can modify that. There are other projects such as https://github.com/kubeguard/guard that can address this limitation. If you need help in that regard, let me know. Otherwise, closing this issue for now

from kubelogin.

wiceywkus avatar wiceywkus commented on August 30, 2024

kubelogin cannot modify the JWT. The tokens are digitally signed by Azure. Changing it will break the checksum and the validation.

from kubelogin.

saiharshitach avatar saiharshitach commented on August 30, 2024

@weinong is there any other solution which can decode the token which has more than 200 groups.. We are using kube-oidc-proxy plugin on EKS which seems to be now maintained by Tremolo..They think this has to be done at kubelogin level and we also donot want to change too many configs in our existing clusters(huge footprint)looks like many of the users are hitting similar issue. Is there a solution where we can fix this from azure side in any way?

from kubelogin.

wiceywkus avatar wiceywkus commented on August 30, 2024

Groups > 200. It's an Azure issue. But limiting the number of groups to 200 in an Access Token or an ID Token actually seems rather reasonable. (to me anyway, where I suffer from the same issue)
You would have to change the EKS OIDC Provider configuration, but you could do something where you configure 'roles' for your AzureAD (or similar) App Registration and have it add 'roles' as a claim to the tokens. Then have the EKS Identity Provider use 'roles' rather than 'groups' as the "Groups" claim.
You could do something similar with any custom claim.

from kubelogin.

weinong avatar weinong commented on August 30, 2024

I'd recommend configuring app roles and configure k8s to use roles claim instead of using groups.

from kubelogin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.