Azure Front Door
Azure Front Door Premium is the single public entry point for ION web and API
traffic. One profile per environment, fd-rome-<env>-glb-02, lives in the hub
resource group rg-rome-<hubenv>-chn-01. It serves every portal and API hostname
under the environment apex domain (ion.ontinue.com in production). Front Door:
- terminates TLS on Microsoft-managed certificates;
- runs the platform WAF (Prevention mode, Default Rule Set 2.1, Bot Manager 1.0);
- adds security headers and CORS response headers through rule sets;
- rewrites public API paths (
/api/v1/...) to APIM API paths; - fails over from Application Gateway to a direct origin when Application Gateway is unhealthy.
Why Front Door
Front Door is the global layer of the edge topology decided in ADR-0015. The ADR rejected the alternatives for these reasons:
| Alternative | Why it was rejected |
|---|---|
| Application Gateway only | No global edge, no edge caching, no global health-based routing; adding a second region would mean changing the public endpoint |
| Front Door only | Front Door is not the regional VNet boundary and has no instance-level connection draining or affinity; APIM would be coupled directly to the global edge |
| Front Door directly to every backend | Bypasses the shared APIM and BFF boundary and spreads public endpoints. Only the bounded exceptions in ADR-0015 are allowed |
| Self-hosted reverse proxy or WAF | Violates Azure-native managed services first (principle 21); ION would own patching, scaling, and recovery |
Front Door Premium is the internet entry point and the only WAF on the platform. Application Gateway WAF is target state.
ADR-0015Front Door priority routing is the lever for the planned Switzerland West warm spare. The failover is manual, and it is not deployed yet.
ADR-0017SPA hosts sit behind Front Door and Application Gateway. A direct Front Door to SPA host origin is allowed only as a priority-2 failover origin.
ADR-0027The profile, DNS zone, and shared origin groups belong to the hub. Spokes contribute routes through service stacks.
ADR-0016Architecture principles
All public HTTP traffic enters through Front Door unless a documented exception applies.
The exceptions are the SignalR WebSocket path, storage origins, priority-2 failover origins, and the manual outage bypass. Anything else that is reachable from the internet without Front Door is a defect.
ExceptionsThe Front Door Premium WAF is the platform WAF and blocks rather than detects.
Managed Default Rule Set 2.1 and Bot Manager 1.0 run in Block mode on every endpoint. Exclusions are narrow, reviewed, and per service.
SecurityHealth probes and priority-2 origins exist only on origin groups that have more than one origin.
A probe on a single-origin group adds load and gives no benefit, because Front Door has nowhere else to send the traffic.
ResiliencyAPI and authenticated responses are never cached. Only fingerprinted static assets may be cached.
Front Door edge locations are global and outside Switzerland. Caching is a performance tool for immutable bundles, not for data.
GuidelinesFront Door routes, filters, and decorates. It never makes identity or tenant decisions.
APIM validates caller tokens, the BFF terminates user tokens, and domain services enforce business rules. Front Door rule sets never inject credentials.
Every endpoint, route, origin, rule, and policy is Terraform, changed by PR and deployed through Runway by CPE.
Front Door holds no authoritative data, so recovery is a redeploy. Portal changes are emergency-only and are reconciled into IaC immediately.
ImplementationAt a glance
| Aspect | Current configuration |
|---|---|
| Profile | fd-rome-<env>-glb-02, SKU Premium_AzureFrontDoor, one per environment (mgtapa, mgtbta, mgtgma, mgtprd) |
| Endpoints | 15 in the hub stack, plus one per service stack (8 service stacks plus test) |
| WAF | One policy per stack, Prevention mode, DRS 2.1 and Bot Manager 1.0 in Block, applied to /* |
| TLS | Managed certificates, TLS 1.2 minimum, HTTP redirected to HTTPS, HttpsOnly to origins |
| Failover | Priority 1 Application Gateway hostname, priority 2 direct origin, on every multi-origin group |
| Caching | Off on every route |
| Diagnostics | AllLogs and AllMetrics to the observability Log Analytics workspace |
| Alerting | Resource Health alert in production |
Pages
| Page | Read it when |
|---|---|
| Architecture | You need to understand the profile structure, origin groups, path rewrites, or request flows |
| Resiliency | You are designing failover, probes, alerts, or responding to an edge outage |
| Security | You are changing WAF, headers, CORS, TLS, or origin lockdown |
| Guidelines | You need the MUST and SHOULD rules for a Front Door change |
| Implementation | You are adding a route or service, or closing a gap against the guidelines |