Agent Wranglers

Configuration and secrets

Keep settings in code and secrets in a store. Keep secrets out of state, let CI and services sign in with short-lived identity, and rotate on a timer.

  • Required 1
  • Recommended 4

Settings are values that may be public, such as a region or a pool size. Secrets are values that grant access, such as a database password. Code and state may hold settings, but never secrets. The app side is covered in Keep settings outside the code and Keep secrets in a secrets store. Secrets in container images are covered in Pass build secrets as mounts.

Required

Read this with

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/infrastructure/configuration-and-secrets">Agent Wranglers infrastructure and environments playbook</a>. In code you write, add a comment next to it with the same link.