Skip to content
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

kubectl proxy access method does not work any more #9891

Open
swills opened this issue Jan 24, 2025 · 1 comment
Open

kubectl proxy access method does not work any more #9891

swills opened this issue Jan 24, 2025 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@swills
Copy link

swills commented Jan 24, 2025

What happened?

I followed this doc:

https://github.com/kubernetes/dashboard/blob/master/docs/user/accessing-dashboard/README.md#kubectl-proxy

and am unable to login. I get:

{"ErrStatus":{"metadata":{},"status":"Failure","message":"MSG_LOGIN_UNAUTHORIZED_ERROR","reason":"Unauthorized","code":401}}

Other access method documented on that page works fine with same token.

What did you expect to happen?

I expected to be able to login as I used to with older versions.

How can we reproduce it (as minimally and precisely as possible)?

I installed a completely vanilla install of the dashboard, no changes at all.

Anything else we need to know?

Used to work with older versions, now it does not.

What browsers are you seeing the problem on?

Firefox

Kubernetes Dashboard version

7.10.1

Kubernetes version

1.31.5

Dev environment

No response

@swills swills added the kind/bug Categorizes issue or PR as related to a bug. label Jan 24, 2025
@dorki
Copy link

dorki commented Jan 26, 2025

look here https://github.com/kubernetes/dashboard/tree/master/docs/user/access-control#authorization-header
it seems that the proxy version should not work any more as it doesnt pass your Auth header inside to the dashboard services.. use should use the port-forward method instead

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

2 participants