Sovereign DevOps-Driven API Governance in Pract...

Sovereign DevOps-Driven API Governance in Practice: Open Source and Agent-Ready in Hours

Your next API consumer is an agent, and it does exactly what your contract says, or doesn't say. Yet in many organisations API governance is still too manual, too slow, or simply arbitrary.

In a real, working demo repo, Andrzej Jarzyna builds API governance into the delivery pipeline one gate at a time, using open source, sovereign tools and CI checks on every pull request:

1. Catalog: every API, REST and events, discoverable in Backstage.
2. Guidelines as code: OpenAPI and AsyncAPI rulesets with OpenLint.
3. Mocks and contract testing with Microcks.
4. Publish through the gateway: config and access rules generated from the contract.
5. Breaking changes caught before they ship, with oasdiff and AsyncAPI diff.

You don't need all the gates on day one: a bare-bones setup takes hours, not a programme, and makes APIs understandable and safe for developers and AI agents alike.

Speaker: Andrzej Jarzyna, API Guide @ API Peak

apidays Paris @ FOST Paris 2026
https://www.joinfost.io/events/paris

FOST, powered by apidays PRO

December 03, 2026

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

49 slides
  1. Sovereign DevOps-Driven API Governance Any protocol, same gates. Open source

    and agent-ready FOST Paris '26 · 2 December '26 Paris • ▲ API Peak 200 OK Andrzej Jarzyna API Peak
  2. Andrzej Jarzyna Founder of API Peak: API strategy and governance

    services apipeak.io Co-author of RESTful API Design Patterns and Best Practices (Packt) 3scale API Solution Engineer: API management, gateways, developer portals adidas API Evangelist: guidelines, API contract repository, CI quality gates ING Policy as Code Lead, API governance PZU Chief API Architect: governance program from zero, APIs ready for AI agents
  3. THE BOOK RESTful API Design Patterns and Best Practices Andrzej

    Jarzyna & Samir Amzani · Packt Get it on Amazon
  4. PA R A D I G M S H I

    F T Your next API consumer is an agent It takes your contract as is. Completeness and quality are key
  5. WHAT IS THE ACCURACY OF AN UNGOVERNED API? WHAT WHAT

    DO DO YOU YOU MEAN? MEAN? A A SINGLE SINGLE CALL, CALL, OR OR A A MULTI-STEP MULTI-STEP WORKFLOW? WORKFLOW?
  6. PZU · INTERNAL TEST OF AI AGENTS ON OUR APIS

    Single API calls 70–80% Bare OpenAPI 99.6% → introducing rules for descriptions, examples and standards adherence
  7. PZU · INTERNAL TEST OF AI AGENTS ON OUR APIS

    Multi-step workflows ~60% Chained calls >90% → adding hypermedia controls or Arazzo workflow descriptions on top of the spec
  8. SO HOW DO YOU GET BETTER CONTRACTS? With API governance

    The developer experience of creating and using APIs Make the right thing easy, and the wrong thing hard (also for agents) Automated in CI, on every pull request: reviewers won’t keep up with agents
  9. W H E R E I T B R E

    A K S TO D AY · O N E C I G AT E F O R E A C H Five places it breaks 1 It can’t find your API 2 The contract is vague, and every team writes it differently Guidelines as code 3 The contract promises one thing, the code does another Mocks & contract tests 4 What’s running in production isn’t what the contract says Gateway from the contract 5 One innocent change breaks it, and nobody notices Catalog Breaking-change check
  10. T H E S TO RY One API, one partner

    The Orders API: GET /orders/{orderId}. A fintech partner is building an AI agent on it Pull request CI gates on every pull request: none yet Build Merge Deploy
  11. GROUND RULES Open source and sovereign Your data, your law,

    no backdoors Contract first · everything as code · automated in CI In the demo: Backstage · OpenLint · oasdiff · Microcks · KrakenD · Gitea. Swap any tool, add any protocol, keep the gates
  12. ▲ BASE CAMP S T E P 1 — A

    P I C ATA L O G · B R E A K 1 O F 5 You can’t govern what you can’t see Thousands of APIs across the organization. Who knows they exist? CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  13. GET /v1/orders-legacy HTTP/1.1 200 OK { "status": "I’m not dead

    yet!" } # owner: unknown · last change: 201 9 BRING OUT YOUR DEAD APIS!
  14. TO O L S S T E P 1 O

    F 5 · W H AT W E A D D Backstage finds it by itself RUNS IN THE PLATFORM IN THE REPO Backstage + Gitea provider catalog-info.yaml Scans the Gitea org for catalog-info.yaml on main. No registration step: merge the file and it is in the catalog. One file next to the code: the APIs, the services that provide and consume them, the broker, the owner. catalogPath: catalog-info.yaml kind: API · type: asyncapi
  15. DEMO S T E P 1 O F 5 ·

    O N E P R , R E S T A N D E V E N T S TO G E T H E R The catalog Branch Pull request, no checks yet Pull request catalog-info.yaml contracts/orders-openapi.yaml contracts/order-events-asyncapi.yaml Merge # new, next to the code # OpenAPI 3.1.0 # AsyncAPI 3.1.0 Backstage
  16. S T E P 1 — TA K E AWAY

    · B R E A K 1 O F 5 F I X E D One merge, and the API is visible Name, owner and contract, discoverable by every team, and by the partner’s agent EVERY TEAM · BACKSTAGE SEARCH 🔍 orders orders-api Owner · platform-team Contract · OpenAPI, rendered in API docs Provided by · backend THE PARTNER’S AGENT · CATALOG API GET /api/catalog/entities/by-name/api/default/orders-api { "kind": "API", "metadata": { "name": "orders-api" }, "spec": { "type": "openapi", "owner": "group:default/platform-team", "definition": "openapi: 3.1.0 …" } }
  17. S T E P 1 — S A M E

    G AT E , O T H E R A P I S Every interface goes in the catalog Same catalog-info.yaml, same merge. Only the spec type changes Async AsyncAPI Specification as the contract spec.type: asyncapi, rendered in the API docs The broker is a Resource; producers and consumers are edges Kafka: the schema registry is a Resource too MCP spec.type: mcp-server, next to REST and event APIs The definition: a snapshot of the server’s own tools/list response
  18. ▲ CAMP 1 STEP 2 — GUIDELINES AS CODE ·

    BREAK 2 OF 5 A guideline nobody enforces is a suggestion At adidas, the real picture only showed up when the rules ran in CI CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  19. YOUR API GUIDELINES, PAGE 47 THOU SHALT COUNT TO 200,

    NO MORE, NO LESS. 201 IS RIGHT OUT.
  20. TO O L S S T E P 2 O

    F 5 · W H AT W E A D D Guidelines as rulesets RUNS IN CI ON THE PR IN THE GOVERNANCE REPO OpenLint Three rulesets Lints every changed contract on the pull request. Errors block the merge, warnings only inform. OpenAPI and AsyncAPI rules and fetched by CI. Every rule links to its guideline entry. openlint lint -r openlintruleset.yaml extends: openapi, asyncapi + our custom ruleset
  21. DEMO S T E P 2 O F 5 ·

    O N E P R , R E S T A N D E V E N T S TO G E T H E R Guidelines as code Open a pull request REST events Branch Pull request contracts/orders-openapi.yaml contracts/order-events-asyncapi.yaml Lint # OpenAPI 3.1.0 # AsyncAPI 3.1.0 Merge
  22. S T E P 2 — TA K E AWAY

    · B R E A K 2 O F 5 F I X E D Feedback in seconds, not weeks Errors block the pipeline. Warnings don’t. You decide which rule is which $ openlint lint -r .governance/openlint-ruleset.yaml contracts/orders-openapi.yaml 27:10 error api-peak:rest17:2025-https-required server.url MUST use HTTPS. $ openlint lint -r .governance/asyncapi-mqtt-ruleset.yaml contracts/order-events-asyncapi.yaml 134:17 error api-peak:async11:2026-property-naming Property 'paid_at' MUST be camelCase. ✖ 1 error in each contract → both checks red, merge blocked FOR AGENTS Descriptions and examples in the contract are what lifted accuracy to 99.6%
  23. STEP 2 — A SIDE NOTE ON SOVEREIGNTY Even a

    linter can phone home Spectral 6.16 sends install-time telemetry OpenLint, an openly governed fork of Spectral, removes telemetry and keeps full backward compatibility with Spectral
  24. S T E P 2 — S A M E

    G AT E , F O R E V E N T S One linter, two rulesets Same OpenLint, same guidelines, an AsyncAPI ruleset next to the REST one BUILT IN OUR RULESET SAME AS REST AsyncAPI 3 rules Topic naming Field naming Schema, refs and info, out of the box A version in every topic: orders/v1/{orderId}/created camelCase fields, PascalCase schemas, an example on every message
  25. ▲ CAMP 2 STEP 3 — MOCKS AND CONTRACT TESTING

    · BREAK 3 OF 5 A contract is a promise Can the partner integrate before the API exists? Does the code keep the promise? CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  26. WHEN WHEN THE CODE DOESN’T KEEP THE CONTRACT’S PROMISE THE

    IMPLEMENTATION IS NOT DEAD. IT’S PINING FOR THE FJORDS.
  27. TO O L S S T E P 3 O

    F 5 · W H AT W E A D D The contract becomes a mock and a test RUNS IN THE PLATFORM RUNS IN CI ON THE PR Microcks mocks Microcks contract test Serves REST and publishes MQTT events from the examples in the contract. Partners start on day one. Tests the PR’s running backend against the contract: every response and every published event. GET mock/orders/123 → 200 microcks test orders-api
  28. DEMO S T E P 3 O F 5 ·

    O N E P R , R E S T A N D E V E N T S TO G E T H E R Mocks and contract testing Change the contracts REST events Branch Pull request Lint contracts/orders-openapi.yaml contracts/order-events-asyncapi.yaml # both now promise: currency Contract test # OpenAPI 3.1.0 # AsyncAPI 3.1.0 Merge
  29. S T E P 3 — TA K E AWAY

    · B R E A K 3 O F 5 F I X E D One example, many uses examples: order_123: value: { orderId: "123", isPaid: true, currency: "PLN" } # → the live mock AND the contract test Publish the mock in your developer portal: partners build against it before the code exists FOR AGENTS Build and test the agent against the mock before the API exists
  30. S T E P 3 — S A M E

    G AT E , F O R E V E N T S The promise is tested where it is kept Mock from the contract, then test the real producer against it FOR CONSUMERS FOR THE PRODUCER Mock Contract test Microcks publishes the contract’s example events to the broker. Consumers start before the producer exists Microcks listens on the real topic and checks every event against the schema. Silence fails too
  31. ▲ CAMP 3 S T E P 4 — P

    U B L I S H T H R O U G H T H E G AT E WAY · B R E A K 4 O F 5 Publish the API straight from its contract Publishing is a lifecycle step, not a ticket. Hand-written gateway config drifts from the contract CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  32. TO O L S S T E P 4 O

    F 5 · W H AT W E A D D Config generated from the contract RUNS IN CI ON THE PR RUNS IN CI ON THE PR KrakenD generator Mosquitto ACL generator Writes krakend.json from the OpenAPI contract, checks it, deploys it and tests through the gateway. Writes broker roles from the AsyncAPI contract plus the catalog: who may publish, who may subscribe. generate.js → krakend.json generate-policy.js → roles
  33. DEMO S T E P 4 O F 5 ·

    O N E P R , R E S T A N D E V E N T S TO G E T H E R Deploy from the contract Nothing exposed yet REST events Branch Pull request Lint $ curl gateway:8090/orders/123 404 Not Found Contract test Gateway Merge
  34. S T E P 4 — TA K E AWAY

    · B R E A K 4 O F 5 F I X E D Generated, deployed, proven $ curl localhost:8090/orders/123 # before 404 Not Found $ curl localhost:8090/orders/123 # after the merge 200 OK {"orderId":"123","isPaid":true,"currency":"PLN"} The contract defines what’s on the gateway. It can carry runtime configuration too FOR AGENTS What runs in production is exactly what the agent reads
  35. S T E P 4 — S A M E

    G AT E , F O R E V E N T S Access is generated from the contract For events the gateway is the broker, and its access rules are generated in CI FROM THE CONTRACT FROM THE CATALOG EVERYTHING ELSE Who may publish Who may subscribe Denied The service that provides the API may send on its topics Services that consume the API may subscribe to them Other topics, wider wildcards, unknown clients: the broker says no
  36. STEP 5 — BREAKING CHANGES · BREAK 5 OF 5

    Now the partner is integrated ▲ SUMMIT A small, innocent change to the contract. Who finds out first: you in CI, or your partner’s agent? CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  37. TO O L S S T E P 5 O

    F 5 · W H AT W E A D D Compare with what is on main RUNS IN CI ON THE PR RUNS IN CI ON THE PR oasdiff @asyncapi/diff Compares the PR’s OpenAPI contract with the one on main and fails on a breaking change. The same for AsyncAPI: channels, operations and payloads, judged by who reads them. oasdiff breaking --fail-on ERR asyncapi-diff.js main pr
  38. DEMO S T E P 5 O F 5 ·

    O N E P R , R E S T A N D E V E N T S TO G E T H E R Breaking changes Open a pull request REST events Branch Pull request Lint Breaking changes contracts/orders-openapi.yaml contracts/order-events-asyncapi.yaml Contract test # OpenAPI 3.1.0 # AsyncAPI 3.1.0 Gateway Merge
  39. S T E P 5 — TA K E AWAY

    · B R E A K 5 O F 5 F I X E D An explicit decision, not an accident error [new-required-request-parameter] GET /orders/{orderId}: new required 'channel' exit 1 → PR blocked Block breaking changes before they go live, or ship them with proper versioning FOR AGENTS A human reads the changelog. An agent just fails, at scale, often silently
  40. S T E P 5 — S A M E

    G AT E , F O R E V E N T S Breaking depends on who reads The same change can be safe or breaking, depending on direction ACTION: SEND ACTION: RECEIVE Events you publish Events you consume Removing or renaming a field breaks your consumers. Adding an optional one is safe A new required field breaks the senders. Accepting a new optional one is safe In CI: @asyncapi/diff on the contract. Red PR, or a new topic version on purpose: orders/v2/…
  41. • ▲ API Peak W H AT Y O U

    J U S T S AW Five gates in CI. No platform needed Fix what actually hurts. Use tools you control. Automate the rest 200 OK
  42. THE WHOLE PIPELINE You don’t need all the gates on

    day one Add one at a time, like we just did. Every change is a pull request with recorded gate results: an audit trail for free. Open source, sovereign, one contract CI gates on every pull request Pull request Guidelines OpenLint Breaking changes oasdiff Contract test + mock Microcks API gateway KrakenD Merge Catalog Backstage Deploy
  43. THE WHOLE PIPELINE · REST AND EVENTS Any protocol, same

    gates GATE REST · OPENAPI EVENTS · ASYNCAPI Catalog Backstage · openapi Backstage · asyncapi Guidelines OpenLint OpenLint, AsyncAPI ruleset Contract test Microcks over HTTP Microcks on the broker Gateway KrakenD config Broker ACLs Breaking changes oasdiff @asyncapi/diff + schema registry Swap any tool, add any protocol, keep the gates
  44. WELL… Teams reuse APIs instead of rebuilding them Feedback in

    seconds, not weeks of reviews Partners integrate from day one Production matches the docs Changes that don’t break your customers An audit trail, for free All right, but apart from all that… WHAT HAS API GOVERNANCE EVER DONE FOR US? It made our APIs AI-ready
  45. Climb it like a real mountain 1 2 3 Track

    all your APIs in one place, even from a monorepo Turn your top 5 guideline rules into a CI lint, warnings first Run a breaking-change diff on your most-used API Api is a real 7,132 m peak in Nepal. Start small, train, build a base camp. The rest will come
  46. • ▲ API Peak 200 OK Thank you! Any protocol,

    same gates Andrzej Jarzyna · API Peak Run the whole demo yourself: docker compose up The repo, on GitHub github.com/jerzyn/devops-api-governance
  47. F O S T PA R I S ' 2

    6 How was this session? Scan to rate it. It takes a minute and it really helps Questions? I’m here now, and after the session

More Decks by FOST, powered by apidays

Other Decks in Technology