Prompt
I’m unhappy with using Kubernetes secrets as plain base64 values
Latest observation
Oct 25, 2026
OpenAI APIWeb search: off
That’s a fair concern — Kubernetes Secrets are only base64-encoded, not encrypted by default, so they’re easy to misinterpret as secure when they’re really just obfuscated.
A few better approaches, depending on what you need:
Better options
-
Encrypt secrets at rest in etcd
- Enable Kubernetes encryption at rest for Secrets.
- This protects them in the cluster datastore, but they’re still exposed to workloads that can read them.
-
Use an external secret manager
- Common choices:
- HashiCorp Vault
- AWS Secrets Manager / SSM Parameter Store
- Azure Key Vault
- Google Secret Manager
- Then sync or inject secrets into pods using:
- External Secrets Operator
- Secrets Store CSI Driver
- Vault Agent Injector
- Common choices:
-
GitOps-friendly encryption
- Store secrets in Git encrypted with:
- Mozilla SOPS
- Sealed Secrets
- These keep plaintext out of Git while still deploying to Kubernetes.
- Store secrets in Git encrypted with:
-
Reduce secret exposure in workloads
- Mount secrets as files instead of env vars when possible.
- Scope RBAC tightly.
- Rotate secrets regularly.
Practical recommendation
If you want a strong default:
- Use an external secret manager
- Inject secrets at runtime
- Enable encryption at rest in Kubernetes anyway
If you want, I can help you compare:
- Kubernetes Secrets vs SOPS vs Vault vs External Secrets Operator or suggest the best setup for your environment.