-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bearer token not working #8795
Comments
/kind support |
Can you check if |
You are correct it doesn't.
|
I don't know what but something on your side must be dropping headers from the request. Another option is that token size somehow exceeds 4kB and is too big, but this should not be the case when using SA token. |
That's either a configuration issue or a duplicate of #8794 /close |
@floreks: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
For anyone else running into issues with the bearer token... The UI is not sending the bearer token to the /me endpoint, if you have your ingresses configured in such a way that you are trying to access it via http instead of https. The UI just silently doesn't send the token, and then displays a 401 error about the token being invalid. In reality, the UI shouldn't even present the bearer token login page when it doesn't allow it to function of http - and provide a more proper error message. I was doing some proof-of-concept testing in a complicated network where its not easy to get https setup for a proof of concept... and discovered this rather user-unfriendly handling... after way to much digging trying to figure out why all of the simple-as-can-be examples didn't work.... |
You are a saver. The UI is not sending the bearer token if access it via HTTP.
|
What happened?
When creating a bearer token using the provided example on the login page:
kubectl -n NAMESPACE create token SERVICE_ACCOUNT
I get the following error:
GET http://35.207.138.93:9090/api/v1/me 500 (Internal Server Error)
Looking at it in the auth logs i can see the following:
What did you expect to happen?
To be able to login with the created bearer token
How can we reproduce it (as minimally and precisely as possible)?
I did nothing special other then adding a external ip to the kong gateway so i can access it from the browser without port-forward.
Anything else we need to know?
No response
What browsers are you seeing the problem on?
Chrome
Kubernetes Dashboard version
7.1.2
Kubernetes version
Client Version: v1.28.0 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.28.3
Dev environment
No response
The text was updated successfully, but these errors were encountered: