open source test
The twelve-factor app's check for config: could this codebase be made open source right now without exposing any credential?
In more detail
If the answer is no, config or secrets are living in the code. It settles many code review arguments in one question.
Example
API_KEY = "shhh-do-not-tell" # III: a credential in version control fails the open source testRelated terms
- config — Everything about an application that varies between deploys, such as database addresses, credentials and hostnames.
- 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.
- API key — A secret string that identifies and authorises a program calling an API, usually sent in a header.
Taught in
- Config And Backing Services — DevOps & Site Reliability Engineering