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

inconsistency with kubectl with invalid user #1593

Open
aviramha opened this issue Oct 8, 2024 · 4 comments
Open

inconsistency with kubectl with invalid user #1593

aviramha opened this issue Oct 8, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@aviramha
Copy link
Contributor

aviramha commented Oct 8, 2024

Current and expected behavior

When using kube-rs over kubectl proxy kube-rs client doesn't work while kubectl does

kubectl config set-cluster testt --server=http://localhost:8001 --insecure-skip-tls-verify=true
kubectl config set-context testt --cluster=testt
kubectl config use-context testt

add in ~/.kube/config

users:
- name: testt
  user: 
    password: a
    username: a

and in the testt context:

- context:
    cluster: testt
    user: testt
  name: testt

then run kubectl get pods (using kube-rs' kubectl example) and it will fail, while official binary works.

Found this while trying to work around metalbear-co/mirrord#2803

Possible solution

No response

Additional context

No response

Environment

doesn't matter

Configuration and features

No response

Affected crates

kube-client

Would you like to work on fixing this bug?

No, since #1594 is more important to me, but decided to log this issue for common knowledge.

@aviramha aviramha added the bug Something isn't working label Oct 8, 2024
@aviramha
Copy link
Contributor Author

aviramha commented Oct 8, 2024

#1594

@clux
Copy link
Member

clux commented Oct 9, 2024

presumably duplicate of #1594 ?

@clux
Copy link
Member

clux commented Oct 9, 2024

looks like it, closing. please reopen if there's something missing

@clux clux closed this as completed Oct 9, 2024
@aviramha
Copy link
Contributor Author

aviramha commented Oct 9, 2024

Hey, it's not a duplicate - in this case it would still fail by supplying wrong auth while kubectl works somehow

@clux clux reopened this Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@clux @aviramha and others