Kubernetes Secrets are base64-encoded — but base64 is not encryption. Anyone with your YAML file can decode your secrets in seconds using base64 -d or an online tool. Yet DevOps teams routinely paste YAML into Slack, support tickets, and AI assistants without thinking about it.

The problem: a single YAML export often contains your entire credential set. Database passwords, Docker registry tokens, OAuth secrets, API keys, and TLS certificates all live in the same file. If you paste it unsanitized, a malicious actor — or even an overzealous support vendor — now has access to your infrastructure.

This is especially risky when debugging with AI assistants. You want to ask Claude or ChatGPT about a pod crash or networking issue, but you can't paste the actual manifest because it contains live credentials. Sanitizing before sharing solves this without losing the technical context the AI needs.

What You're Protecting

Kubernetes manifests contain secrets in three places:

Manual editing is slow and error-prone. You have to remember every secret field, find every reference, and verify nothing was missed. This is where a tool like ScrubForge comes in.

How to Sanitize Kubernetes YAML

Install ScrubForge from the Chrome Web Store, then:

  1. Export your Kubernetes manifests: kubectl get deployment,secret -o yaml > manifest.yaml
  2. Copy the entire YAML and paste it into ScrubForge
  3. Review the sanitized output (credentials are replaced with consistent tokens like [K8S_SECRET_1], [API_KEY_1])
  4. Copy the clean version and paste it into your support ticket, Slack, or AI chat
Key benefit: The logical structure is preserved. Support engineers and AI assistants can still understand what credentials are being used and where they're referenced — without seeing the actual values. If the same password appears five times in your manifest, every instance becomes [DB_PASSWORD_1], preserving that relationship.

ScrubForge detects over 120 credential patterns, including Kubernetes base64-encoded secrets, plaintext API keys, JWT tokens, database URLs, and service account tokens. It works entirely offline — your manifests never leave your browser.

Sanitize Kubernetes YAML safely

Remove secrets from manifests before sharing. 120+ patterns, fully local, no upload required.

Install ScrubForge — Free