ON-PREM CHOREO CLOUD BOTH

What it is

Config before code is a release rule: any new configuration a feature needs must exist in every upper environment before the code that uses it is merged. Configuration means things like a new secret, a new variable or a new platform setting. Merging the code to main deploys it to dev at once, so the order matters.

Stock the shelves before you print the menu. If the menu lists a dish the kitchen cannot make, customers notice.

Why it exists

Promotion moves the whole environment to a commit of main. If the code arrives before its configuration, the environment breaks the moment the change reaches it.

How it works

  • A developer lists the new secrets, variables and platform settings the change needs.
  • Secrets are added to the Vault of each environment by the Platform Engineering team. Nothing secret is ever committed to Git.
  • A new ${variable} used in a manifest is added to the Flux substitutions on every environment branch first.
  • Only then is the dependent code merged to the source repository, which auto-deploys it to dev.
  • If a manifest references a variable that an environment does not define, the build breaks when the change reaches that environment.

Key facts

Order
configuration first, code second
Applies to
secrets, variables, platform config
Why
merge to main auto-deploys to dev
Secrets
Bitwarden or the environment's Vault, never Git