Skip to content

ADR: A permanent address for the second site

ADR: A permanent address for the second site

Status
accepted
Date
2026-09-09

The second container, the one whose default store is Azure Cosmos DB, gets a name under the site's own domain, https://theyard-cosmos.stevenstout.biz, with HTTPS from the same certificate authority the live site uses, through the same edge. Parent: ADR: One container, both stores. Since 19 October the name reaches the one web app both sites run in, which picks the Cosmos DB store by the name (ADR: One web app for every .NET process).

In plain words

The second site, the one that runs on the document database (Azure Cosmos DB), gets a permanent web address under the site's own domain, with a padlock (HTTPS). It goes through the same free edge as the live site (Netlify), so nothing new is created on Azure.

What that is worth: a developer can link the two sites to each other over HTTPS without a browser warning, and the organization gets an address a person can type and a resume can carry, for $0 on Azure.

Context

Steve's words on the morning of 2026-09-09, after his first look at the two sites: "we need a permanent URL for the Cosmos DB site". What the second site had was the container group's Azure hostname on port 8080, plain HTTP: http://theyard-cosmos-ss-zmnetj67bn5h2.westus2.azurecontainer.io:8080.

That hostname is already permanent in the narrow sense. The label is fixed in infra/aci-theyard-cosmos.yaml (dnsNameLabel), so a roll of the group keeps it, and the Deploy Cosmos workflow rolls from that file. What it lacks is everything the live site has: his domain, so the address reads as his rather than as Azure's; a certificate, so the browser shows a padlock rather than "Not secure"; and a port nobody has to type. It also decides a second thing. The Store bar links each site to the other (ADR: One container, both stores, addendum), and the next change to the bar makes those links the toggle itself; a link from an HTTPS page to a plain HTTP address is a link Chrome marks, so both sites have to be on HTTPS before the toggle can honestly point at either.

The live site's address works the way it does because of two walls recorded in ADR: Deployment strategy: the free trial refuses Azure Front Door, and the registrar (Wix) refuses nameserver changes until the domain can transfer, around the end of October 2026. So HTTPS is terminated at a free Netlify edge, three files in this repository, with one CNAME at Wix pointing the name at it. Any answer for the second site has to live inside the same two walls.

The picture

TheYard's two sites: three CNAME records and one A record at Wix pointing at one Netlify edge; the edge's certificate and its rules picking the origin by the name; two container groups on Azure, each with its default store and its Peer__Site, both opening Azure SQL Database and Azure Cosmos DB

A preview. Open the two-sites diagram in a new page to zoom in and follow it. Steve asked for this one directly: a diagram of how DNS maps these two sites to Azure. The source is docs/images/two-sites.svg, drawn by docs/images/two-sites.mjs.

The options, priced

Option What it takes What it costs Verdict
A. A second hostname on the existing Netlify edge One domain alias on the Netlify site, one CNAME at Wix, two lines in edge/_redirects, one edge deploy 15 credits of the month's 300, once; $0 This one
B. A second Netlify site for the second origin A new site, its own link to the repository, its own deploys and its own credits, a second netlify.toml 15 credits per edge change, on two meters; twice the surface to keep No
C. A path on the live site, /cosmos/* proxied to the second origin A base path through the whole application; every /api and /assets address is absolute today Days of work for a worse address No
D. Front Door, App Service, or Cloudflare in front Refused by the trial, refused by the registrar until late October Not available No

Option A is the live site's own design applied twice. The edge already answers for three names and forwards two of them to the third; a fourth name that proxies somewhere else is the same mechanism with a different target.

Decision

The name is theyard-cosmos.stevenstout.biz. One label, so any DNS form accepts it, and it is the container group's own name with the suffix dropped, so the address and the Azure resource say the same thing.

Three parts, and only one of them is in this repository.

The first is two lines in edge/_redirects, above the catch-all. Netlify reads the file top to bottom and takes the first rule that matches, and the catch-all matches everything, so a rule for the new name below it would never be reached. The from column carries the whole address rather than a path, which Netlify's redirect documentation calls a domain-level redirect: it works for any domain assigned to the site, including a domain alias, and it works with a proxy (200) and the force flag as well as with a redirect. The file already relies on the same feature for the bare and www names. The second line sends the plain-HTTP spelling to HTTPS, the way the four lines above it do for the other names, because the file does not assume the platform's own HTTPS forcing.

https://stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
https://www.stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
http://stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
http://www.stevenstout.biz/* https://theyard.stevenstout.biz/:splat 301!
# The second site, whose default store is Azure Cosmos DB, under its own name
# (ADR: A permanent address for the second site). These sit above everything in
# netlify.toml, because Netlify reads this file's rules first and the first
# matching rule wins.
#
# Every page is the bare path with a query naming the view, the vehicle or the
# document, and the rendering service draws it (ADR: A rendering service beside the API); each
# domain's page goes to the service under that site's name. The query goes with
# a 200 rewrite.
#
# Everything else, the bundle, the photographs and /api, goes to the one web app
# that serves both sites (ADR: One web app for every .NET process). Those two
# rules are in netlify.toml, because only a rule written there can add a header
# to what it proxies, and the web app learns which site a request is for from the
# X-Yard-Host header those rules add. Until 19 October they were here, one per
# site, each to a web app of its own.
https://theyard-cosmos.stevenstout.biz/ https://app-theyard-render-ss-zmnetj67bn5h2.azurewebsites.net/site/cosmos 200!
http://theyard-cosmos.stevenstout.biz/* https://theyard-cosmos.stevenstout.biz/:splat 301!
/ https://app-theyard-render-ss-zmnetj67bn5h2.azurewebsites.net/site/sql 200!

Live from edge/_redirects, region rules, read from this build at 99df7a8.

The second part is a domain alias on the Netlify site theyard-edge, which is what makes the domain-level rule eligible to match. There is no Netlify token on the machine that ships (checked by name, never printed, and the Netlify CLI is not installed there either), so the alias is a click in the Netlify UI: Domain management, Add domain alias. Netlify then issues the Let's Encrypt certificate for the new name on its own once the name resolves, as it did for the bare and www names on 2026-09-01 (ADR: Deployment strategy, the completion note). Whether it did, and what the certificate says, is read rather than assumed, and the reading is in the addendum.

The third is a CNAME at Wix: host theyard-cosmos, value theyard-edge.netlify.app, TTL 30 minutes, matching the record that already exists for theyard. DNS is Steve's and stays his; the record was spelled out for him so it took fifteen seconds. The CNAME goes in before the alias, for the reason ADR: Deployment strategy learned on 2026-09-01: certificate issuance validates every attached name against DNS, and a lookup that lands before the record exists is cached as a miss by every resolver on the path, Netlify's included, for as long as the zone's negative TTL says.

The order of operations, with ADR: Edge deploy economics in mind. The ignore rule that stops application pushes from spending credits can, on a cold build cache, read a real edge change as no change and skip it, so the push of these rules is followed by a read of the Netlify deploys page, and a skipped build is forced from the UI. The CNAME and the alias depend on nothing in the repository and were asked for while the rules were on their way through the gate, the CNAME first for the reason above. Until the rules are live, a request to the new name falls through the catch-all to the first origin; until the alias exists, it reaches nothing; so the address is not announced until it is read. The certificate is waited for, not assumed. Then the runner reads https://theyard-cosmos.stevenstout.biz/api/version and /api/stores from the domain: the version proves the edge reached a container, and current answering cosmos proves the new rule matched and the build ran, rather than the request falling through the catch-all to the first origin. Only then do the two container groups' Peer:Site settings change, the live site's to the new address and the second site's staying https://theyard.stevenstout.biz, so the bar's link on the live site never points at a name that does not answer yet.

What it costs

One production deploy of the edge, which on Netlify's free plan is 15 of the month's 300 credits (ADR: Edge deploy economics has the arithmetic). The meter is read before and after rather than estimated, and both readings go in this record's addendum with the certificate and the version once the address answers. Nothing on Azure changes: no new resource, no new group, no billing. The second container group costs what it cost yesterday.

What this is not

Not a second edge. One Netlify site, one certificate, one deploy meter, two origins behind it. Option B would have doubled the surface for nothing.

Not a path. /cosmos/* on the live site would have needed a base path through the whole application, and the address it produced would still say which site was the real one.

Not permanent in the way the rest of the hosting is. The whole Netlify edge retires at the registrar transfer around the end of October 2026 (ADR: Deployment strategy), and this name retires with it: at Cloudflare the two names become two records instead of one, pointing at the same two origins. The application touches the edge in two places only, the Peer:Site setting on each group and the forwarded-protocol header the session cookie's Secure rule reads, so the move is two settings and two DNS records.

Consequences

  • The second site has an address a person can type and a resume can carry, with a padlock. docs/hosting/HOSTING.md's sentence that the second group runs "behind no edge and no domain" stops being true, and the page says so.
  • The Store bar on the live site links to https://theyard-cosmos.stevenstout.biz once Peer:Site on that group changes, and the toggle that follows (ADR: One container, both stores, addendum) can be a link between two HTTPS sites.
  • edge/_redirects is seven lines instead of five, and ADR: Edge deploy economics carries an addendum saying that the one edge now fronts two origins.
  • The two old addresses keep working. The Azure hostname still answers on port 8080, plain HTTP, exactly as before, because nothing about the group changed; the domain is a second door, not a replacement.

Addendum, 2026-09-09: what happened, read live

The rules shipped in 1.0.0.100 at 07:51 CDT, and the Netlify deploys page showed the build for it, "Deployed in 10s", above eleven application pushes the ignore rule had cancelled since the first of the month, so the cold-cache trap did not bite and nothing had to be forced:

Netlify's deploys page for theyard-edge: main at 4cc62d4 published today at 7:51 AM, deployed in ten seconds, above a column of earlier application pushes marked Canceled by the ignore rule

Steve added the CNAME at Wix and then the alias at Netlify, in that order. The CNAME resolved from a public resolver within the minute (the same canonical name as theyard, theyard-edge.netlify.app), and the DNS page now carries the three names that reach the edge beside the bare domain's A record:

Wix, Manage DNS Records for stevenstout.biz: one A record for the bare domain, and three CNAME records, theyard, theyard-cosmos and www, all pointing at theyard-edge.netlify.app with a TTL of 30 minutes

Netlify listed the alias under the primary domain and reissued the Let's Encrypt certificate at 07:57 AM with all four names on it, which the page shows and the runner then read off the connection itself:

Netlify, Domain management for theyard-edge: theyard.stevenstout.biz as the primary domain, stevenstout.biz, www.stevenstout.biz and theyard-cosmos.stevenstout.biz as domain aliases

Netlify, the SSL/TLS certificate section: Let's Encrypt, four domains including theyard-cosmos.stevenstout.biz, created Sep 1, updated today at 7:57 AM, auto-renews before Dec 8

At 07:58:40 CDT the runner read the address from the domain (queue script 701, mentor\logs\two-sites-701-checks100.log): https://theyard-cosmos.stevenstout.biz/api/version answered 1.0.0.99 at 552f77c, the version the second container was still on while its own roll of 1.0.0.100 was queued behind the live site's, healthy, with both stores passing their checks; /api/stores answered current=cosmos, which is the proof that the new rule matched rather than the request falling through the catch-all to the first origin; and the certificate on the connection was issued by Let's Encrypt (CN=YE1), valid from 2026-09-09 to 2026-12-08, with a subject alternative name list of stevenstout.biz, theyard-cosmos.stevenstout.biz, theyard.stevenstout.biz and www.stevenstout.biz. The live site read the identical certificate a second later, because it is one certificate.

The meter, read rather than estimated, from the team's Usage and billing page. At 07:55 CDT, four minutes after the build and before it had been counted (the page says consumption can take a few minutes to appear): 13 production deploys, 195 credits, 206.8 consumed in all, 93.2 of 300 remaining. At 08:01 CDT: 14 production deploys, 210 credits, 78.1 remaining. One deploy, fifteen credits, exactly the price in the table above. Against the 2026-09-01 reading in ADR: Edge deploy economics (11 deploys, 168.2 consumed), the deploy count moved by two in eight days: the push of the ignore rule itself, and this one.

Netlify, Usage and billing after the edge build: 78.1 of 300 credits remaining, and the breakdown showing 14 production deploys at 210 credits

From 1.0.0.101 the live site's Peer__Site is https://theyard-cosmos.stevenstout.biz, so the Store bar's Cosmos DB segment on the live site is a link between two HTTPS addresses (ADR: One container, both stores, the addendum on the toggle moving to the sites). The second site's stays https://theyard.stevenstout.biz. The Azure hostname on port 8080 still answers, unchanged.

Addendum, 2026-09-20: the same two names, two new origins

Superseded in part on 2026-09-20, as 1.0.0.156. The two rules above sent the second name to the second container group's Azure address on port 8080. Both names now go to web apps on one App Service plan, over HTTPS (ADR: One plan, two sites): the two lines in edge/_redirects changed their right-hand sides and nothing else did. No DNS record, alias or certificate moved, which is what the domain layer in front of the origin was for. The container groups' addresses stop answering while the groups are stopped, and the rules file carries them in a comment for the week they remain the way back.

Addendum, 2026-10-19: the same two names, one origin

Steve, 07:47 to 07:49 CDT: "since I've demoed the shed, let merge all .net into one new app service, and delete the old", and "on the existing ADRs indicate the separate app services would be for increased load and separation down the road but we merged due to low traffic on the update and ram".

The separate web apps were the design for increased load and separation down the road: one process per site and per product, so one could roll, fail or be scaled without the others. They were merged on 19 October because traffic is low and the memory on the B2 plan is better spent (read live at 13:46 UTC that morning: the plan at 72 per cent, 2.52 of 3.5 GB; the four apps 977 MB together, the SQL site 404 MB, the Cosmos DB site 370, the rendering service 105 and The Shed 98; and the plan outside the apps 1,603 MB). The split is one bicep change and one edge rule away when load returns: a second entry in infra/appservice.bicep's sites list with its own names, and that domain's rule in netlify.toml pointed at it.

The address this record gave the second site does not change, and neither do the three CNAME records and the A record at Wix or the Netlify certificate. What changed is where the edge sends the name, and how the origin knows it: both Yard names go to the one web app's address, and since that address is the same for both, the edge's rule says which name the visitor typed in an X-Yard-Host header. Those two rules moved from edge/_redirects to netlify.toml, the only place a rule can add a header to a proxied request; the page rules stay in edge/_redirects, which Netlify reads first. The Shed's own name is not behind the edge: it is bound to the web app, with App Service's managed certificate, and its move from The Shed's web app to the one web app is in ADR: One web app for every .NET process.

Where it sits

No ring: this is a hosting decision about the DNS name and the Netlify edge in front of the second site, so the onion and SOLID do not apply to it.

Files

Enforced by

One rule in the rulebook cites this record, each held by a test on every release.

The rule What holds it In the last gate
Both deploy workflows answer to one set of constants DeployWorkflowTests 36 of 36 passed
Store

The Yard, home

Steven StoutStaff .NET engineerRemote

Production .NET that stays up. Built with AI, measured on every version.

Steven Stout

Hi, I'm Steve. I build the systems that make delivery boring in the best way, then coach people inside them.

  • 200+

    production releases, none took the platform down

    Conway Investment Research, 2019 to 2024. Sole engineer for the first three years on a live financial advisory platform.

    See how
  • 50%

    shorter release cycle

    Storee Construction, 2024 to 2026. Four ASP.NET applications onto one .NET 10 platform on Azure, with a four-person team I hired and mentored.

    See how

01Verified

Steven Stout

A real person, and the work is mine.

  • Identity

    Checked by LinkedIn, not by me.

    LinkedIn verified my government ID.

  • Running system

    You are looking at it.

    Version 1.0.5.273 is live. Nothing ships unless it passes the automated gates first.

That's who I am. Here's how I work.

02Strengths

Ten strengths, each with the proof beside it. The numbers match my resume and LinkedIn, and the live ones are read from this site as you look.

  • 01

    Keeps production alive

    200+ releases on a live financial platform, and none took it down. Sole engineer for the first three years.

    See the Conway work

  • 02

    Simplifies messy systems

    Four ASP.NET applications onto one .NET 10 platform on Azure, and a release cycle 50% shorter.

    See the Storee work

  • 03

    Marries dev and infrastructure

    Blue-green releases at Storee that flipped in about 5 seconds with nobody signed out, and Azure Front Door at two employers.

    See this site's cloud

  • 04

    Designs data that holds up

    White-label clients on one shared database, the isolation built into the data, and no cross-client issues.

    See the Conway work

  • 05

    Keeps AI-written code honest

    15 quality numbers that may only improve: 273 releases in a row with none worse.

    See the quality numbers

  • 06

    Resourceful

    $30,000+ cut from Azure and vendor spend at Conway. This site's Azure bill is public, resource by resource.

    See the bill

  • 07

    Builds people up

    Hired and mentored a four-person team. 13 colleagues recommend me by name.

    Read the recommendations

  • 08

    Takes ideas to production

    This site: designed, built and run solo, with 352 versions measured through one gate.

    How it was built

  • 09

    Writes clearly

    Posts on real engineering problems, in plain words.

    Read the blog

  • 10

    Owns decisions

    153 decision records, each with its tradeoff and the call I made.

    See the decision records

Built with AI. Gated so quality never slides.

Steven Stout’s showcase: a used-vehicle auction on .NET and React, built and run by one engineer, live on Azure, with its decisions written down.

No quality number has gotten worse at any release since 1.0.5.1 on 10 November: 273 releases in a row.

One engineer, an AI agent and a gate that checks 15 quality numbers on every release. 352 versions measured, with every result public, the worst days included.

82 releases in the last 7 days, each through the same gate.

Async methods with no CancellationToken, may only fall

11091.0.3.1391.0.5.2731.0.4.115, the ratchet
Every number, on the Quality page

TheYard, right nowLive

Answering in

unread

02505007501,000

server time at p95, the usual five minutes of the last day.

Azure this month

unread

the bill, by resource, read from Azure. The Admin tab shows every line.

Since the last roll

unread

 

rolled in place by the pipeline, behind one gate.

People who have visited

unread

30 days agotoday

Scanners, my own tools' and my own reads left out.

03Start here

04Where teams are heading

How I see engineering with AI, and the setup on this site that backs it.

AI-augmented teams · Architecture and ownership

AI writes more of the code. Someone still has to own what ships.

Teams are going to be heavily AI-augmented. That moves the senior job toward architecture and technical ownership: deciding what to build in pieces small enough to verify, and owning what ships.

  • Task tracking will get automated too. Judgment stays human: seeing a design fail at scale before it does.
  • On this site the AI's first design held the whole catalogue in memory. I caught it when the App Service plan hit 82 per cent and moved the work to the store.

What the AI wrote, what I decided

07Tech stack

  •    
  •    
  •    

Read from the build, never typed by hand

What TheYard runs on

What we use, where it runs, its AWS twin, the version as built, and the file that proves it.

Cloud patterns, not one vendor: every Azure piece in this stack has a named AWS twin. Mapped, not yet run on AWS.

  • .NET 1114 projects
  • React 19.3TypeScript 7.0
  • Azure9 Bicep files
  • 11GitHub Actions workflows
The whole stack, with the file that proves each line

The last release the gate stopped was 1.0.5.258 on 2 December, at its browser 1 of 2 job.

08How it is built

09How it is run

10Who and why

Next step

11What has to work, where is it today, and what does success look like?

Book 20 minutes opens an email to me with those three questions in it, and I answer with a time.

Book 20 minutes

Your email app should have opened with this message. If it did not, copy it and send it from any mailbox.

Or message me on LinkedIn