Skip to content

app/: production refuses to boot without GitHub, Stripe or Postmark configured (sc-8900) - #113

Open
ndbroadbent wants to merge 2 commits into
mainfrom
app-github-boot-check
Open

ndbroadbent wants to merge 2 commits into
mainfrom
app-github-boot-check

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

After the cutover (sc-8900), production came up with GitHub unset everywhere. The new manifests read the visualci-github Secret by the ExternalSecret's lowercase data keys, with optional: true, so all five settings were empty. The sign-in page offered no forge, checks and pull request comments couldn't reach GitHub, and nothing said why. Stripe's key, its webhook secret and Postmark's token had the same mistake (talira infra's audit). talira infra fixed all eight. This makes the same mistake stop the boot instead.

  • forge::github_app::check, run at boot after the other production checks: in production, all of GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET (sign-in), GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY_BASE64 and GITHUB_WEBHOOK_SECRET (the App: checks, comments, the webhook) must be set and not blank. The error names each one that's missing. Outside production nothing changes: development and tests run without GitHub.
  • billing::check also needs STRIPE_SECRET_KEY and STRIPE_WEBHOOK_SECRET in production (it already refused a test key), and notify::postmark::check needs POSTMARK_SERVER_TOKEN. Without it every email would wait in the outbox for good.
  • tests/hosts.rs: production_needs_github_configured covers two cases. It boots with two settings blank, as the cutover had them, and checks the boot is refused and names both. It then boots with all five and checks that /auth/providers offers GitHub. Each Stripe and Postmark setting, left blank, refuses the boot and is named. The production test app now sets the five settings. One stale comment is corrected (dev-login's POST is a 405).

The infra side, dropping optional: true from these secretKeyRefs, goes to talira infra.

Ran on a build-pool box with a throwaway Postgres 17: fmt, clippy -D warnings, hosts (9), sign_in (17), billing (8) and emails (4) all pass. talira infra confirms every key is set in production and optional: true is gone, so this is safe to deploy after the cutover's step 9.

… the OAuth application and the App, all five settings, named when missing
@ndbroadbent ndbroadbent changed the title app/: production refuses to boot without GitHub configured (sc-8900) app/: production refuses to boot without GitHub, Stripe or Postmark configured (sc-8900) Dec 3, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant