Repository navigation
Guard deploys against an expired or revoked Coolify API token - #538
Merged
Merged
Conversation
added 3 commits
November 21, 2026 00:25
The shared Coolify token expired on 2026-11-20 22:12 UTC (30-day expiry) and run 44830025858 died mid-deploy with a bare curl 401. The deploy now checks the token first and names the cause; a daily workflow fails when Coolify rejects the token or its recorded expiry is within 30 days. The rotation runbook documents the per-consumer scoped tokens.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Run 44830025858 failed at "Point staging at the pushed release" with a Coolify 401. Cause: the only Coolify API token (
agent-setup-2026-10-22) was minted with a 30-day expiry and expired at 2026-11-20 22:12:50 UTC. Nothing revoked it.Already done outside this PR: new per-consumer scoped tokens for website and CMP (1-year expiry), stored in the
coolify-stagingGitHub env secrets and DataOps (coolify.gha-website-deploy,coolify.gha-cmp-deploy). Also set the env variableCOOLIFY_TOKEN_EXPIRES_AT=2027-11-20.This PR:
deploy/coolify_token.py: checks that the token authenticates, plus an optional expiry-window check.deploy-coolify.yml: runs the check before the first Coolify call, so a dead token fails with its cause and the runbook path.coolify-token-check.yml: daily check that fails on a rejected token or an expiry within 30 days._docs/runbooks/coolify-api-token.md: token inventory, the incident, and how to rotate.ci/tests/test_coolify_token_guard.py.Hub intake cfedb168.