fix(manage-server): pass TRITON_MANAGE_DISABLE_TLS through to the container #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
primatekuntech/triton-install!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-manageserver-disable-tls-passthrough"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Sync from the
tritonsource-of-truth repo'sscripts/deploy/manage-server/compose.yamlfix — this is the distribution copy served viacurl | bash, and CLAUDE.md's dual-maintenance rule requires keeping them in sync.env.templatedefinesTRITON_MANAGE_DISABLE_TLSandinstall.sh --no-tlscorrectly writesTRITON_MANAGE_DISABLE_TLS=trueinto.env, butcompose.yaml'smanage-serverservice never referenced${TRITON_MANAGE_DISABLE_TLS}in itsenvironment:block — the value silently never reached the container, which fell back to its Go zero-value (DisableTLS=false).Symptom: after completing the setup wizard, the server's own auto-TLS-restart logic (
scheduleTLSRestart) checksDisableTLS, sees it false, and restarts to auto-generate a self-signed cert and switch the admin listener to HTTPS — exactly what--no-tlswas supposed to prevent. Any reverse proxy (Caddy, nginx) configured to proxy plain HTTP per--no-tls's own documented contract then gets400/"client sent an HTTP request to an HTTPS server" from what is now a TLS-only backend.Test plan
--no-tlsinstall behind Caddy: before the fix, plain HTTP to the admin listener returned400; after adding the env var and recreating the container, the server logged"WARNING: TLS is not configured on admin listener (TRITON_MANAGE_DISABLE_TLS=true); running plain HTTP"and the site was reachable again with no further restart.scripts/deploy/manage-server/compose.yamlin thetritonrepo (source of truth).