Require a shared password to access transcript administration #146
Loading…
Reference in a new issue
No description provided.
Delete branch "mike-bot/admin-login"
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?
All transcript administration routes require a shared admin passphrase. Editors return to the requested admin page after logging in; unauthenticated edits, imports, and deletes receive
401. If an editor is logged out, htmx takes them back to login without replaying the request. Public transcript pages and downloads remain accessible without logging in.The server validates the passphrase at startup and on login, using the same rules in both places. It requires 1–100 Unicode code points in valid UTF-8, rejects NUL, and does not change the supplied text. The server requires an explicitly configured authenticator.
Admin logins survive deploys and restarts as long as the passphrase stays the same. The server imposes no login timeout and renews the
sharedSecretcookie on page loads, subject to browser limits. Logging out clears that browser’s cookie; changing the passphrase invalidates all existing logins.For local development,
dev-scripts/servesets the admin passphrase tosomepassword.Before merging: Set a strong, randomly generated
ADMIN_PASSWORDas a Fly app secret. The app will not start without a valid passphrase.Require a shared password to access transcript administrationto WIP: Require a shared password to access transcript administrationWIP: Require a shared password to access transcript administrationto Require a shared password to access transcript administration05208caef33a7e379808