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
Webhook URL is shown as http:// behind an HTTPS proxy #3601
http://<your-domain>/api/webhooks/<token>. The copied curl worked here only because the test host also accepts plain HTTP. Where HTTP redirects to HTTPS, a plain curl -X POST does not follow the redirect and the schedule does not fire. Where it does not redirect, the secret URL goes over plain HTTP. (Both read from how curl and redirects behave; not tested on an HTTPS-only install.)
Already the case on v0.9.5 (same compose command).
Where
The URL base is request.base_url (src/backend/routers/schedules.py:673-676). docker-compose.hosted.yml:578 and docker-compose.prod.yml:511 replace the backend image's command and drop its --proxy-headers --forwarded-allow-ips=* (docker/backend/Dockerfile:222), so the backend never sees X-Forwarded-Proto. Same cause as #2907 (MCP URL advertised as http). It likely also makes every visitor share the proxy's IP for per-IP rate limits (not verified).
Acceptance criteria
Behind an HTTPS proxy the Webhook URL and the curl sample start with https://.
The hosted and prod backend commands keep --proxy-headers and a forwarded-allow-ips value suited to the proxy.
Re-triaged for 1.0 (#847, row B21): P3 → P2. Every HTTPS hosted install shows the wrong URL. Correction to the body above: uvicorn already reads proxy headers, but only trusts them from 127.0.0.1, and nothing sets FORWARDED_ALLOW_IPS, so the proxy's X-Forwarded-Proto is ignored. Copying the Dockerfile's wildcard into compose is not the fix; it needs a value scoped to the proxy (see docs/security-reports/cso-2026-09-30.md, finding 16). Same at v0.9.5: release-note for 1.0, fix together with #2907.
@obasilakis, my ruling on what you asked in #3811: yes, split it. The remaining criterion moves to trinity-enterprise#873, which I've picked up. That criterion is the compose keeping --proxy-headers with a forwarded-allow-ips value scoped to the proxy. It has the same root cause, and the fix has to cover more than the webhook URL. The webhook-URL part of this issue shipped in #3811, so it's yours to close.
Activity
AndriiPasternak31 commentedon Oct 12, 2026
Re-triaged for 1.0 (#847, row B21): P3 → P2. Every HTTPS hosted install shows the wrong URL. Correction to the body above: uvicorn already reads proxy headers, but only trusts them from 127.0.0.1, and nothing sets
FORWARDED_ALLOW_IPS, so the proxy'sX-Forwarded-Protois ignored. Copying the Dockerfile's wildcard into compose is not the fix; it needs a value scoped to the proxy (seedocs/security-reports/cso-2026-09-30.md, finding 16). Same at v0.9.5: release-note for 1.0, fix together with #2907.obasilakis commentedon Oct 19, 2026
/claim
github-actions commentedon Oct 19, 2026
Claimed by @obasilakis. Label
status-in-progressadded.Next steps:
feature/3601-<short-slug>Fixes #3601fix: webhook and MCP URLs use https behind an HTTPS proxy (#3601, #2907…
AndriiPasternak31 commentedon Oct 21, 2026
@obasilakis, my ruling on what you asked in #3811: yes, split it. The remaining criterion moves to trinity-enterprise#873, which I've picked up. That criterion is the compose keeping
--proxy-headerswith aforwarded-allow-ipsvalue scoped to the proxy. It has the same root cause, and the fix has to cover more than the webhook URL. The webhook-URL part of this issue shipped in #3811, so it's yours to close.