DevOps & Config

kubeconfig Inspector

Read a kubeconfig, list its contexts, and redact its credentials safely.

  • Nothing savedInput and output stay in memory and are gone when you leave this page.
  • Runs in your browserProcessing happens in this page. No application server receives your input.

Kubeconfig YAML

Nothing on this page is saved. Closing or reloading the tab discards it permanently.

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)

RuleSeverityFires when
KUBECONFIG/unknown-clustererrorA context names a cluster the file does not define
KUBECONFIG/unknown-usererrorA context names a user the file does not define
KUBECONFIG/no-current-contextwarningcurrent-context is absent or names something undefined
KUBECONFIG/insecure-tlswarninginsecure-skip-tls-verify: true. Every connection through this context is unauthenticated at the transport layer
KUBECONFIG/plaintext-passwordwarninguser.password is set. Basic auth was removed in Kubernetes 1.19 and this context cannot work against a current cluster
KUBECONFIG/expired-certificatewarningAn embedded client certificate whose notAfter has passed, or is within 14 days
KUBECONFIG/http-serverwarningA server URL with an http:// scheme
KUBECONFIG/orphan-entryinfoA cluster or user no context references
KUBECONFIG/no-namespaceinfoA 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.