Tech_Interview_Prep

Secrets Management in the Cloud

Using cloud-native secrets services so credentials are never hardcoded, with automatic rotation.

What it is

Cloud secrets management stores and serves credentials, API keys, and certificates via a dedicated service — so applications retrieve secrets at runtime instead of having them hardcoded or stored in configuration files.

Key points

  • Never in code or config files: hardcoded secrets end up in version control history permanently, even if later removed — dedicated secrets services exist specifically to prevent this class of leak.
  • Automatic rotation: cloud secrets managers can rotate credentials on a schedule without manual coordination across every service that uses them — reduces the blast radius of a leaked credential to a bounded time window.
  • Encryption at rest and in transit: secrets services encrypt stored secrets and require authenticated, encrypted retrieval — a baseline expectation, not an advanced feature.
  • Access auditing: every secret retrieval is logged, which is what makes it possible to answer "was this compromised secret actually accessed by an attacker" during an incident investigation.