No description
  • Go 55.7%
  • TypeScript 18.9%
  • JavaScript 10.4%
  • HTML 6.1%
  • Shell 4.7%
  • Other 4.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
mike-bot b4f30a299f
All checks were successful
ci/crow/push/build Pipeline was successful
Require a shared password to access transcript administration (#146)
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 `sharedSecret` cookie 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/serve` sets the admin passphrase to `somepassword`.

**Before merging:** Set a strong, randomly generated `ADMIN_PASSWORD` as a Fly app secret. The app will not start without a valid passphrase.

Co-authored-by: mike <git@openeasthampton.com>
Reviewed-on: #146
2026-11-25 20:31:53 -05:00
.crow Use Crow’s configured nixbuild.net SSH secret for deployment (#145) 2026-11-25 16:50:55 -05:00
.opencode/skills Let OpenCode fix transcript errors without rewriting speech (#119) 2026-11-22 13:27:45 -05:00
.vscode Initial commit 2026-09-07 03:24:52 +00:00
ci Use Crow’s configured nixbuild.net SSH secret for deployment (#145) 2026-11-25 16:50:55 -05:00
cmd/app Require a shared password to access transcript administration (#146) 2026-11-25 20:31:53 -05:00
dev-scripts Honor the host’s Nix build settings in the transcript build (#131) 2026-11-24 12:28:54 -05:00
e2e Require a shared password to access transcript administration (#146) 2026-11-25 20:31:53 -05:00
handlers Require a shared password to access transcript administration (#146) 2026-11-25 20:31:53 -05:00
store Save individual speaker names in the transcript editor (#114) 2026-11-25 12:10:31 -05:00
testutil Reject incomplete speakers at construction (#129) 2026-11-23 16:07:01 -05:00
transcripts Save individual speaker names in the transcript editor (#114) 2026-11-25 12:10:31 -05:00
webvtt Import transcript metadata from JSON and require segment speakers (#137) 2026-11-25 11:44:52 -05:00
.air.toml Require a shared password to access transcript administration (#146) 2026-11-25 20:31:53 -05:00
.env.example Initial commit 2026-09-07 03:24:52 +00:00
.envrc Initial commit 2026-09-07 03:24:52 +00:00
.gitignore Initial commit 2026-09-07 03:24:52 +00:00
.prettierignore Leave pnpm lockfile formatting to pnpm (#99) 2026-11-06 22:02:58 -05:00
.prettierrc Initial commit 2026-09-07 03:24:52 +00:00
.sqlfluffignore Initial commit 2026-09-07 03:24:52 +00:00
AGENTS.md Make public transcript timestamps shareable (#124) 2026-11-23 12:45:09 -05:00
CLAUDE.md Initial commit 2026-09-07 03:24:52 +00:00
docker-entrypoint Initial commit 2026-09-07 03:24:52 +00:00
eslint.config.js Lint and typecheck E2E TypeScript 2026-10-10 13:27:37 +00:00
flake.lock Run frontend tooling on Node.js 24.15.0 2026-11-07 12:27:18 -05:00
flake.nix Build and cache every package through flake checks (#93) 2026-11-07 14:17:19 -05:00
fly.toml Initial commit 2026-09-07 03:24:52 +00:00
go.mod Upgrade the SQLite driver to 0.35.3 (#90) 2026-11-07 12:59:46 -05:00
go.sum Upgrade the SQLite driver to 0.35.3 (#90) 2026-11-07 12:59:46 -05:00
litestream.yml Initial commit 2026-09-07 03:24:52 +00:00
package.json Upgrade TypeScript lint tooling to 8.68.0 (#100) 2026-11-07 13:20:51 -05:00
playwright.config.ts Use one core-aware E2E runner in local and Nix builds 2026-10-10 13:26:39 +00:00
pnpm-lock.yaml Upgrade TypeScript lint tooling to 8.68.0 (#100) 2026-11-07 13:20:51 -05:00
README.md Require a shared password to access transcript administration (#146) 2026-11-25 20:31:53 -05:00
tsconfig.json Lint and typecheck E2E TypeScript 2026-10-10 13:27:37 +00:00

Open Easthampton Transcripts

CrowCI status badge

Open Easthampton Transcripts publishes Easthampton meeting transcripts.

Development

Run dev-scripts/serve and use somepassword to sign in to the local admin pages.

Deployment

Fly.io

Before deploying, set ADMIN_PASSWORD as a Fly app secret. Use a strong, randomly generated password of at most 100 Unicode code points; the app will not start if the password is missing or invalid. Admin logins survive restarts and deploys as long as the password stays the same. The server does not expire logins and renews the cookie when you load a page. Logging out clears that browser’s cookie. Change ADMIN_PASSWORD to invalidate all existing logins.

Crow deploys to Fly.io after tests pass on a push to the default branch and tags the image with the full commit SHA. Configure FLY_API_TOKEN as a repository secret restricted to push events, using a Fly deploy token scoped to the app in fly.toml. In Crow's repository settings, enable Cancel previous pipelines for push events to stop superseded runs.

To deploy manually to Fly.io, replace fly.toml with your own, and provide a Fly API token:

FLY_API_TOKEN='your-api-token' nix run .#deploy-to-fly

The deploy targets the app named in fly.toml. Set FLY_APP to deploy to a differently-named app without editing fly.toml.

Manual deploys tag the image with the current commit's short SHA (git rev-parse --short HEAD). Set DEPLOY_IMAGE_TAG to override it.