Repository navigation
OPN2: openproduct goes live on its own URLs - #8
Merged
Merged
Conversation
core, the gateway, the website and the synthetic monitor deploy stage and prod on the merge to main (and on a dispatch from Orunbase), and still only verify on pull requests. - core binds this repository's Hyperdrive: its template's wiring tokens and fixture name openproduct-hyperdrive, and each stage and prod lane resolves WIRING_OPENPRODUCT_HYPERDRIVE for both environments. It orders after Hyperdrive and the migration ladder. - Runtime secrets ride on optionalSecretEnv plus runtimeSecrets, so a key not stored yet is skipped by name. GITHUB_TOKEN stays out until the owner stores one: secrets-live would otherwise push the workflow's own token. - The gateway orders after core and the media bucket, and skips wrangler's resource provisioning, which the deploy token has no R2 permission for. - The website reads the openproduct account's workers.dev subdomain, gets its console origin per environment through subscription env, and orders after the gateway. platform.ts splits the platform's subdomain from the product's, so the gateway fallback no longer names the old account's gateway. - infra/media keeps its state on the platform, loses AWS, and is discovered. - Every self-reference names the openproduct workers.dev hosts until the prod switch (OPN3) brings back openproduct.live. Orun-Task: OPN-8 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 11, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fourth and last task of OPN2: openproduct goes live on its own URLs. This PR's merge deploys core, the gateway, the website and the synthetic monitor to stage, then prod, and creates the two R2 media buckets. On this PR, every lane only verifies.
Stage and prod each serve from the openproduct account's
workers.dev:openproduct-web-<env>.openproduct.workers.dev, the website;openproduct-gateway-<env>.openproduct.workers.dev, the API.openproduct.livecomes back at the prod switch (OPN3).Deploy order (from
orun plan, both triggers)openproduct-media→openproduct-worker(core, after Hyperdrive and the migrations) →openproduct-gateway→openproduct-web, stage before prod. The synthetic monitor deploys alongside.core (
openproduct-worker)openproduct-hyperdrive/<env>.WIRING_OPENPRODUCT_HYPERDRIVE, which OPN2: Hyperdrive and the migration ladder #7's apply published.openproduct-hyperdriveandopenproduct-db-migrate. A deploy therefore never runs ahead of the ladder it reads.The gateway
openproduct-workeredge is now enforced. It was advisory while nothing deployed. On an estate built from nothing, theCOREservice binding's target must exist first.openproduct-mediais back as an edge. A deploy that binds a missing bucket fails.skipResourceProvisioning: true.infra/mediaowns the buckets, and the brokeredworkers-deploytoken has no R2 permission.optionalSecretEnvplusruntimeSecrets, so a key not yet stored is skipped by name:LISTING_SEAM_SECRETOPENPRODUCT_AUTH_SEAM_SECRETSCREENSHOT_CAPTURE_URL/TOKENGITHUB_TOKENis deliberately left out.secrets-livereads each name from the job's environment, and CI exports the workflow's own short-livedGITHUB_TOKEN. An unseeded workspace key would therefore push that token into the Worker. It joins both lists in the change that stores it.SITE_ORIGINmoves to the website'sworkers.devhosts.The website
platform.tssplits the platform'sworkers.devsubdomain (oruncloud, for api-edge) from the product's (openproduct). Before this change, the fallback would have called the monorepo deployment's gateway.env:stage.orunbase.comon stage andapp.orunbase.comon prod. The composition has nobuildEnv.infra/media(openproduct-media)backend "http" {}.CLOUDFLARE_R2_TOKEN(r2-data, account-wide R2 Storage Write) on stage and prod.openproduct-media-<env>and its location.infra/syntheticIts
API_ORIGINandSITE_ORIGINpoint at the new hosts, with matching test expectations.Secrets stored for this merge (workspace
openproduct-live)CLOUDFLARE_API_TOKENfor prod (workers-deploy). Stage already had one.CLOUDFLARE_R2_TOKENfor stage and prod.LISTING_SEAM_SECRETandOPENPRODUCT_AUTH_SEAM_SECRET, piped over stdin and never printed.Departure from OPN2's done-when
Password sign-in moves to OPN3. The platform's identity-worker holds one
OPENPRODUCT_AUTH_SEAM_SECRET, the monorepo deployment's.Recorded in
IMPLEMENTATION-STATUS.md.Checks (local)
terraform validatepasses oninfra/media, andorun validatepasses.orun task check OPN-8: 6 changed components, all inside the contract.🤖 Generated with Claude Code