fix(platform): version handshake is public
CI / Check (push) Skipped
CI / Check (pull_request) Successful in 6m1s
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped

PRODUCT_INTEGRATION_SPEC 2.0 §4.1: GET /api/v1/platform/version needs no
token; the lifecycle endpoints keep the service-token gate. Live check
with the registry's service token against pruefwerk-stage passes.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
This commit is contained in:
Sharang ParnerkarandClaude Fable 5.1 committed 2026-09-12 11:24:57 +02:00
1 parent cf08ab222d
commit fea9226d28
1 file changed
+6 -2
+6 -2
View File
@@ -140,7 +140,6 @@ pub async fn start_api_server(agent: ComplianceAgent, port: u16) -> Result<(), A
jwks: jwks_state.clone(),
};
let platform_router: Router = Router::new()
.route("/api/v1/platform/version", get(platform::version))
.route("/api/v1/platform/usage", get(platform::usage))
.route(
"/api/v1/platform/tenants/demo/reset",
@@ -174,7 +173,12 @@ pub async fn start_api_server(agent: ComplianceAgent, port: u16) -> Result<(), A
platform_state.clone(),
platform::require_platform_token,
))
.with_state(platform_state);
.with_state(platform_state.clone())
// The contract handshake is public (§4.1 /version): no token needed.
.route(
"/api/v1/platform/version",
get(platform::version).with_state(platform_state),
);
// Admin sub-router. Routes are only mounted when ADMIN_API_TOKEN is
// configured — without it, the paths don't exist at all (404 rather