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 Security
  5. API Management
  6. API Management Policy Model

API Management Policy Model

security
VersionV2V3
architecturev3

API Management Policy Model

ION composes APIM behavior from a platform-owned global policy, a platform-governed product policy where one applies, and service-owned API and operation policies. The final behavior is the inherited policy chain, not one XML file viewed in isolation.

Concepts

TermION V3 meaning
APIA versioned set of operations imported from an OpenAPI contract and connected to a service backend.
OperationOne OpenAPI operationId with a method, public path, backend rewrite, required role, and optional caching behavior.
ProductA grouping and publication boundary for APIs. Subscription keys are not used. A product may carry a platform-governed policy; in V3 the MFE product does.
PolicyOrdered XML statements that alter or constrain inbound, backend, outbound, and error processing.
Named valueEnvironment-specific APIM configuration, optionally sourced from Key Vault, referenced as {{NAME}} in policy XML.
Policy fragmentShared policy statements included by identifier: the platform request, response, and error trace fragments, and service fragments such as Signet’s mfe-cors-fragment.
BackendThe OAuth-protected Azure compute endpoint implementing an API or operation.
Diagnostic/loggerAPI-level Application Insights integration and capture settings used with policy trace events.

ION does not use the APIM developer portal or subscription keys as the application security boundary. APIs are defined and deployed through OpenAPI, Terraform, and policy XML.

Policy sections

<policies>
  <inbound>
    <!-- Authenticate, authorize, route, transform, throttle, and cache lookup. -->
  </inbound>
  <backend>
    <!-- Control forwarding and backend execution. -->
  </backend>
  <outbound>
    <!-- Shape, sanitize, trace, and optionally cache the response. -->
  </outbound>
  <on-error>
    <!-- Trace and normalize failures. -->
  </on-error>
</policies>

Policies execute top to bottom within each section. Not every APIM statement is valid in every section or scope.

Scope and inheritance

APIM supports global, workspace, product, API, and operation scopes. V3 uses the following effective chain:

Workspace policy is not used. Most products only group APIs and have no policy, so their APIs inherit directly from global scope. The MFE product is the exception.

<base /> inserts the parent scope at its location. In the normal inbound chain:

  1. The global policy validates caller and tenant, sets trusted headers, and creates the validated jwt context.
  2. The product policy (MFE only) applies per-user rate limits and per-tenant quotas, and validates the capability token with Signet. It fails closed with 403.
  3. The API policy selects the backend, applies API traffic controls, obtains the APIM managed-identity token, and overrides backend Authorization.
  4. The operation policy rewrites the URI, validates an Ion.* role, and optionally performs cache lookup.
  5. The inherited global backend section applies per-API concurrency and executes forward-request.

Moving or removing <base /> can bypass authentication, capability validation, tracing, backend-token creation, or forwarding. It is therefore a security-relevant change. Provider webhook APIs and public health operations are the reviewed exceptions.

Global platform policy

The environment-specific Rome global policy currently provides:

  • a required Authorization header;
  • generation or preservation of X-Transaction-Id;
  • extraction of the tenant claim;
  • cached tenant-status validation using a managed-identity-authenticated HEAD request for non-Ontinue tenants;
  • JWT signature, issuer, audience, and validity validation;
  • required roles and tid claims;
  • rejection of idtyp=app tokens from non-Ontinue tenants;
  • trusted X-Tenant-Id, the X-Authorization caller-context header, and the Forwarded header;
  • request, response, and error trace fragments;
  • per-API backend concurrency; and
  • backend forwarding with a 120-second timeout and failure on backend error.

It does not yet check X-Azure-FDID (gap APIM-02) and does not yet override an inbound X-Authorization (gap APIM-01). See Global policy implementation for the full deployed execution flow, environment differences, and risks.

Product policy

A product policy applies to every API in the product, so it is shared infrastructure. In V3 only the MFE product (apim-product-mfe-{env}-{reg}-01) has one. It is implemented by the Signet team in signet/infrastructure-shared/policies/apim-product-mfe-policy.xml and governed by the platform team.

A product policy:

  • MUST call <base /> as the first inbound statement, so global caller validation runs before any product logic;
  • MUST NOT modify Authorization, X-Authorization, or X-Tenant-Id;
  • MUST fail closed on any validation error, timeout, or non-success result;
  • MUST keep <base /> in backend, outbound, and on-error sections; and
  • MUST receive platform and security review (CODEOWNERS) before deployment.

Webhook inbound exception

A dedicated provider webhook API may omit global inbound <base /> only when the provider cannot present an ION token and the backend implements the provider’s sender-validation protocol. The API must still authenticate APIM to the protected backend, enforce bounded traffic controls, and inherit global backend, outbound, and error sections. In V3, a webhook API that is reached through the edge MUST also check X-Azure-FDID at API scope, as the Pigeon Twilio API does.

This is not a general public-API pattern. See Webhook flow implementation for the deployed Phoenix and Pigeon examples.

Service API policy

The API policy applies controls common to every operation in one imported API:

  • backend base URL;
  • per-caller or per-API rate limiting;
  • APIM user-assigned managed-identity token acquisition;
  • override of backend Authorization with the APIM token; and
  • removal of technology-disclosure headers.

Backend authentication belongs at API scope when all operations use the same backend trust boundary. Some services, including Signet, acquire the token in the operation template instead; that is acceptable when every operation uses the template. An operation may override a backend only when it still inherits equivalent authentication and authorization.

Operation policy

The operation policy owns behavior that varies by OpenAPI operationId:

  • public-to-backend URI rewrite;
  • required Ion.* role or roles;
  • optional backend override;
  • cache lookup and storage; and
  • operation-specific transformation or validation.

Every protected OpenAPI operation must have an explicit operation-policy mapping or an equivalent API-level authorization rule. An OpenAPI security declaration documents the contract but does not itself create APIM role enforcement. A Terraform roles_csv variable is equally not proof: the template has to use it. Gap APIM-05 is a deployed example where it does not.

Original caller context and backend identity

The backend receives an APIM managed-identity token in Authorization. The global policy also forwards the validated caller token in X-Authorization and provides trusted tenant and correlation context.

  • APIM MUST override X-Authorization with the validated caller token. A client-supplied value MUST NOT reach a backend. This is not yet enforced (gap APIM-01).
  • An API MAY replace X-Authorization with APIM’s own token when no caller context is needed downstream; the Internal API does this.
  • X-Authorization is sensitive bearer data. It MUST NOT be logged, stored, replayed, or forwarded to another service. A BFF reads it to bind the capability token and terminates it.

Caching model

APIM cache policy is operation-specific. A cache key must vary by every request dimension that can change authorization or response content, including customer or tenant context and, for MFE routes, the capability set. A cached customer response must never be servable to another customer.

Only safe, idempotent responses may be cached. Mutations, authorization failures, error responses, and sensitive personalized data are not cached unless a reviewed design proves isolation and correctness.

Diagnostics model

Effective diagnostics combine the API diagnostic resource and inherited trace fragments. Correlation identifiers, route, operation, status, latency, cache result, and bounded authorization outcomes are useful. Full payloads, user attributes, raw claims, and request or response headers can contain customer data or credentials and require minimization.

Authorization, X-Authorization, and X-Capabilities must never appear in diagnostic output. Production trace destinations, access, sampling, and retention are controlled platform configuration.

Related pages

  • API Management architecture
  • API Management guidelines
  • Global policy implementation
  • Webhook flow implementation
  • Policy authoring
  • Service onboarding

On this page

  • Concepts
  • Policy sections
  • Scope and inheritance
  • Global platform policy
  • Product policy
  • Webhook inbound exception
  • Service API policy
  • Operation policy
  • Original caller context and backend identity
  • Caching model
  • Diagnostics model
  • Related pages
PreviousAPIM Webhook Flow Implementation
NextV3 Security Architecture
Edit on GitHubSecurity