Comments (6)
@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.
I close the issue but feel free to reopen it if you have additional questions.
from jwt-to-rbac.
I am really curious if you have ever had this issue. If so, then how have you solved it.
Regards
from jwt-to-rbac.
Maybe it is just what it says? That "po" does not exist? Did you try with "pod"?
from jwt-to-rbac.
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.
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)
- Security Policy violation Branch Protection HOT 3
- useless replace usage in go.mod
- Broken dependency chain HOT 2
- Support for add rules only for certain namespaces
- Hot reload config and update RBAC rules
- Build failed because github.com/belogik/goes package isn't found.
- Automate docker image build. HOT 3
- Move chart into the project
- Use github actions
- Example to deploy and configure Dex as OpenID connect provider
- Changing log level and applying it with helm does not take an effect HOT 1
- Verify JWT with any OIDC provider HOT 2
- Document required user claims HOT 1
- The response for HTTP POST /rbac/ HOT 1
- Add openapi v3 spec HOT 1
- Do not allow clients to set TTL for SA token HOT 2
- Validate id token on service account token request
- Hot reload of `customGroups` not working
- cant overwrite a clusterrolebinding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwt-to-rbac.