# Cloud Config Sanitizer — Secret Types, Topic Guides, Format Guides For the full tool, see: https://capytoolkit.com/tools/security/config-sanitizer/ ## Cloud Config Sanitizer Reference [AWS Access Key ID] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#aws-access-key-id - AWS long-term access key IDs start with AKIA and travel with a 40-character secret key. Learn how they leak into manifests and how to redact them safely. [GitHub Personal Access Token] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#github-personal-access-token - GitHub classic PATs start with ghp_ and grant repo-wide access. Learn where they hide in config files, how the prefix rule works, and how to respond to a leak. [Slack Token] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#slack-token - Slack bot and user tokens start with xoxb- and xoxp- prefixes. Learn what a leaked Slack token exposes, how the sanitizer flags it, and how to revoke one. [Stripe API Key] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#stripe-api-key - Stripe secret keys use sk_live_ and sk_test_ prefixes and grant full API control. Learn the key taxonomy, what a leak exposes, and how to roll a key safely. [PEM Private Key] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#pem-private-key - PEM private key blocks are defined by RFC 7468 BEGIN and END boundaries. Learn how they end up in YAML manifests and how the sanitizer redacts them as critical. [JWT in Config Files] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#jwt-in-config - JWTs are base64url-encoded, not encrypted, so anyone can read their claims. Learn why a JWT in a manifest leaks data and access, and how to redact it. [Database Connection String] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#database-connection-string - Connection strings like postgres://user:password@host embed credentials in a URI. Learn how the sanitizer detects them and how to rotate a leaked database password. [High-Entropy String] - https://capytoolkit.com/tools/security/config-sanitizer/reference/#high-entropy-string - Shannon entropy measures randomness per character. Learn how the sanitizer flags strings of 16+ chars above 4.5 bits per character, and where the method has limits. ## Topic Guides [Secrets in Git Repositories] - https://capytoolkit.com/tools/security/config-sanitizer/secrets-in-git-repositories/ - Git history preserves every committed secret, even after deletion. Learn why removal requires rotation plus history rewriting, and how to sanitize files pre-commit. [Sanitizing Configs for AI Tools] - https://capytoolkit.com/tools/security/config-sanitizer/sanitize-configs-for-ai-tools/ - Manifests pasted into AI chats carry secrets past your security boundary. Learn what 2026 leak data shows and how to share redacted configs that stay debuggable. [.env File Secrets Workflow] - https://capytoolkit.com/tools/security/config-sanitizer/env-file-secrets-workflow/ - A generated .env template turns redaction into a working deployment pattern. Learn the environment-variable workflow, .gitignore rules, and CI injection. [Kubernetes Security Context Audit] - https://capytoolkit.com/tools/security/config-sanitizer/kubernetes-security-context-audit/ - privileged, hostNetwork, hostPID, readOnlyRootFilesystem, and runAsNonRoot decide a pod's blast radius. Learn what each flag risks and how the audit works. [GitOps Secrets Management] - https://capytoolkit.com/tools/security/config-sanitizer/gitops-secrets-management/ - GitOps makes the repo the source of truth, so a committed secret deploys itself. Compare Sealed Secrets, External Secrets Operator, and SOPS, and audit manifests first. ## Cloud Config Sanitizer: Code Examples [Sanitizing Kubernetes Manifests] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#kubernetes-manifests - Kubernetes manifests leak credentials through env blocks, ConfigMaps, and Secret data. Learn how multi-document YAML is analyzed and what gets redacted. [Sanitizing Terraform and OpenTofu Configs] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#terraform-configs - Terraform state stores sensitive values in plaintext, and sensitive = true only masks CLI output. Learn how to convert HCL to JSON and redact before sharing. [Sanitizing Helm Values Files] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#helm-values-files - Helm values.yaml files collect credentials by design, and helm template renders them into manifests. Learn how to audit both layers before sharing a chart. [Sanitizing Docker Compose Files] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#docker-compose-files - Compose environment blocks are the classic home of hardcoded credentials. Learn how the three Compose secret mechanisms differ and how to redact before sharing. [Sanitizing GitHub Actions Workflows] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#github-actions-workflows - Workflow YAML in public repos is public, and hardcoded env values are the leak vector. Learn the secrets-context pattern and how to audit workflows before committing. [Sanitizing Crossplane Compositions] - https://capytoolkit.com/tools/security/config-sanitizer/code-examples/#crossplane-compositions - Crossplane manifests reference cloud credentials through ProviderConfigs and connection secrets. Learn where real values leak into compositions and how to redact them.