Default admin password is hard-coded in the repo and provisioned into production #24
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#24
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?
celilo/scripts/setup-web.tsprovisions the default admin account with a literal password:This account exists in production, is in
lunacycle-admins, and its password is readable by anyone with repo access.This is live, not theoretical. While investigating #20 I needed a working OIDC login to verify the fix end to end, could not read the
smoketest_bot_passwordmodule secret, and simply logged in aslunacycle_adminwith the value from this file. Production authentik issued a valid access token withgroups: ["lunacycle-admins"]. That was convenient for verification and is precisely the problem.Contrast with the sibling account provisioned twenty lines below:
smoketest_botcorrectly reads its password fromsecrets.smoketest_bot_passwordand throws if unset. The admin account should work the same way.Suggested fix
lunacycle_admin_passwordsecret inmanifest.ymlalongsidesmoketest_bot_password, and fail the install if it's unset — matching the bot's existing pattern.Item 2 is the urgent part and is independent of the code change.
Note this also affects any other deployment of this module — the value is the same everywhere it has ever been installed.