Skip to main content
Proposed · 2026-11-20

This record is a draft awaiting review. It may be incomplete or wrong; do not rely on it yet.

Backend operators share one change pipeline

Context​

The gateway, identity and pubsub operators take over backend configuration from the legacy operator: Kong, Keycloak and Horizon. Each needs the same protection as the Gateway operator's Migration Mode: no unexpected change reaches the backend unnoticed.

Most of Migration Mode does not depend on Kong: the diff, the plan, the hash and the approval. Three copies would drift apart in behaviour, configuration and status format, and reviewers would have to learn each one.

Decision​

The change pipeline lives once, in common/pkg/changeset. Every operator writes to its backend only through it. An operator adds only how to read, compare and write its own entities.

  • The pipeline also runs with Migration Mode off. The last written changes stay recorded on the object, as an audit trail after the migration.
  • Secrets are masked inside the pipeline, before anything is recorded. No status, event or log shows them in clear.
  • Each operator has its own mode and ignore list, so they switch over one by one: gateway first, then pubsub, then identity.

Options considered​

  • One shared pipeline (chosen): one behaviour, one configuration and one approval flow for all three backends.
  • A copy per operator: the copies would drift apart, and reviewers would learn three flows.
  • Share only the diff: the gate, the status and the approval are what reviewers use, so they must be the same everywhere.
  • A separate service comparing backend snapshots: it finds differences only after they were written and cannot block them.

Consequences​

  • A backend call that bypasses the pipeline is a bug.
  • An operator that forgets to declare a secret leaks it. Each operator needs a test that no secret is recorded in clear.
  • The identity operator needs the most work: its direct Keycloak calls must move behind the pipeline.
  • The pubsub operator depends on a Horizon endpoint for reading subscriptions, which does not exist yet.