There is a pattern that recurs in banks that build a Kafka-based event platform at scale. In the early months, it works beautifully: three teams, six topics, everyone knows what every message means. Then the programme grows. Two years later there are dozens of topics, several squads publishing events, more squads consuming them, and a rotating cast of integration engineers who each joined at a different point in the platform’s history. Nobody has a complete picture of what is published on which topic, what the fields mean, which fields contain personal data under PDPL, or which consuming services will break if a field is renamed.
At that point, someone opens a Jira ticket titled “AsyncAPI documentation for Kafka topics” and assigns it a priority of Medium. It sits unresolved for two quarters. The documentation approach fails because it is opt-in, retroactive, and disconnected from the toolchain. Engineers write documentation when they have time, which is never. The documentation drifts from the code within weeks of being written. Nobody reads it when they build a new consumer because it is on a Confluence page and their IDE is open.
The banks that avoid this failure do not run a documentation campaign. They make a governance decision: no new Kafka topic may be created or modified without an approved AsyncAPI spec checked into source control, validated in CI, and reviewed by the owning squad plus all consuming squad leads. The spec is not a description of what the code does — it is the authority that the code must implement. This is a different decision, made at a different level, with different consequences.
The decision and its cost
Instituting contract-first channel governance requires the VP of Enterprise Integration to approve two things that both carry a real cost. The first is a toolchain investment: AsyncAPI generator tooling, a channel registry in Git with CODEOWNERS, CI validation gates, and a Maven artefact pipeline that publishes generated bindings. This is not free in engineering time — expect two to three weeks of platform engineering effort to stand up properly, and ongoing maintenance. The second cost is process friction: squads that previously created Kafka topics ad hoc by submitting a Jira request to the platform team now need to write a spec, get it reviewed, and get sign-off from consumer squad leads before anything reaches the broker. This slows initial delivery and generates pushback.
Against that cost: the alternative is the situation described above, which eventually requires a multi-month remediation programme to retroactively document, classify, and govern topics that are already in production carrying personal financial data. That remediation programme is more expensive than the governance toolchain, less effective (retroactive classification is always incomplete), and forces engineers to touch production systems to understand what they do. The governance decision made upfront costs less than the remediation decision made after the problem has compounded for two years.
The time to mandate channel contracts is before the fortieth Kafka topic is created, not after. The organisation that waits until the pain is undeniable has already accumulated a governance debt that takes a dedicated programme to clear.
The PDPL dimension
For a Saudi bank, the governance decision carries a regulatory dimension that makes it more urgent than it might appear in a jurisdiction with lighter data protection requirements. Under the PDPL, a Kafka topic that carries IBAN numbers, customer names, national IDs, or transaction histories is a personal data processing activity. That processing activity must be documented, purpose-limited, and subject to appropriate access controls. A topic that carries restricted personal financial data and is readable by any service with a valid mTLS certificate is not compliant — it is an open personal data channel with no access boundary.
AsyncAPI custom extensions provide a lightweight but enforceable way to document and gate PDPL classification at the channel level. Every channel spec carries an x-pdpl-classification field: public, internal, restricted (personal financial data), or sensitive (PDPL special categories). CI validation enforces that the field is present on every spec. Kafka ACL provisioning is automated from the classification value: a restricted channel gets an ACL that explicitly names the consumer groups permitted to read from it, and adding a new consumer group requires a PR approved by the Data Protection Officer. A sensitive channel gets a separate Kafka cluster with dual-key encryption at rest.
This is not over-engineering. It is the control that SAMA’s cyber security requirements and the PDPL together call for on personal data in motion — and it is far easier to build the control into the channel governance workflow than to retrofit it to a platform that has been running without it for two years.
What the VP has to decide
1. Mandate contract-first for all new channels from a specific date. Choose a cutover date — the start of the next quarter works well — after which no new Kafka topic may be created without an approved AsyncAPI spec. Do not attempt to backfill existing topics on the same timeline: prioritise the highest-PDPL-exposure channels first and work backward. The mandate applies to new work immediately; the backfill is a separate programme with a separate owner.
2. Assign channel ownership to squads, not to the platform team. The integration platform team owns the tooling and the governance process. Individual squads own individual channels. This means the payment initiation squad owns the spec for payments.initiated.v2, is responsible for its PDPL annotations, and is accountable when a consumer breaks because the spec was changed without adequate notice. The platform team does not own the content of channel contracts — it owns the toolchain that enforces them. This distinction matters because channel ownership without squad accountability devolves back into nobody being responsible.
3. Require DPO sign-off on restricted and sensitive channel PRs. This is the step most VPs skip because it creates friction with the DPO, who is not a technical reviewer and may find the AsyncAPI spec format unfamiliar. Work through it: the DPO does not need to understand the YAML. They need to confirm that the processing purpose is documented, that the consumer list is appropriate for that purpose, and that the retention period is compatible with the PDPL data minimisation principle. Write a one-page summary section at the top of the spec for DPO review if needed. The friction is manageable; the alternative — personal financial data flowing on undocumented, unclassified Kafka topics — is not.
4. Accept that the first version of every spec will be imperfect. Squads new to AsyncAPI will write specs that are incomplete, miss edge cases, or use the extensions inconsistently. This is expected. The CI gates catch the missing mandatory fields. The peer review catches the semantic inconsistencies. The governance process improves with each cycle. Do not delay the mandate waiting for perfect tooling or perfect training — the act of writing the spec, however imperfect, is what builds the discipline. Perfection is a second-iteration goal.
What the team needs from leadership to ship it
The engineering team running the channel governance programme needs one thing above everything else: a VP who will decline new topic requests that arrive without a spec, even under delivery pressure. The first time a squad bypasses the governance process because their sprint deadline is imminent and the spec “can be written afterward”, the mandate is effectively dead. Every other squad watching will draw the same conclusion: the spec requirement is aspirational, not binding.
The VP’s role is not to review AsyncAPI specs. It is to hold the line on the process when squads push back. The platform team will write the tooling and the review templates. The architecture team will review the specs. The DPO will sign off on classified channels. The VP’s job is to ensure that the governance process is not negotiable when delivery timelines are tight — which is the only time it ever gets challenged.
The technical depth behind this decision — how to write the AsyncAPI 3.0 spec, how to align it with Confluent Schema Registry, how to generate Spring Cloud Stream bindings, how to structure the CI enforcement pipeline, and how to version channels without breaking consumers — is covered in the AsyncAPI 3.0 Contracts for Kafka Channel Governance lab article.