config
Everything about an application that varies between deploys, such as database addresses, credentials and hostnames.
In more detail
Factor III of the twelve-factor app: store config in the environment, strictly separate from code. Settings that do not vary between deploys, such as how routes are wired, are not config in this sense. Missing required config should stop the process at start up, loudly; a default is fine for a release label but never for a secret.
Example
DATABASE_URL = os.environ["DATABASE_URL"] # III: no default, so missing config stops the processRelated terms
- environment variable — A named setting such as PORT=8000 that a program reads from its surroundings when it starts.
- open source test — The twelve-factor app's check for config: could this codebase be made open source right now without exposing any credential?
- secret — Any value that grants access, such as a password, access token or private key, and must be kept out of code and version control.
- twelve-factor app — A short manifesto of twelve rules for building applications that deploy cleanly to modern platforms, written at Heroku and published in 2011.
Taught in
- Codebase And Dependencies — DevOps & Site Reliability Engineering
- Config And Backing Services — DevOps & Site Reliability Engineering
- Build, Release, Run And Processes — DevOps & Site Reliability Engineering
- Building And Versioning The Artifact — DevOps & Site Reliability Engineering
- Infrastructure As Code Context — DevOps & Site Reliability Engineering
- Containers And Orchestration Context — DevOps & Site Reliability Engineering
- Pin It, Lint It, Prove It: Images And Runtimes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- A Name That Outlives Its Pods: Services And DNS — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Pending All Saturday: How The Scheduler Places Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Wrong Cluster, Wrong Version: Contexts, Upgrades And Skew — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not As Root, Not In Plain Sight: Pod Security And Secrets — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Status Tells You Where To Look: Troubleshooting Pods — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Orchestration Sprint: Four Fixes, No Walls Removed — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Running, Green And Still Broken: Debugging Applications — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Image Nobody Tested: Cloud Native Principles — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Architecture Sprint: The Refunds Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep