Night Mode LabsBlue Book
Platform Practices

Secrets Management

Secrets management should reduce long-lived credentials, centralize audit, and make rotation routine. The strongest pattern is to replace static secrets with workload identity wherever possible.

  • Prefer cloud workload identity, OIDC federation, and short-lived tokens over stored credentials.
  • Keep production secrets in a dedicated secrets manager, not in CI variables, source control, images, or Helm values.
  • Scope secrets to service, environment, and least privilege.
  • Rotate secrets automatically or on a published schedule.
  • Detect leaks with pre-commit hooks, CI scanning, and repository scanning.
  • Keep break-glass credentials rare, monitored, and time-bound.

Runtime delivery

Use one of these patterns:

Avoid placing raw secrets in Kubernetes manifests. If secrets must exist as Kubernetes Secret objects, ensure encryption at rest, tight RBAC, and rotation ownership.

CI/CD credentials

CI systems should use identity federation instead of static cloud keys. Common examples include GitHub Actions OIDC to AWS, Azure, or Google Cloud, GitLab workload identity federation, and short-lived deploy tokens for artifact registries.

Tooling examples

On this page