Commit Graph
4 Commits
Author SHA1 Message Date
Sharang ParnerkarandClaude Opus 5.5 c5f0044094 feat(api): the agent serves an OpenAPI description, starting with DAST (#1006)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m28s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 22m16s
The agent's API had no machine-readable description, so DAST could not
seed a scan of it from a spec (#997) and integrators had nothing to
generate a client from.

- utoipa 6 + utoipa-axum 0.3: `build_router` registers described routes
  with `routes!`, which takes each route's path, method, parameters and
  body from the handler's `#[utoipa::path]`, so the two cannot drift.
- `GET /api/v1/openapi.json` serves the document (OpenAPI 3.1). It sits
  under the API prefix, so the customer authentication covers it, and it
  is one of the paths the DAST spec parser tries and not one the API
  fuzzer flags as exposed.
- A bearer scheme, set on every operation except the public ones: the
  DAST spec parser reads operation-level `security` only.
- Described so far: the six DAST routes, with path and pagination
  parameters and the add-target body (core types stay opaque, so core
  needs no schema derive yet). Response bodies are not described yet.
- CI gate: a test fails when a plain route call in `routes.rs` is not in
  `undescribed_routes.txt`, or the file names a route that is gone. The
  list (101 paths) only shrinks; describing a route deletes its line.
- Docs: the description in the API-keys guide.

Tests:
- unit: the gate; the DAST operations carry bearer security, `{id}` path
  and `page`/`limit` query parameters and a JSON body; OpenAPI 3.1; the
  spec path is not a public one;
- integration: the running agent serves the document as JSON.

Part 1 of #1006. API keys cannot read the document yet: no key scope
covers it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
2026-11-16 13:46:45 +01:00
sharangandClaude Opus 5.5 29e38c8b80 feat(dashboard): MCP-Tokens in the sidebar, also in source-only deployments (#969)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 3s
CI / Deploy MCP (push) Skipped
CI / Deploy Docs (push) Successful in 1m11s
CI / Deploy Dashboard (push) Successful in 7m0s
CI / Deploy Agent (push) Successful in 9m19s
The only link to the MCP tokens was the overview's MCP-Server card, which a
source-only deployment (prod) hides with the runtime sections. The MCP
endpoint serves such a deployment all the same, so there a token could only
be created by typing /mcp-tokens. The sidebar now has an MCP-Tokens entry
that source-only mode leaves enabled; the overview card is unchanged.

The docs name the entry instead of the bare URL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 14:10:25 +00:00
sharangandClaude Opus 5.5 589c3b440b docs(mcp): how to get an MCP token and connect a client (#968)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Docs (push) Successful in 1m14s
The MCP endpoint accepts only MCP tokens (mcpt_…) from the MCP-Tokens page,
which a signed-in person creates; the docs said to use the MCP server
entry's access token, which the endpoint refuses, and gave a wrong URL.
Portal API keys neither work at the endpoint nor can create MCP tokens.

- Step by step: create the token at /mcp-tokens (also reachable in
  source-only deployments, where the overview card is hidden), add the
  server with the real endpoint (/mcp/mcp) to Claude Code or a JSON-configured
  client, check /mcp/health, and read the three 401 answers.
- API-Schlüssel: a note that keys are not for MCP.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:48:58 +00:00
sharang 07ba0d6665 feat(api): the customer API accepts portal-issued API keys (#564)
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m23s
CI / Deploy Agent (push) Successful in 5m32s
CI / Deploy Dashboard (push) Successful in 3m53s
CI / Deploy MCP (push) Successful in 3m1s
2026-10-13 22:22:21 +00:00