smoketest_bot_token is provisioned every deploy but nothing consumes it #25
Labels
No labels
area/auth
area/backend
area/ci
area/deploy
area/e2e
area/frontend
area/shared
blocked
good-first-issue
needs-info
priority/high
priority/low
priority/medium
type/bug
type/chore
type/docs
type/feature
type/tech-debt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
celilo/lunacycle#25
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?
on_installmints a long-lived authentik API token forsmoketest_botand stores it as thesmoketest_bot_tokenhook output (celilo/scripts/setup-web.ts). Since #20, nothing in-tree reads it.It used to be what the three production smoke checks authenticated with — which was the bug in #20. It is an authentik API token (
intent: 'api'), an opaque key rather than a signed JWT, so lunacycle's own auth rejects it: the server verifies bearers withjwtVerify(token, jwks)and the SPA decodes them withjwtDecode.health_checknow performs a real OIDC login instead.I left the provisioning in place deliberately — it is a legitimate service-account credential for calling authentik's API, and removing it is a design call rather than a cleanup. There's a comment at the mint site explaining why it must not be wired back into app auth.
Decide:
on_installtimeout comment notes these round trips were already tight enough to need a bump from 60s), and a long-lived credential that exists for no reason. Also drops the stalesmoketest_bot_tokensecret from the module store.Leaning remove, but it's the operator's call.
Follow-up from #20.