Proposed · 2026-11-20
This record is a draft awaiting review. It may be incomplete or wrong; do not rely on it yet.
The Gateway operator checks Kong changes before writing them
Context
The legacy operator still manages Kong. When the Gateway operator takes a Route over, what it would write may differ from what the legacy operator configured. An unexpected difference breaks API consumers, so it must not reach Kong unnoticed.
A Route's Kong entities depend on each other and are written one after another. A check per entity shows only the first difference, and can leave a Route half migrated.
Decision
In Migration Mode, the Gateway operator first plans all Kong changes of a Route or Consumer and writes nothing. It then decides on them as one bundle.
- Expected differences, such as the new names, are listed in an ignore list and pass.
- Any other difference blocks the whole bundle. The Route or Consumer shows every change for review.
- A person approves the bundle by its hash. The operator plans again and writes only if the hash is unchanged.
- The mode is
off,onorstrict. Instrict, every change needs an approval. The mode is set for the whole operator, not per Gateway.
Review and approval are described in Migration Mode.
Options considered
- Plan, then decide on the whole bundle (chosen): nothing of a blocked Route is written, and the reviewer sees every change at once.
- Compare Kong snapshots afterwards: finds a difference only after it was written.
- Check each entity as it is written: shows only the first difference and can leave a Route half migrated.
- Approve by the object's generation: also approves changes nobody reviewed, such as a later change of Kong by the legacy operator.
- A switch per Gateway: the migration is a phase of the whole operator, and a Gateway field would outlive it.
Consequences
- A reconcile with changes reads Kong twice. Kong can change between the plan and the write; this window is accepted.
- An approval stays valid as long as the hash is the same.
- The ignore list must be kept up to date while the migration runs.
- Only what the Gateway operator writes is compared. Configuration that only the legacy operator manages is not reported.