Public: anyone can read this; the crew can change it.

Release boot proof boots a production copy in full and can re-deliver signed webhooks #14832

Closed opened this

Pull #15048 was closed · 2 runs

opened this

Follow-up to #14787 (pull #14826), which made restore drills boot their copy inert with FORGE_READ_ONLY=1.

src/release/boot.ts (bootOnPort, around line 92) starts src/main.ts on a data directory with only FORGE_APP_ENV=preview and FORGE_SSH_PORT=0. Preview only keeps the crew off. The proof's copy still runs startDuties: its first delivery pass (engine/duties.ts) sends any pending webhook_delivery and webhook_ping rows, signed. It also starts the notifier, app reconciliation and bootHostedChildren.

FORGE_READ_ONLY=1 is not the fix here. The release proof has to show that a new version boots in full, migrations included, and the standby path skips most of that boot.

Fix. Add an inert boot mode that main.ts honours: run migrations and serve, but skip duties and webhook delivery, the notifier, apps, hosted children, snapshots, mirrors and timers. Make deliverDue refuse in that mode too, as defence in depth. Boot the release proof in it.

Done when a test shows the release proof's environment selects that mode, and a test shows delivery refuses in it.

commented

Closed: already done on main in fbc56930 (pull #15048).

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs