You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This seems to be a result of this change where previously a library detected the home directory, now the tilde is hardcoded and breaks on Windows. Whats worse is that it creates the ~ directory in the working directory. So you leave oidc tokens everywhere...beware committing secrets in to git. https://github.com/int128/kubelogin/pull/489/files #488
You can override the directory with a parameter in your kube config with token-cache-dir but this isn't helpful when you share configuration between WSL and Windows.
The default was cross platform friendly, and anyone who needed to override it could with token-cache-dir. The newly introduced expansion in that pull request would still work for anyone who overrode token-cache-dir with a literal ~ in their path.
@int128@Mattias- What do you think about reverting the default to utilising homedir.Dir() for all platforms?
Describe the issue
Cache on Windows is in a folder called "~" inside the user directory. I.e.
C:\Users\<User.Name>\~\.kube
To reproduce
On Widows go to
C:\Users\<User.Name>\~\.kube
Your environment
The text was updated successfully, but these errors were encountered: