install.sh never generates TRITON_MANAGE_JWT_SIGNING_KEY — fresh installs crash-loop #15
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#15
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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
Fresh
manage-serverinstalls crash-loop on first boot with:Root cause (two separate bugs)
manage-server/env.template/install.shnever generate a JWT signing key.install.shgeneratesTRITON_VAULT_KEY(openssl rand -hex 32) andTRITON_MANAGE_WORKER_KEY(openssl rand -hex 16), but there is no equivalent step forTRITON_MANAGE_JWT_SIGNING_KEY, and it isn't even present as a placeholder inenv.template.manage-server/compose.yamldoesn't pass the var through even if you set it manually.The
manage-server.environmentblock explicitly whitelists every variable forwarded into the container.TRITON_MANAGE_JWT_SIGNING_KEYis missing from that list, so even after adding it to.envby hand, the container still doesn't see it until the var is also added tocompose.yaml.Repro
Containers come up,
manage-servercrash-loops indefinitely, health check on:8082times out.Workaround used
...and add
TRITON_MANAGE_JWT_SIGNING_KEY: ${TRITON_MANAGE_JWT_SIGNING_KEY}tocompose.yaml'smanage-server.environmentblock, thendocker compose up -d --force-recreate manage-server.Fix
PR incoming: generate the key in
install.shalongside the vault/worker keys, add the placeholder toenv.template, and add the var tocompose.yaml's environment whitelist.