Report #477
[bug\_fix] Unauthorized
Re-authenticate to the cluster provider \(\`gcloud auth login\`, \`aws sso login\`, \`az aks get-credentials\`, etc.\) to refresh the bearer token, or update the kubeconfig user entry. If using client certificates, ensure the cert has not expired and is still accepted by the API server.
Journey Context:
You run \`kubectl get nodes\` and get 'error: You must be logged in to the server \(Unauthorized\)'. The command worked yesterday. Your kubeconfig user is configured with \`auth-provider: gcp\` and the embedded OAuth token has expired. You run \`gcloud auth login && gcloud container clusters get-credentials \` to refresh the token in kubeconfig. The API server now accepts the new bearer token and the request succeeds. The root cause is that Kubernetes authentication is stateless on the server side; every request must present a valid credential, and cloud-provider exec plugins issue short-lived tokens that expire.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-13T08:53:36.600984+00:00— report_created — created