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

Unable to listen on ipv6 - unable to authenticate #1151

Open
thoro opened this issue Sep 26, 2024 · 1 comment
Open

Unable to listen on ipv6 - unable to authenticate #1151

thoro opened this issue Sep 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@thoro
Copy link

thoro commented Sep 26, 2024

Describe the issue

Kubelogin does not listen on IPv6, therefore it's sometimes impossible to authenticate, if localhost is resolved to ipv6 and a preferred way to connect.

To reproduce

try to login on a ipv6 first machine, curl will get stuck

Your environment

  • OS: macOS
  • kubelogin version: v1.28.1 via brew
  • kubectl version: 1.30.2
  • OpenID Connect provider: Azure / Dex
@thoro thoro added the bug Something isn't working label Sep 26, 2024
@thoro
Copy link
Author

thoro commented Sep 26, 2024

Figured out why it's happening for me.

So I have another app that listens on *:8000 and kubelogin only listens to 127.0.0.1:8000, so the IPv6 request is forwarded to the *:8000 app, which blocks the http request and the failback to ipv4 can never work.

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

1 participant