fix(manage-server): widen TRITON_MANAGE_TRUSTED_PROXY_CIDRS warning beyond --no-tls (triton#1293) #42

Merged
amiryahaya merged 1 commit from fix/1293-trusted-proxy-cidr-warning-scope into main 2026-10-14 20:59:34 +02:00
Owner

Syncs the fix for triton issue #1293: install.sh's TRITON_MANAGE_TRUSTED_PROXY_CIDRS warning only fired under --no-tls, missing the plain-Docker-published-port topology entirely (no reverse proxy, --no-tls never passed — exactly the deployment #1293's own report used). The warning now fires whenever the CIDR list is unset, regardless of TLS topology; the Secure-cookie/HSTS sub-warning still only appears under --no-tls, since that control genuinely doesn't degrade when the app terminates its own TLS.

upgrade.sh gets the equivalent check (it had none before). env.template's comment corrected to match.

See triton#1293 and its companion PR for the full rationale (including the empirical finding that the underlying rate-limiter lockout was never a literal single global bucket — it's genuinely per-(email, IP), degrading toward per-account-only once the IP collapses, not "everyone locked by one failure").

🤖 Generated with Claude Code

Syncs the fix for `triton` issue #1293: `install.sh`'s `TRITON_MANAGE_TRUSTED_PROXY_CIDRS` warning only fired under `--no-tls`, missing the plain-Docker-published-port topology entirely (no reverse proxy, `--no-tls` never passed — exactly the deployment #1293's own report used). The warning now fires whenever the CIDR list is unset, regardless of TLS topology; the Secure-cookie/HSTS sub-warning still only appears under `--no-tls`, since that control genuinely doesn't degrade when the app terminates its own TLS. `upgrade.sh` gets the equivalent check (it had none before). `env.template`'s comment corrected to match. See triton#1293 and its companion PR for the full rationale (including the empirical finding that the underlying rate-limiter lockout was never a literal single global bucket — it's genuinely per-`(email, IP)`, degrading toward per-account-only once the IP collapses, not "everyone locked by one failure"). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
install.sh's missing-config warning only fired under --no-tls
(TRITON_MANAGE_DISABLE_TLS=true), missing the plain-published-port
topology entirely -- Docker Compose, no reverse proxy, --no-tls never
passed. Docker's own port-publishing/NAT layer collapses every real
external client's address the same way a reverse proxy would,
regardless of TLS topology, so the missing-config detection must not
be --no-tls-only even though the Secure-cookie/HSTS sub-warning
genuinely only applies under --no-tls (the app terminates its own TLS
otherwise, so that control doesn't degrade).

upgrade.sh gets the equivalent check (it previously had none at all),
reading TRITON_MANAGE_DISABLE_TLS back from .env to decide whether the
TLS sub-warning applies, so an upgrade on an install predating this
check still gets warned.

env.template's TRITON_MANAGE_TRUSTED_PROXY_CIDRS comment corrected to
match -- it previously framed the variable as relevant only to path B
(reverse-proxy-terminates-TLS), but the rate-limiter degradation
applies under every TLS path.

Mirrors triton#1293's fix (synced per CLAUDE.md's installer-script
convention).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
primatekuntech/triton-install!42
No description provided.