Bisnode / kubectl-tbac

Kubectl plugin to help managing secrets in a TBAC'ed environment
Apache License 2.0
7 stars 1 forks source link

Authentication fails one time after successful 2-FA #31

Closed msteiger closed 3 years ago

msteiger commented 4 years ago

When I use a tbac command with an old token, I am forwarded to the 2-FA workflow and when I complete it successfully, the command still fails with

error: You must be logged in to the server (Unauthorized)

When I run the same command again, it works successfully, skipping the 2-FA workflow since the token is valid. Happens in versoin 1.0.2, could be related to the Windows setup, since it does not seem to happen on MacOS.

anderseknert commented 4 years ago

This bug in kubectl will be fixed in kubernetes 1.19 ;) What version of kubectl-login are you using on that machine though? We have a workaround for this in kubectl-login since version 1.1.0 so you'll likely see it fixed by upgrading.