Skip to content

feat(krater): turn on krater production - #74

Merged
jaspermayone merged 3 commits into
mainfrom
feat-krater-production-on
Nov 6, 2026
Merged

jaspermayone merged 3 commits into
mainfrom
feat-krater-production-on

Conversation

@jaspermayone

Copy link
Copy Markdown
Member

Turns on Krater production: enable = true in hosts/weft/krater-production.nix. This is step 3 of the "Turn on production" checklist in hosts/weft/krater.nix.

Merge this after #73. #73 has the first-build rev, the Slack channel ids and the production secrets, with KRATER_WEAVE_CLIENT_SECRET set.

The switch changes three hosts together:

  • skein: krater moves from stagingOnlyApps to apps, so skein creates the krater role and schema. The password comes from central-prod-krater.age.
  • weft: the krater-prod-* units, the krater-prod nginx vhosts and the krater-env secret.
  • alastor: the krater-weft and krater-storage-weft routes, after the patchwork-infra bump in jaspermayone/infra.

tests/krater-weft.nix assumed that production was off. Its "by default" checks now compare against the switch file, and the "no production route" greps use an edge with the switch forced off. The test passes with either value of the switch.

flowchart LR
  A["merge #73"] --> B["merge this PR"]
  T["tailnet grant: jaspermayone/infra#78, applied"] --> W
  B --> S["deploy skein: krater role"]
  S --> W["deploy weft: activation waits for krater-prod-build"]
  W --> E["bump patchwork-infra, deploy alastor"]
  E --> H["/healthz and /healthz/worker return 200"]
Loading

Rollout notes

  • Apply the tailnet grant (jaspermayone/infra#78) before you deploy weft. If you do not, krater-prod-web waits for the database for 10 minutes, then fails.
  • krater-prod-web is wanted by multi-user.target and requires krater-prod-build. The first weft activation therefore runs the full image build, which takes several minutes. Run the deploy from a session that stays open.

Checks

@jaspermayone
jaspermayone requested a review from a team November 6, 2026 18:55
@jaspermayone
jaspermayone merged commit 8762928 into main Nov 6, 2026
1 check passed
@jaspermayone
jaspermayone deleted the feat-krater-production-on branch November 6, 2026 19:39
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