ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V3
  3. Well-Architected
  4. V3 reliability
  5. Edge and routing
  6. Azure Application Gateway
  7. Azure Application Gateway security

Azure Application Gateway security

reliability
architecturev3

Azure Application Gateway security

This page describes the security controls on the gateway: what protects each hop, what is exposed on purpose, and what is still target state. The rules are in the guidelines, and the gaps are in implementation.

Public, and without a WAF

The gateway has a public IP. Front Door Premium WAF is the platform WAF, and the gateway runs Standard_v2 without WAF. Any request that skips Front Door is not inspected by a WAF. Do not describe the gateway as private, and do not describe it as a second WAF.

Controls by hop

HopControlState
Client to Front DoorPlatform WAF, managed TLS, security headersEnforced. See Front Door security
Front Door or client to gatewayDDoS protection on the public IP, NSG, TLS 1.2 or laterEnforced. NSG is broader than the target
Gateway listenerWildcard certificate, HTTPS only, no HTTP listenerEnforced
Gateway to backendHTTPS 443 with the backend FQDN as host and certificate nameEnforced
BackendApp Service and storage restricted to the gateway subnet, APIM and SignalR validate tokensMostly enforced. APIM network restriction is to be verified
AuthorizationAPIM validates the caller token, the BFF handles the user tokenNot done at the gateway

Network security group

The gateway subnet has its own NSG, nsg-agw-<env>-<region>-01. Rules are defined in the hub networking stack (hub/networking/nsgs.tf).

Inbound ruleWhy it existsGuideline
GatewayManager on 65200 to 65535Required by Application Gateway v2 for platform managementMUST stay
AzureLoadBalancerRequired for the Azure load balancer healthMUST stay
AzureFrontDoor.Backend on 443Allows Front Door to reach the gatewayMUST stay
Internet on 443Allows the SignalR WebSocket hostnames and the outage bypassMUST stay while those paths exist
Internet on 80None. There is no HTTP listenerMUST be removed
AzureSignalR inboundAllows the SignalR service to call into the gateway (upstream)Verify. Remove if nothing uses SignalR upstream calls

Why the service tag is not enough

The AzureFrontDoor.Backend tag covers every Front Door profile in Azure, not only ION’s. The NSG cannot tell ION’s profile from any other. ION’s profile is identified by the X-Azure-FDID header. Today the gateway uses that header only to decide whether to add security headers. It does not block requests with a wrong or missing header.

Because the NSG also allows Internet on 443, every agw-* hostname is reachable without Front Door today. The exception list below describes what is sanctioned. For all other listeners, enforcing “Front Door only” per listener needs the target-state WAF custom rule, because an NSG has no per-hostname or per-header rule.

Backend restrictions

BackendRestriction to the gateway
App Service SPA hostsAccess restriction allows the gateway subnet (agwsbn) through the Microsoft.Web service endpoint. Priority-2 rules for Front Door and rules for engineers are on the same host
Storage backends (attachments, initiatives)Network rules allow the gateway subnet through the Microsoft.Storage service endpoint. Shared keys are off and access uses Entra RBAC or user-delegation SAS
Static Web AppsConfigured in the SWA repositories (Front Door gap list)
APIMPublic gateway endpoint. Protected by token validation and policy. Verify whether it checks X-Azure-FDID for the priority-2 path
Azure SignalR ServicePublic service endpoint. Protected by the access token that the shell BFF issues

ZPA is used only by engineers who reach these resources. It is not part of the runtime path from the gateway to its backends.

TLS and certificates

ItemConfiguration
Listener protocolHTTPS only on 443. There is no HTTP listener
SSL policyAppGwSslPolicy20220101S (minimum TLS 1.2). Later predefined policies are allowed. TLS 1.0 and 1.1 are not
Backend protocolHTTPS on 443 for every backend
Backend certificate checkHost header and certificate name are the backend FQDN. Backends present publicly trusted certificates, so no trusted-root configuration is needed
HTTP/2Enabled
Listener certificateThe platform wildcard certificate in Key Vault, referenced by a versionless secret ID so rotation needs no gateway change
  • The gateway identity MUST be a dedicated user-assigned managed identity with Key Vault Secrets User scoped to the certificate secrets. Today it uses the platform-wide identity id-ion-<env>-chn-01, which has more access than the gateway needs. This is a gap.
  • A module-level certificate input that pins a certificate version, and any trusted-root certificate configuration, belong to paths that no longer exist. They SHOULD be removed from the stack and the module so a stale version cannot stay in use.
  • Certificate expiry MUST raise an alert. Renewal is a Key Vault operation, and the gateway picks up the new version automatically.
  • Front Door connects to agw-* hostnames over HTTPS. It does not validate the gateway certificate name today (see the Front Door TLS rules).

Headers and CORS

Front Door adds security headers on the normal path. The gateway adds them only when the request did not come through ION’s Front Door, so the bypass and the exception paths are covered. The model is in architecture.

HeaderValue
Strict-Transport-Securitymax-age=31536000; includeSubDomains; preload
X-Frame-OptionsSAMEORIGIN
X-Content-Type-Optionsnosniff
Referrer-Policystrict-origin-when-cross-origin
Permissions-PolicyPer-app restrictive policy
Content-Security-PolicyVariant per app class (mfe, alya, default, bondi)
X-Xss-ProtectionPresent today. The header is deprecated and SHOULD be removed

CORS

The gateway sets CORS only for hostnames that browsers reach directly, which are the exception paths. Origins are an explicit allow-list of exact https:// origins. Wildcards are not allowed.

Current configuration has several issues that the guidelines remove:

  • The global gateway-rewrite-ruleset allows four origins: the portal, Roadie, the Alya portal, and the docs site. The list is maintained by hand in the hub stack.
  • Access-Control-Allow-Credentials is set to a fixed true and is not derived from the matched origin.
  • The Access-Control-Allow-Headers rule is marked # TODO: FIX. It lists X-Shell, X-Capabilities, ocp-apim-subscription-key, and others. It should list only the headers that browsers actually send to that hostname.
  • Per-app rules duplicate the Alya shell origin for MFE remotes. A change to the shell hostname needs a change in every app file.

Every Front Door CORS or header rule MUST have a gateway mirror, and parity is part of the PR checklist (guidelines).

Exceptions

Only these paths may reach the gateway without Front Door. Each is sanctioned by ADR-0015.

ExceptionHostnamesControls on the pathMissing
SignalR WebSocketagw-alya-sigr, agw-alya-shell-sigrDDoS protection, TLS 1.2, SignalR access token from the shell BFF (user-scoped, short-lived), security headers added by the gatewayWAF, Front Door edge
Front Door outage bypassThe agw-<app>-webapp hostnames of bypass-capable portals and agw-apiDDoS protection, TLS 1.2, Entra sign-in, APIM token validation and rate limits, security headers added by the gatewayWAF, Front Door edge
Front Door now supports WebSockets

The SignalR exception exists because Front Door did not support WebSockets when the hostnames were created. ION SHOULD re-evaluate routing the WebSocket through Front Door. If that works, the exception and the Internet 443 rule can be removed.

The bypass is a human change. When Front Door is down, an incident commander approves it and CPE enables direct access for the declared incident. Today the NSG already allows it. See the Front Door runbook.

Query-string tokens on the SignalR hostnames

Flagged risk: access tokens in the access logs

The SignalR JavaScript client passes its connection token as an access_token query parameter on the WebSocket upgrade. Gateway access logs record the request URI, so this token is logged on the SignalR hostnames. This is a flagged risk, gap 23 in implementation. The data-protection rule that tokens MUST NOT be placed in query strings cannot be met here, because the protocol requires it. Until a log transformation strips the query string for these hostnames:

  • keep the token short-lived and scoped to one user;
  • restrict read access to the Log Analytics workspace;
  • do not copy raw access logs into tickets or chat, including during incidents.

See data protection.

Target-state WAF

Application Gateway WAF is a roadmap item. It starts where the gateway has the least protection today.

PhaseScopeNotes
1SignalR WebSocket and outage-bypass listenersDetection mode first, with WAF logs to the Switzerland North workspace. WAF needs the WAF_v2 SKU, so plan the SKU change as a gateway-wide change through all four environments
2Same listenersPrevention after exclusions are tuned. Exclusions are per listener, narrow, and added by PR
3Every other listenerCustom rule that blocks a missing or wrong X-Azure-FDID. This enforces Front Door-only access that the NSG cannot

Until phase 3, documents and dashboards MUST NOT describe the gateway as Front Door-only.

Identity and access

  • The gateway has a user-assigned managed identity for Key Vault. It has no other Azure permissions.
  • Changes to the gateway go through IaC and Runway by CPE. Portal write access is limited to break-glass roles.
  • Rewrite rules MUST NOT add credentials, keys, or secrets to requests, and rules that set trusted headers MUST overwrite client-supplied values.

Logging

Diagnostic settings are applied through Azure Policy. Access, performance, and firewall (when WAF exists) logs go to the Switzerland North Log Analytics workspace. Access logs contain the client IP, host, URI, user agent, backend, and timings, so read access to the workspace is controlled like any other security log.

Related pages

  • Architecture
  • Resiliency
  • Guidelines
  • Front Door security
  • Data protection: Application Gateway
  • Network security guidelines
  • Microsoft Learn: Application Gateway security baseline
  • Microsoft Learn: Application Gateway infrastructure configuration

On this page

  • Controls by hop
  • Network security group
  • Why the service tag is not enough
  • Backend restrictions
  • TLS and certificates
  • Headers and CORS
  • CORS
  • Exceptions
  • Query-string tokens on the SignalR hostnames
  • Target-state WAF
  • Identity and access
  • Logging
  • Related pages
PreviousAzure Application Gateway resiliency
NextAzure Front Door
Edit on GitHubSecurity