I am having trouble trying to understand the Kubernetes authentication model, specially what "users" are.
Suppose I am on a computer, which is inside a kubernetes cluster. I want to do a request to the API server, using kubectl
.
So: - I need to have the public key from the api-server HTTPS port. So let's assume that is provided to me. - Then, in my requeste, there's a need for me to populate the "user" field?
As per this part of the documentation, the user field is a method: https://kubernetes.io/docs/admin/authentication/#authentication-strategies
But then here https://kubernetes.io/docs/admin/accessing-the-api/#authorization we read that actually kubernetes has no concept of a user.
So:
- What/where do I even put in the user field?
- If, since I control the client request content, couldn't I simply enter any username there? Couldn't I just try guess any username repeatedly until I find one with the authorisation for what I want?
Thanks.