Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllowedReadOnlyPath ¶
func AllowedWritePath ¶ added in v0.3.0
AllowedWritePath is the sole admission control for write methods through the dashboard proxy. It admits EXACTLY these shapes:
POST /api/v1/projects/{id}/workflow-chains/{chain_ref}/governed-intake
POST /api/v1/projects/{id}/workflow-chain-runs/{chain_run_id}/cancel
POST /api/v1/projects/{id}/workflow-chain-runs/{chain_run_id}/retry
POST /api/v1/projects/{id}/workflow-chain-runs/{chain_run_id}/retry-gitops
POST /api/v1/projects/{id}/integrations/jira/issues/{key}/ingest
DELETE /api/v1/projects/{id}/workflow-chain-runs/{chain_run_id}
where {id}, {chain_ref}/{chain_run_id}, and {key} pass segmentSafe (no traversal, no path tricks). Every other method or path — including near-misses (extra/missing segments, other POST routes, GET on these paths) — is rejected. This is the security boundary for the launcher + run lifecycle + manual Jira re-ingest: widening it is an explicit, reviewed change, never incidental.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) Client ¶ added in v0.3.4
Client returns the proxy's HTTP client (bounded timeout, no redirect). Used by Phase D's selfStatsHandler to proxy the control-tower route with the same timeout contract as the generic proxy.
func (*Proxy) UpstreamURL ¶ added in v0.3.4
UpstreamURL returns the upstream base URL as a string. Used by Phase D's selfStatsHandler to construct the forwarded request URL.