kubeconfig Inspector & Redactor

List the clusters, contexts and users in a kubeconfig and redact its tokens and keys for safe sharing.

Current context: dev

Clusters (1)

  • prodhttps://prod.example.com:6443

Contexts (1)

  • devcluster=prod · user=alice· ns=team-a

Users (1)

  • alicetoken
Redacted kubeconfig
apiVersion: v1
kind: Config
current-context: dev
clusters:
  - name: prod
    cluster:
      server: https://prod.example.com:6443
contexts:
  - name: dev
    context:
      cluster: prod
      user: alice
      namespace: team-a
users:
  - name: alice
    user:
      token: REDACTED
      client-key-data: REDACTED
Edge Tools by Islam Answers
01:56 PM