Skip to main content
Cloud / DevOpsCloud SecurityDiagramIntermediate

Secrets Management

KO: 시크릿 관리·EN: Secrets Management·JA: シークレット管理

The centralized practice of storing, encrypting, auditing, and automatically rotating sensitive credentials—DB passwords, API keys, and private keys—outside source code and plaintext configs

Table of Contents

Structure Diagram

Centralized Secrets Vault Dynamic Lease & Rotation Loop
KMS VaultEncrypted St…Workload AuthRuntime Inje…Auto Rotate
3/4Runtime Inject
Mount to memory / tmpfs
Quick Answer

What is Secrets Management?

The centralized practice of storing, encrypting, auditing, and automatically rotating sensitive credentials—DB passwords, API keys, and private keys—outside source code and plaintext configs. It is a core concept in Cloud Security within Cloud / DevOps.

Core Principles

Secrets Management removes database passwords, API tokens, and private keys from source code, .env files, container images, and Git history, storing them in a KMS-encrypted vault that delivers credentials dynamically only to authenticated workloads at runtime.

Beyond encrypted storage, mature secrets management provides fine-grained access auditing, automated zero-downtime key rotation, and short-lived dynamic credentials that self-expire automatically.

Practical Takeaways

  • Enforce automated secret scanning: Run gitleaks or trufflehog in pre-commit hooks and CI. If a secret ever hits a Git commit, treat it as permanently compromised—revoke and rotate it immediately rather than just rewriting history.
  • Do not treat raw Kubernetes Secrets as encrypted: Default K8s Secrets are merely Base64-encoded. Enable etcd encryption at rest or sync secrets directly from cloud vaults via External Secrets Operator (ESO) or the Secrets Store CSI Driver.
  • Automate dual-key rotation: Support overlapping active credentials during rotation so keys can be rotated regularly—or in minutes during a security incident—with zero downtime.

Notable Examples

  • HashiCorp Vault: Industry leader for dynamic, lease-based database credentials, PKI certificates, and centralized audit logs.
  • AWS Secrets Manager, GCP Secret Manager & Azure Key Vault: Cloud-native vaults with managed RDS rotation and IAM integration.
  • External Secrets Operator (ESO): Bridges GitOps Kubernetes clusters cleanly with external secret stores.