Browse
Secrets Management in Pipelines
Keeping credentials and keys out of source control and pipeline logs, while still letting automation use them.
What it is
Secrets management handles credentials, API keys, and certificates so automated pipelines can use them without ever exposing them in source control, logs, or build artifacts.
Key points
- Never commit secrets to version control — even in a private repo, since history persists and access scope is broader than the current moment; this is the single most common real-world secrets incident.
- Dedicated secrets stores (Vault, cloud provider secret managers) issue credentials to pipelines at runtime, rather than secrets living as static pipeline configuration.
- Least privilege + short-lived credentials: a pipeline should only get access to the specific secrets it needs, ideally as short-lived, scoped tokens rather than long-lived static keys.
- Log scrubbing: secrets accidentally printed to build logs are a common leak vector — pipeline tooling should actively redact known secret patterns from log output.
