Sharing Config Data
Understand this important concept to simplify your config.
- Reference one parameter from another to build more complex values.
- An example is a database hostname, port, and URL value. With interpolation, the value can be constructed with individual settings. So if the port number changes, the new value only needs to change in one location, and all the references will automatically inherit the new value.
- Reference parameters from another project.
- Cherry-pick parameters to be shared or inherit all the values.
- Implicit values allow config data to adjust according to context, avoiding creating too many variants which become difficult to manage at scale. Use implicit values for:
- Ephemeral environments
- Topic branches
Share parameters and secrets across projects from a common base project. Project inheritance works with interpolation.
- Most config data can be organized to share a default value across projects. You don't lose anything by sharing since values can always be overridden for exceptional cases.
- Supports templates as well as parameters and secrets.
- Set sane default values that can be inherited or easily overridden.
- Secret rotation is easier because the secret only has to be changed in one location and will be reflected in all referenced values.