Part 1 covered what secrets are, their lifecycle, and two approaches. Part 2: specific cloud solutions and how to choose.
/production/payment-service/db-password), and IAM policies can grant access at the path level — one team gets access to /production/payment-service/* while another gets /production/user-service/*.aws configure with long-lived keys, that's the gap to close first.~/.aws/credentials holding long-lived access keys. Use AWS SSO with temporary credentials instead. If a laptop is compromised, short-lived tokens limit the blast radius.Inside AWS, services authenticate via IAM roles — no additional credentials needed. Outside AWS, access keys are required.
The master key never leaves KMS. The data key exists in plaintext only during active use — then it's discarded.
Think six months ahead. Migrating between AWS secret services costs time.
Managed Service Identity eliminates the "secret zero" problem. Azure injects and rotates credentials without your code managing any secrets directly.
get/list on secrets to specific service accounts.EncryptionConfiguration for encryption at rest and restrict network access to the API Server only.All secret operations go through the API Server and are stored in etcd. Securing both is essential.
Every access is logged. Every secret is policy-controlled. This is what a complete audit trail looks like.
vault-approle annotationThe init container pattern ensures secrets never appear as environment variables. They're injected via volume at pod startup and are ephemeral.
Start where you are. Know where you're going. The best solution is the one your team will actually use.
2. Azure Key Vault combines all three functions. Managed Service Identity eliminates the "secret zero" problem.
3. Kubernetes secrets are base64-encoded, not encrypted. RBAC and etcd encryption are both required for adequate security.
4. HashiCorp Vault is the platform-agnostic answer for multi-cloud environments, providing unified policy management and audit trails.
5. Choose based on where you'll be in six months. Start with the simplest adequate solution and plan the migration path.