You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Gateway routes send keys and study state to any URL set in .env.local #88
From a read-only security review of triage round 3. Read from code; not exercised against a live endpoint.
examples/ai-gateway/paced_routes.py reads the endpoint for routes 3 to 5 from AI_GATEWAY_ROUTE_N_SYSTEMONE_URL in .env.local, checks the model name, then sends Authorization: Bearer <key> and the study state to that URL. The host is never checked, and a plain http:// URL is accepted. A copied or shared .env.local pointing at a host the operator does not control would receive the route key and the inputs. AGENTS.md says not to send teacher or study examples to unapproved endpoints and to keep credentials out of requests to non-pinned hosts.
Proposed fix, for a decision because it changes live tooling for the benchmark worker: require https, reject userinfo, query, and fragment, and check the host against an allowlist taken from .env.example. A stricter option is to pin the exact URLs in code. Either could stop a worker whose real .env.local uses a different host, so check that file first.
Related and lower severity: report_activation.py runs PowerShell with -ExecutionPolicy Bypass on a repo-local script, and notify.ps1 writes a persistent registry key (both already documented in the README).
Closed by #98, squash-merged as 3859256. Gateway routes are now pinned to exact HTTPS URLs; this endpoint policy was owner-approved on 2026-11-12. The URL is checked before any key is loaded, before the client is built, and on every request. Redirects are refused, and errors never echo the URL.
Validation: two fresh-context reviews, both REVIEW CLEAN (round 2 on head edbc82d). 10/10 hosted checks passed on that head. Locally: 737 passed, 79 skipped, ruff clean. All tests used fake keys and local MockTransport only, and no provider requests were made.
Not executed: no operator .env.local exists on the coordinator machine, so no live route hosts were compared with the pins (the host names were not checked either). Before restarting a worker, confirm that routes 3-5 in .env.local use exactly the URLs in examples/ai-gateway/README.md. A worker configured with any other host now fails at startup, before it sends a credential.
The lower-severity items in this issue, report_activation.py running PowerShell with -ExecutionPolicy Bypass and notify.ps1 writing a persistent registry key, are already documented in the README and were not changed here.
Activity
Record approved gateway endpoint policy and changelog entry
Validate gateway destinations before credentialed dispatch (#98)
CompleteDotTech commentedon Nov 13, 2026
Closed by #98, squash-merged as 3859256. Gateway routes are now pinned to exact HTTPS URLs; this endpoint policy was owner-approved on 2026-11-12. The URL is checked before any key is loaded, before the client is built, and on every request. Redirects are refused, and errors never echo the URL.
Validation: two fresh-context reviews, both REVIEW CLEAN (round 2 on head edbc82d). 10/10 hosted checks passed on that head. Locally: 737 passed, 79 skipped, ruff clean. All tests used fake keys and local MockTransport only, and no provider requests were made.
Not executed: no operator
.env.localexists on the coordinator machine, so no live route hosts were compared with the pins (the host names were not checked either). Before restarting a worker, confirm that routes 3-5 in.env.localuse exactly the URLs inexamples/ai-gateway/README.md. A worker configured with any other host now fails at startup, before it sends a credential.The lower-severity items in this issue,
report_activation.pyrunning PowerShell with-ExecutionPolicy Bypassandnotify.ps1writing a persistent registry key, are already documented in the README and were not changed here.