Restore platform ownership for v2 evidence routes
This commit is contained in:
@@ -134,11 +134,14 @@ external/bootstrap surfaces that cannot participate in router registration yet (
|
||||
flows, Rekor, and static/platform bootstrap assets).
|
||||
|
||||
The local route table also carries a small set of explicit precedence rules that must stay ahead of the
|
||||
generic `^/api/v1/{service}` matcher. Platform-owned surfaces such as `/api/v1/aoc/*` and
|
||||
`/api/v1/administration/*` resolve directly to `platform`, and browser compatibility prefixes such as
|
||||
`/doctor/*` and `/scheduler/*` are segment-bound before they strip the frontdoor prefix for dispatch.
|
||||
That keeps the target services on their canonical `/api/v1/doctor/*` and `/api/v1/scheduler/*` paths
|
||||
without hijacking frontend assets like `doctor.routes-*.js` or `scheduler-ops.routes-*.js`.
|
||||
generic `^/api/v1/{service}` and `^/api/v2/{service}` matchers. Platform-owned surfaces such as
|
||||
`/api/v1/aoc/*`, `/api/v1/administration/*`, and the aggregated v2 read models
|
||||
`/api/v2/context/*`, `/api/v2/releases/*`, `/api/v2/security/*`, `/api/v2/topology/*`,
|
||||
`/api/v2/evidence/*`, and `/api/v2/integrations/*` resolve directly to `platform`. Browser
|
||||
compatibility prefixes such as `/doctor/*` and `/scheduler/*` are segment-bound before they strip the
|
||||
frontdoor prefix for dispatch. That keeps the target services on their canonical `/api/v1/doctor/*`
|
||||
and `/api/v1/scheduler/*` paths without hijacking frontend assets like `doctor.routes-*.js` or
|
||||
`scheduler-ops.routes-*.js`.
|
||||
|
||||
```bash
|
||||
# Default frontdoor route table
|
||||
|
||||
@@ -89,6 +89,7 @@
|
||||
{ "Type": "Microservice", "Path": "^/api/v2/releases(.*)", "IsRegex": true, "TranslatesTo": "http://platform.stella-ops.local/api/v2/releases$1" },
|
||||
{ "Type": "Microservice", "Path": "^/api/v2/security(.*)", "IsRegex": true, "TranslatesTo": "http://platform.stella-ops.local/api/v2/security$1" },
|
||||
{ "Type": "Microservice", "Path": "^/api/v2/topology(.*)", "IsRegex": true, "TranslatesTo": "http://platform.stella-ops.local/api/v2/topology$1" },
|
||||
{ "Type": "Microservice", "Path": "^/api/v2/evidence(.*)", "IsRegex": true, "TranslatesTo": "http://platform.stella-ops.local/api/v2/evidence$1" },
|
||||
{ "Type": "Microservice", "Path": "^/api/v2/integrations(.*)", "IsRegex": true, "TranslatesTo": "http://platform.stella-ops.local/api/v2/integrations$1" },
|
||||
|
||||
{ "Type": "Microservice", "Path": "^/api/v1/([^/]+)(.*)", "IsRegex": true, "TranslatesTo": "http://$1.stella-ops.local/api/v1/$1$2" },
|
||||
|
||||
Reference in New Issue
Block a user