fix(gateway): route /api/v1/setup prefix to platform microservice

The exact-path rule for /api/v1/setup matched only the bare path, so
sub-paths like /api/v1/setup/sessions fell through to the generic
/api/v1/{svc}/* rule and the gateway tried to dispatch to a synthetic
"setup" microservice. Swap the exact route for a prefix-aware route
that sends /api/v1/setup* to platform, add integration/smoke coverage,
and refresh the local frontdoor config accordingly.

Closes BOOTSTRAP-001 from SPRINT_20260413_004.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
master
2026-04-14 07:54:46 +03:00
parent 44a253d485
commit 685cc3b6a1
8 changed files with 32 additions and 13 deletions

View File

@@ -23,6 +23,8 @@
"Microservice","^/api/v1/authority/quotas(.*)","http://platform.stella-ops.local/api/v1/authority/quotas$1",,
"Microservice","^/api/v1/release-control(.*)","http://platform.stella-ops.local/api/v1/release-control$1",,
"Microservice","^/api/v1/gateway/rate-limits(.*)","http://platform.stella-ops.local/api/v1/gateway/rate-limits$1",,
"ReverseProxy","^/api/v1/setup(.*)","http://platform.stella-ops.local/api/v1/setup$1",,
"ReverseProxy","^/api/v1/secret-authority(.*)","http://integrations.stella-ops.local/api/v1/secret-authority$1",,
"Microservice","^/api/v1/reachability(.*)","http://reachgraph.stella-ops.local/api/v1/reachability$1",,
"Microservice","^/api/v1/timeline(.*)","http://timelineindexer.stella-ops.local/api/v1/timeline$1",,
"Microservice","^/api/v1/audit(.*)","http://timeline.stella-ops.local/api/v1/audit$1",,
1 RouteType RoutePath RouteTarget SelectedOpenApiPath StatusCode
23 Microservice ^/api/v1/authority/quotas(.*) http://platform.stella-ops.local/api/v1/authority/quotas$1
24 Microservice ^/api/v1/release-control(.*) http://platform.stella-ops.local/api/v1/release-control$1
25 Microservice ^/api/v1/gateway/rate-limits(.*) http://platform.stella-ops.local/api/v1/gateway/rate-limits$1
26 ReverseProxy ^/api/v1/setup(.*) http://platform.stella-ops.local/api/v1/setup$1
27 ReverseProxy ^/api/v1/secret-authority(.*) http://integrations.stella-ops.local/api/v1/secret-authority$1
28 Microservice ^/api/v1/reachability(.*) http://reachgraph.stella-ops.local/api/v1/reachability$1
29 Microservice ^/api/v1/timeline(.*) http://timelineindexer.stella-ops.local/api/v1/timeline$1
30 Microservice ^/api/v1/audit(.*) http://timeline.stella-ops.local/api/v1/audit$1