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

Add whoami API method #239

Merged
merged 2 commits into from
Dec 11, 2023
Merged

Add whoami API method #239

merged 2 commits into from
Dec 11, 2023

Conversation

jacobtomlinson
Copy link
Member

Closes #236.

Look up the username that is currently authenticated.

Implemented the same way as kubectl whoami:

  • If using a token we request a token review from the API and return the username provided.
  • If using username/password we return the username.
  • If using certificates we look at the username embedded in the client certificate.

@github-actions github-actions bot added documentation Improvements or additions to documentation kr8s tests labels Dec 11, 2023
@jacobtomlinson jacobtomlinson merged commit f2fb780 into kr8s-org:main Dec 11, 2023
7 checks passed
@jacobtomlinson jacobtomlinson deleted the whoami branch December 11, 2023 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation kr8s tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement whoami
1 participant