kubeconfig Inspector
Read a kubeconfig, list its contexts, and redact its credentials safely.
- Input and output stay in memory and are gone when you leave this page.
Nothing saved
Input and output stay in memory and are gone when you leave this page. - Processing happens in this page. No application server receives your input.
Runs in your browser
Processing happens in this page. No application server receives your input.
Kubeconfig YAML
Summary
- Targets
- client.authentication.k8s.io/v1 (Kubernetes 1.31)
- Clusters
- โ
- Users
- โ
- Contexts
- โ
- Current context
- โ
- Credentials found
- โ
What This Tool Inspects
Reads a Kubernetes client configuration into its three lists (clusters, users, and contexts) and resolves each context to the cluster and user it actually points at. Emits a redacted YAML copy with every credential path in CREDENTIAL_PATHS, the login part of each server and proxy address, and any heuristic secret match replaced by <redacted> so the configuration can be attached to a support ticket safely.
Target specification: client.authentication.k8s.io/v1 (Kubernetes 1.31)
Scope & Evaluation Limits
It never contacts a cluster: a server URL is read, never requested, so "is this cluster reachable" and "is this token still valid" are questions it cannot answer. exec credential plugins are read and reported (the command, its args, and its API version) and are of course not run. It does not merge the KUBECONFIG path list, because there is only one file here and merge order is a shell concern. Certificate summaries cover embedded *-data fields only; a client-certificate: /home/me/.minikube/client.crt path reference is reported and not followed. Expiry is read from an embedded certificate's notAfter; a bearer token's expiry is inside a JWT and is deliberately left to T38, which is the tool for that and takes the token you paste into it.
- Live cluster reachability or token authentication checks
- Executing exec credential plugins
- Following external certificate file paths or merging KUBECONFIG path lists
Lint Rules (9)
| Rule | Severity | Fires when |
|---|---|---|
KUBECONFIG/unknown-cluster | error | A context names a cluster the file does not define |
KUBECONFIG/unknown-user | error | A context names a user the file does not define |
KUBECONFIG/no-current-context | warning | current-context is absent or names something undefined |
KUBECONFIG/insecure-tls | warning | insecure-skip-tls-verify: true. Every connection through this context is unauthenticated at the transport layer |
KUBECONFIG/plaintext-password | warning | user.password is set. Basic auth was removed in Kubernetes 1.19 and this context cannot work against a current cluster |
KUBECONFIG/expired-certificate | warning | An embedded client certificate whose notAfter has passed, or is within 14 days |
KUBECONFIG/http-server | warning | A server URL with an http:// scheme |
KUBECONFIG/orphan-entry | info | A cluster or user no context references |
KUBECONFIG/no-namespace | info | A context with no namespace, which means default and is a common way to apply something to the wrong place |
Scope: this covers the page itself. Your browser, operating system, clipboard, downloads, extensions, and crash recovery may keep copies, and a compromised site origin would not be protected.