Coder Social home page Coder Social logo

Comments (6)

yesteph avatar yesteph commented on August 27, 2024 3

Vault should pass the token to create TokenReview to the kubernetes Host without check the format or validity of the token.
It is the responsibility of the Kubernetes Host (and so potentially Rancher, OpenShift, other proxy for federation, ...), not Vault.

from vault-plugin-auth-kubernetes.

avoidik avatar avoidik commented on August 27, 2024 1

rancher authentication token is a base64 encoded string and being used for basic authentication, so no JWT token validation required at all to get access to k8s API behind it (yes, RBAC is disabled)

encoded token distributed as a part of kubectl config file

default

this is how rancher request looks like

token = base64encode('Basic ' + base64encode('<access key>:<secret key>'))
curl -H "Authorization: Bearer $token" https://<rancher_url>/r/projects/<id>/kubernetes:6443

for example it is possible to add one more flag to options (like use_basic_auth) and if this flag is set to true ignore everything related to JWT token validation, submit POST with that simplified token instead of JWT token to rancher url

from vault-plugin-auth-kubernetes.

avoidik avatar avoidik commented on August 27, 2024

#20

from vault-plugin-auth-kubernetes.

jefferai avatar jefferai commented on August 27, 2024

If Rancher has a totally different access mechanism it feels like it requires a different plugin. Over time this plugin is going to become more Kubernetes specific, not less.

from vault-plugin-auth-kubernetes.

avoidik avatar avoidik commented on August 27, 2024

xref. rancher/rancher#30420

from vault-plugin-auth-kubernetes.

avoidik avatar avoidik commented on August 27, 2024

xref. rancher/rancher#7504

from vault-plugin-auth-kubernetes.

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.