Skip to content

ops(deploy): placeholder substrate config values; substrate deploy applies its overlay - #202

Merged
debuggingfuture merged 1 commit into
mainfrom
ops/substrate-overlay
Oct 17, 2026
Merged

debuggingfuture merged 1 commit into
mainfrom
ops/substrate-overlay

Conversation

@debuggingfuture

Copy link
Copy Markdown
Member

The substrate worker's committed config now holds placeholders for account-specific values, matching the dispatcher config. Every org that deploys this repo supplies its own values through an operator overlay.

Problem. apps/substrate/wrangler.jsonc committed one deployment's database id and comments describing that account. Several tests, doc comments and docs used that deployment's hostnames and account id as examples. For a BYOC repo, those values mean nothing to any other org that deploys it.

Take.

  • apps/substrate/wrangler.jsonc: the database id is a zero UUID marked operator overlay. The header explains the overlay and the local wrangler.overlay.local.jsonc convention, which .gitignore already covers.
  • deploy.yml: the substrate job decodes its overlay secret over the config before migrations and deploy. It fails when the secret is missing, so placeholders never deploy. This matches the dispatcher deploy job. The ci job's dry run still runs against the committed placeholders.
  • Tests and doc comments use example.com hosts and a fake account id. AGENTS.md, apps/docs/README.md and docs.yml refer to each custom domain through the wrangler.jsonc that routes it.

Verification. pnpm lint and pnpm typecheck pass. The six touched test files pass (157 tests). wrangler deploy --dry-run passes for both workers, against the placeholder configs and against the overlays.

…plies its overlay

The committed substrate wrangler.jsonc carries a placeholder database id. The
substrate deploy job writes its operator overlay over the file from a repository
secret before migrations and deploy, the same overwrite the dispatcher deploy
job performs, and fails when the secret is absent.

Tests, doc comments and docs use example hosts and a fake account id instead
of deployment-specific values. AGENTS.md and the docs workflow point at the
wrangler configs that carry each custom domain.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@debuggingfuture
debuggingfuture merged commit b4a95d3 into main Oct 17, 2026
2 of 5 checks passed
@debuggingfuture
debuggingfuture deleted the ops/substrate-overlay branch October 17, 2026 09:01
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