The agent publishes an OpenAPI description of its API #1006

Open
opened 2026-11-16 09:11:46 +00:00 by sharang · 0 comments
Owner

Follow-up from #997 (DAST dogfooding).

Problem: the agent's HTTP API (compliance-agent/src/api) has no machine-readable description. DAST seeds API endpoints from an OpenAPI document (#997 point 1), so a scan of our own agent cannot see its routes. Integrators also have nothing to generate clients from.

Change:

  1. Describe the API as OpenAPI 3.1, generated from the handlers (e.g. utoipa) rather than written by hand, so it cannot drift.
  2. Serve it at a well-known path (e.g. /api/openapi.json), behind the same auth as the API.
  3. CI fails when a route has no description.

Acceptance: the document lists every route under /api/v1 with its parameters and auth, and the #997 point 1 seeding picks it up in a local scan.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Follow-up from #997 (DAST dogfooding). **Problem:** the agent's HTTP API (`compliance-agent/src/api`) has no machine-readable description. DAST seeds API endpoints from an OpenAPI document (#997 point 1), so a scan of our own agent cannot see its routes. Integrators also have nothing to generate clients from. **Change:** 1. Describe the API as OpenAPI 3.1, generated from the handlers (e.g. `utoipa`) rather than written by hand, so it cannot drift. 2. Serve it at a well-known path (e.g. `/api/openapi.json`), behind the same auth as the API. 3. CI fails when a route has no description. **Acceptance:** the document lists every route under `/api/v1` with its parameters and auth, and the #997 point 1 seeding picks it up in a local scan. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: platform/pruefwerk#1006