Repository navigation
docs(design): a service is public only through a declared public URL, whose hostname resolve() computes per environment - #386
Conversation
…on (ADR-0060 to ADR-0062) ADR-0060: public HTTP traffic reaches a service only through an ingress(), a driver on an exposed HTTP port. ADR-0061: a module declares its input as one schema, as a compute service does; the root may declare input. ADR-0062: per-stage configuration comes from providers named in the composer section; every stage has a name. Adds the Prisma Cloud ingress doc and amendment notes on the ADRs, index and glossary entries these change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
✅ Gizmo reviewed 5454abc — posted 0 inline comment(s) this pass. Open findings: none Change walkthroughThe reviewed delta since the last pass moves the proposal's platform-side documents out of the public docs tree and re-points every reference to them. The five platform design documents that had been placed under Link integrity. All updated references were verified to resolve at the new depth: the ADR links in the renamed README and composer-to-platform docs use the correct four-level climb to Fit with the codebase. The relocation follows the repo's Drive conventions — project-local design material lives under |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
There was a problem hiding this comment.
New findings: 🟡 4 minor · trace
Findings outside the diff
-
🟡 Minor · consistency docs/design/10-domains/config-params.md — Domain docs still present the module params/secrets slots and stage-free dev loop that ADR-0061/0062 remove, with no amendment note
ADR-0061 removes the moduleparams/paramNeed()andsecrets/secret()slots and ADR-0062 gives local dev a named stage, but the domain docs that teach those surfaces as current design are untouched and now contradict the new ADRs with no amendment pointer: -
config-params.md walks through binding "down to a child through a nameless
paramNeed()slot" and showsmodule('auth', { secrets: { signingKey: secret() } }, ({ secrets, provision }) => …)(lines 218–242) — exactly the shape ADR-0061 deletes. -
local-dev.md states "Stages do not apply — a working directory has …", the sentence ADR-0062's consequences explicitly retire ("Local dev no longer says 'Stages do not apply'").
-
core-model.md documents the secret as "its own forwardable slot, declared with secret()" for modules as well as services.
AGENTS.md directs contributors to read these domain docs before any design discussion, and the PR itself establishes the convention for handling superseded guidance — an "Amended by ADR-XXXX" note under the title, applied to all nine amended ADRs. Leaving the 10-domains docs without even a pointer means a reader following that process lands on prose that contradicts the recorded decision. The same gap applies to the shipped-module docs auth-module.md and email-module.md, whose params/secrets bindings ADR-0061 says must migrate.
Recommended fix: Add the same one-line amendment note used on the ADRs to the top of config-params.md, local-dev.md and core-model.md (e.g. "Amended by ADR-0061: module paramNeed()/secret() slots are removed; a module declares one input schema." and "Amended by ADR-0062: local dev runs at a named stage, dev by default."), or defer the ADR amendment notes until the domain docs are updated in the same change.
…016 as amended Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ny input ADR-0024's "the stage never appears in the authored topology" becomes what it protects: the graph's structure is the same whatever inputs Composer is given. Code may select values per stage, resolved after the graph is built with provision disabled, never structure. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ition accurate Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…062 rewritten) Applies the team discussion: the node is publicUrl() with two explicit strategies on it; a per-environment or derived value is computed with resolve(deps, fn) after the graph is built; "stage" becomes "environment"; config adapters bring in outside values but no longer carry the URL story; the platform gains Public URL and Domain records. Adds the public URL domain map and scenarios as companion drafts. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ftover stage wording Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…stage-config # Conflicts: # docs/design/90-decisions/ADR-0024-a-stage-is-a-deploy-time-environment-resolved-to-project-and-branch.md # docs/design/90-decisions/ADR-0041-local-dev-runs-the-deploy-pipeline-against-local-providers.md # docs/design/90-decisions/README.md
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…and and local-dev warning Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…cepted; drop the DNS-label row Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Spec with non-goals, place in the larger world, cross-cutting requirements, transitional-shape constraints and a verifiable project DoD; design notes for the execution decisions the ADRs don't carry; the plan cut to eight slices with owners. Module input and config adapters become a follow-on project, recorded in .drive/deferred.md. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…stage-config # Conflicts: # .drive/deferred.md # docs/design/90-decisions/README.md
…eates the claim on verification; DNS adapter is a follow-on Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
There was a problem hiding this comment.
New findings: 🟠 2 major · 🟡 1 minor · trace
Findings outside the diff
- 🟠 Major · consistency docs/design/05-prisma-cloud/public-urls/README.md — README's first-deploy walkthrough still sends the user to the Console's Domains page, which the settled claim flow replaced
This delta settles the claim flow in design-notes.md §7: for a pending hostname the deploy output prints every record still to publish, with name, type and value, not a Console link; the platform creates the verified claim itself once it finds the TXT record in DNS. platform-routing-urls.md:125 moves unverified hostnames to their service pages ("not here" on the workspace Domains page), and composer-to-platform.md:37 says the record shows the TXT to publish and nothing more is asked of the user. The README — the document the PR description says states the whole proposal in one read — still walks the old flow in its first-deploy scenario: the output "links to the workspace's Domains page, where the user claims it and gets the TXT record". A reader following the README alone implements a Console-link-and-claim-page flow the rest of the proposal removed. The same leftover phrasing appears in platform-routing-urls.md:100 ("deploy first and follow the row's setup link"), covered by an earlier finding.
Recommended fix: Rewrite the first-deploy scenario sentence in README.md to the settled flow: for an unclaimed hostname the output says ownership is not verified and prints the records to publish — the ownership TXT record and the CNAME, with name, type and value — and once the TXT record is in DNS the platform creates the claim, verified, with no Console step.
…k; refresh the platform copy Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
There was a problem hiding this comment.
New findings: 🟠 2 major · 🟡 1 minor · trace
Findings outside the diff
- 🟠 Major · consistency docs/design/05-prisma-cloud/public-urls/README.md — Deploy output now specified without a Console link, but scenarios.md and the folder README still promise one
This pass's edits to the deploy-output contract removed the Console link from the exhaustiveDeployedEntityenumeration in composer-to-platform.md:51 and ADR-0060:78, but the proposal's scenario and summary documents — which this delta did not touch — still state the deploy output prints it: scenarios.md:51 ("The deploy output … prints the Console link to finish it") and README.md:213 ("gives the CNAME to add and the Console link"). The README is the document the PR presents as stating the whole proposal in one read, and the scenarios are the referenced user scenarios, so an implementer of the CLI output gets two different contracts for the sameDeployedEntity.
Recommended fix: Align the untouched documents with whichever contract is intended: update scenarios.md line 51 and README.md line 213 to describe the deploy output without the Console link (records to publish while a condition is unmet, otherwise the live address), or restore "and the Console link" to the enumerations in composer-to-platform.md and ADR-0060.
… Console link; refresh the platform copy Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
…ose-out The public design documentation under docs/design/ receives material only when a project closes and its design is final. The proposal, the domain map, the scenarios and the copies of the platform design belong to the project while it is open. Co-Authored-By: Claude Fable 5.1 <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
An author writes which services receive traffic from the internet, and at which hostname, in the module code. The hostname can differ per environment without the module's structure changing:
This PR records the three decisions that make this possible. It is docs only; nothing is implemented.
Start with
.drive/projects/public-urls/design/README.md. The project folder holds every document of the proposal, including copies of the platform design docs; its README states the whole thing in one read. Nothing of the proposal is underdocs/design/yet: the public design documentation receives material when the project closes and the design is final. The decision records are the exception, because a decision is recorded when it is made.The decisions
1. Traffic from the internet reaches a service only through a public URL the author declares. Today every compute service is reachable on a generated address, and a custom domain can only be attached by hand after the deploy. Nothing in the code says which services are meant to be public. The decision adds a
publicUrl({ name, url, target })node. It points at the HTTP connection a service exposes; the service knows nothing about it, the way acronpoints at the worker it calls.urlis either a hostname the author names (a plain string) orpublicUrl.prismaBuild(), meaning the service is public at its prisma.build URL, the hostname the platform gives every service. One hostname per node. A reusable module decides which of its services can be public by exposing their HTTP connections, and the app decides which are. Every service keeps its platform hostname for now, so a service with nopublicUrl()is still reachable; the deploy output says so, and making that hostname opt-in is the platform's later step.2. A value that differs per environment is computed with
resolve(). The example above needs one value, the hostname, to differ per environment while the graph stays the same.resolve(dependencies, fn)names what the value depends on and returns aResolvedValuethat is accepted anywhere a value of that type is.fnreceives the dependencies' values as one tuple, the shape of Vue'swatchand Solid'son. A dependency is a deploy-time fact such asenvironment.name, a module input, or anotherResolvedValue; the explicit list is what lets Composer order the resolve functions and detect cycles, since aResolvedValueis opaque until it runs. The module body receivesenvironmentas a set of opaque references, so it can list a fact as a dependency but cannot branch on it. Composer builds the graph with everyresolve()function unexecuted, disablesprovision, then runs the functions for the environment being deployed and validates the results. The structure rule is therefore stated in terms of inputs: the graph is the same whatever inputs Composer is given.Every environment has a name and none is special.
prisma deploydefaults--environmenttoproductionandprisma devtodev;destroyhas no default. On Prisma Cloud,productionresolves to the Project's default Branch.3. A module declares its input the way a compute service does, and the root's input comes from config adapters. For
resolve()to depend on configuration, a module needs a declared input. A module now declares all incoming configuration as one Standard Schema,input, exactly ascompute()does, with secret fields typedsecretString(). This replaces the module-levelparams,paramNeed(),secretsandsecret()slots. The body receives one opaque reference per key, which it can only pass on. The root module may declareinputtoo; since nothing provisions the root, the deploy binds it from config adapters named in thecomposersection ofprisma.config.ts, such asconfig: [dotenv()]. Each adapter receives the environment's name and returns a value; the merged value is validated by the root's schema. An adapter supplies a value, andresolve()decides what to do with it. Application settings still do not live in the config file.The platform side
.drive/projects/public-urls/design/composer-to-platform.mddescribes what Prisma Cloud must provide: a RoutingUrl record for every custom hostname a service answers at, which can be created before its DNS exists and survives its service being replaced, and a DomainOwnership claim for every domain the workspace has verified. A named hostname becomes one record; a prisma.build URL creates nothing. Composer never creates a claim, because a claim belongs to the workspace and outlives any one project or environment: the record reports the TXT record that proves ownership, the deploy output prints it with the CNAME, and the platform creates the claim, verified, when it finds the record in DNS. Publishing those records through a DNS adapter is a recorded follow-on. That design is proposed in prisma/pdp-control-plane#5795. Two companion drafts sit beside it: a map of which record lives where across Composer, Prisma Cloud and Foundry, and thirteen user scenarios with the code, topology and platform records for each.What is in the PR
resolve()and config adapters), and their index entries.prisma deploy) and on the domain docs those describe.publicUrl()node..drive/projects/public-urls/with its spec, plan, design notes, the proposal folderdesign/(overview, Composer-to-platform, domain map, scenarios, step-two migration scenarios, and copies of the two platform design documents), the first slice's spec and plan, plus deferred entries for the module-input work, a pre-existing Branch-name collision, and publishing DNS through an adapter.Relation to other PRs
This replaces the approach in #383, where changes were requested. It builds on the environment decision merged in #385.
Alternatives considered
Each decision record lists its own. The main ones: hostnames in
prisma.config.ts; a service that depends on its domain;origin()returning the custom hostname; a per-parameter callback orbyEnvironment()instead ofresolve(); passing all inputs tofnwith no dependency list;.envfiles as the primary way to express per-environment hostnames; a nameless default environment; and the names ingress, endpoint, hostname and address.Agent: ptah-43
🤖 Generated with Claude Code