GithubHelp home page GithubHelp logo

Comments (6)

j-zimnowoda avatar j-zimnowoda commented on June 11, 2024 1

@pbalogh-sa thanks for your answer.
I did not decode the secret with base64 --decode and that was the issue.
The jet-to-rbac works out of the box - great! It's a very promising solution for having cloud native oidc login to the closter.

Btw, I am going to integrate jwt-to-rbac with the containers platform that I and other folks are working on.
Take a look, there is a lot of valuable and interesting stuff: https://github.com/redkubes/otomi-core

from jwt-to-rbac.

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024 1

I close the issue but feel free to reopen it if you have additional questions.

from jwt-to-rbac.

j-zimnowoda avatar j-zimnowoda commented on June 11, 2024

I am really curious if you have ever had this issue. If so, then how have you solved it.
Regards

from jwt-to-rbac.

Morriz avatar Morriz commented on June 11, 2024

Maybe it is just what it says? That "po" does not exist? Did you try with "pod"?

from jwt-to-rbac.

j-zimnowoda avatar j-zimnowoda commented on June 11, 2024

Maybe it is just what it says? That "po" does not exist? Did you try with "pod"?

yes, I did. Same error.

from jwt-to-rbac.

pbalogh-sa avatar pbalogh-sa commented on June 11, 2024

Hi @j-zimnowoda , I can authenticate with SA token to my EKS cluster.

kubectl --token $TOKEN --server  https://xxxxxx.us-west-2.eks.amazonaws.com --certificate-authority ~/test.crt get pod -n kube-system
NAME                       READY   STATUS    RESTARTS   AGE
aws-node-96g2r             1/1     Running   0          65m
aws-node-dv79l             1/1     Running   0          66m
aws-node-m7hv4             1/1     Running   0          66m
coredns-5946c5d67c-tjbwl   1/1     Running   0          71m
coredns-5946c5d67c-tkdnb   1/1     Running   0          71m
kube-proxy-46sxk           1/1     Running   0          65m
kube-proxy-h5ndg           1/1     Running   0          66m
kube-proxy-jjhht           1/1     Running   0          66m

I got the token by the following command

kubectl get secret test-token-secret -o jsonpath='{.data.token}' |base64 --decode

I didn't annotate the test serviceaccount.

I guess the iam-authenticator shows the error you mentioned:

error: You must be logged in to the server (Unauthorized)

Maybe the aws-iam-authenticator was triggered somehow.

from jwt-to-rbac.

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.