Skip to content

ADR: Front Door origin

ADR-001: Azure Front Door fronts everything; App Service is the origin

Date: 2026-08-31 Status: Accepted

In plain words

This page decides how the site meets the internet: one global front gate (Azure Front Door) takes every request, and the server behind it (Azure App Service) refuses anything that did not come through that gate. The trial subscription refused the gate, so the site runs without it for now and the page says so.

What that is worth: a developer sees the production design and the gap between it and what runs, written side by side, and the organization can see the security trade it made and revisit it before the site holds other people's data.

Context

TheYard deploys as one container serving both the React SPA and the .NET API. Requirements set for the deployment: both frontend and backend sit behind a single global entry point; the origin must never answer the public internet directly; infrastructure is defined as code; spend stays small and predictable on a free-trial subscription.

Decision

Azure Front Door (Standard tier) is the public entry point. The container runs on Azure App Service (Web App for Containers) as the single origin. The origin is locked down with App Service access restrictions: allow only traffic from the AzureFrontDoor.Backend service tag AND require the X-Azure-FDID header to match this Front Door profile's ID, so requests that bypass the edge are rejected at the origin.

Alternatives considered

  • Azure Container Apps. Consumption billing and scale-to-zero are its headline advantages. Rejected for this design because Front Door health probes poll the origin continuously, which keeps the app permanently awake and erases the scale-to-zero economics; and because a hard origin lock on Container Apps wants Private Link (Front Door Premium, roughly double the base cost) or a VNet-internal environment, which is more infrastructure for the same lock App Service provides with two settings. Container Apps remains the right call for event-driven or multi-service shapes.
  • No Front Door, direct ingress. Cheapest, and Container Apps would win that shape with managed certificates and scale-to-zero. Rejected by the stated requirement for an edge entry point with an unexposed origin.

Consequences

  • Scale-to-zero is off the table; the app runs always-on. Accepted knowingly. The cost sits within the trial credit and gets re-decided when the trial ends.
  • Front Door adds a fixed monthly base fee independent of traffic.
  • The upgrade path to a fully private origin is Front Door Premium with Private Link; documented here, deliberately not purchased at this size.
  • A custom domain and TLS terminate at the edge later without touching the origin.

Addendum, 2026-08-31 deploy day

Measured during the first deployment: Azure rejects Front Door creation on free-trial subscriptions ("Free Trial and Student account is forbidden for Azure Frontdoor resources"), and Central US had no B1 capacity at that moment. Interim state shipped instead: enableFrontDoor=false, the app public at its azurewebsites.net address in another region. The decision above stands; it activates by upgrading the subscription to pay-as-you-go and redeploying with enableFrontDoor=true, which also applies the origin lock. Until then the origin is deliberately, temporarily public.

Second addendum, same day

Next measurement: the trial subscription's compute quota for Basic-tier App Service is zero (SubscriptionIsOverQuotaForSku, "Current Limit (Total VMs): 0"), so B1 cannot deploy either. The interim deployment therefore runs on the F1 Free tier: cold starts and a daily CPU cap, accepted for a demo link.

The rationale behind these trial restrictions, as we read it: Azure Front Door provisions standing capacity across Microsoft's global edge network, so its base fee reflects reserved physical infrastructure in many locations at once, and Microsoft limits that class of service to verified, paying subscriptions rather than spending-capped trial accounts that are often abandoned. The same logic shows up as zero trial quota on paid compute tiers.

One upgrade to pay-as-you-go lifts all of it: skuName returns to B1 and enableFrontDoor flips to true, which also applies the origin lock. The template already carries both parameters.

Decision under trial constraints, 2026-08-31 (the author's call)

Proceed WITHOUT Front Door or any trial-restricted resource for now, and say so plainly here: Front Door with a locked origin remains the best practice for production and is exactly what this template deploys after a subscription upgrade (enableFrontDoor=true, computeKind=appservice, skuName=B1). Until then the app runs on the least-restricted compute the subscription accepts, publicly reachable by design, carrying no secrets and no persistent user data.

Addendum, 2026-09-03: the last sentence stopped being true

The decision above ends by accepting a publicly reachable origin on the grounds that it is "carrying no secrets and no persistent user data".

That was accurate when it was written on 31 August. It stopped being accurate on 3 September and nobody came back to this record to say so. Two versions changed it. 1.0.0.48 gave bids owners, which means accounts: ASP.NET Core Identity, real password hashes, a session token. 1.0.0.49 moved the store to Azure SQL Database, which means those accounts and every bid outlive the container.

So the origin now fronts persistent user data, and the argument that made an unlocked origin acceptable no longer holds on its own terms.

What is written down about a system is part of the system. A record that becomes wrong without saying so is worse than one that says plainly when it stopped being right, because the second kind can be read. This is the second kind.

What actually stands between the internet and that data today

The origin lock is still not deployed and is still the right answer. Meanwhile this is what the risk actually consists of, stated so it can be argued with:

  • The database has no password to steal, because it has no login to hold one. The server was created Entra-only, so there is no SQL authentication path at all. The container reaches it as the managed identity it already carried, and the connection string in its environment is a server name, a database name and an authentication mode (ADR: The SQL Server backend).
  • That identity can read and write rows and nothing else. It holds db_datareader and db_datawriter. It cannot alter a table, which is why the schema lives in a SQL project published separately.
  • Passwords are hashed by Identity, not stored, and the session is a signed token in an httpOnly cookie the page cannot read (ADR: Accounts and per-user bids).
  • The public surfaces were reviewed for what they publish on 3 September, and that review found and fixed a path by which a database exception message, which carries the server name and the caller's address, reached a public page (ADR: Reviewing my own work).

What is still owed

The origin lock. enableFrontDoor=true with siteLock is in the template and has never been deployed, because the subscription that would allow it is the subscription this project deliberately does not pay for. That trade was worth making when the origin held nothing. It is a smaller trade now, and it should be revisited before this application holds anybody's data but mine.

Recorded rather than fixed, because pretending an unfunded control is in place is the failure this addendum exists to correct.

Addendum, 2026-09-20: half of the target runs, and the lock is one per site

Superseded in part on 2026-09-20, as 1.0.0.157. The App Service half of this target runs: both sites are web apps on one plan (ADR: One plan, two sites), and infra/main.bicep is the description of what runs rather than of a design nobody deployed. computeKind is gone from it, with the Container Instances and Container Apps branches it selected. What is left of this record's decision is the part the subscription still refuses: Front Door, and the origin lock, which the template now writes once per site because there are two origins. enableFrontDoor defaults off. The origins are reachable directly today, exactly as the addendum of 3 September describes for the container groups, and that trade is unchanged by the move.

Where it sits

No ring: this is a hosting decision about what stands in front of the App Service origin, so the onion and SOLID do not apply to it.

Files

  • infra/main.bicep: the target as code. enableFrontDoor and computeKind select it; fdProfile, fdEndpoint, fdOriginGroup, fdOrigin and fdRoute are the Front Door; plan and site are the App Service origin; siteLock is the origin lock this record is about, shown live below.
  • docs/hosting/HOSTING.md: why the site does not run this today, and what runs instead.
  • infra/aci-theyard.yaml: the container group that does run, per ADR: Deployment strategy.

The origin lock, read from this build:

// With Front Door on, nothing reaches the web app except through it: the
// service tag admits Front Door's address space, and the header admits only
// this profile, because every Front Door customer shares that address space.
resource siteLock 'Microsoft.Web/sites/config@2023-12-01' = [
  for (name, i) in siteNames: if (enableFrontDoor) {
    parent: site[i]
    name: 'web'
    dependsOn: [
      compute
    ]
    properties: {
      ipSecurityRestrictionsDefaultAction: 'Deny'
      ipSecurityRestrictions: [
        {
          name: 'AllowFrontDoorOnly'
          priority: 100
          action: 'Allow'
          tag: 'ServiceTag'
          ipAddress: 'AzureFrontDoor.Backend'
          headers: {
            'x-azure-fdid': [
              fdProfile!.properties.frontDoorId
            ]
          }
        }
      ]
    }
  }
]

Live from infra/main.bicep, region origin-lock, read from this build at 99df7a8.

Enforced by

Not machine-checked. Held by review.

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