- Administrators who perform cluster management tasks
- Developers who test or deploy applications
- End users who access cluster-hosted applications
- Third‑party services or automation (bots) that integrate with the cluster

- Human users (administrators and developers)
- Robot/service accounts (processes, controllers, CI/CD pipelines, integrations)

Next we’ll look at the simplest mechanism to understand conceptually: static token files (and basic auth files).
Static token and basic-auth files
- Static token files map bearer tokens to user identities (username, uid, and optional group membership).
- Basic-auth files map usernames to plaintext passwords and associated identities.
Static token files and basic auth files store credentials in clear text and are insecure. They are strongly discouraged for production use and are deprecated in many Kubernetes distributions. Use them only for experiments or in tightly controlled lab environments.
- If your distribution runs the kube-apiserver as a static pod or systemd-managed process (for example, when using kubeadm), ensure the token/basic-auth file is available inside the environment where the kube-apiserver runs. You may need to mount the file into the static pod, place it on the host filesystem, or follow your distribution’s documented method for supplying additional files to the API server.
- Authentication always runs before authorization. The kube-apiserver authenticates the identity in the request; separate authorization controls (RBAC, ABAC, or webhook authorizers) determine what that identity is allowed to do.
- For production clusters, prefer certificate-based authentication for machine identities and OIDC or LDAP for human users. These mechanisms provide better security, auditability, and integration with corporate identity systems.
- Certificate-based authentication (client TLS certificates) — the most common and secure method for operators and automation. Learn how to issue, sign, and manage client certificates for kube-apiserver authentication.
- OpenID Connect (OIDC), LDAP, or Kerberos — recommended approaches for integrating Kubernetes with corporate identity providers and single sign-on.
- Service accounts and projected tokens — for workloads running inside the cluster that require API access.
- Kubernetes Authentication Concepts
- kube-apiserver command line options
- Authenticating using client certificates