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 Guidelines

API Management Guidelines

security
VersionV2V3
architecturev3

API Management Guidelines

These requirements apply to every API deployed to the Rome APIM service. They carry forward the V2 guidelines and add the V3 product scope, capability, edge, and contract rules. Where the deployed platform does not yet comply, the gap ID is shown; the requirement still applies.

API contract and ownership

  • Every API MUST be imported from a version-controlled OpenAPI 3.x contract and deployed through reviewed IaC.
  • Every operation MUST have a stable, unique operationId used by Terraform and policy mapping.
  • The service team MUST own the OpenAPI contract, backend, API policy, operation policies, role requirements, diagnostics, tests, and retirement path.
  • Production portal edits MUST NOT be the source of truth. Emergency changes MUST be reconciled to IaC immediately.
  • APIs MUST be deployed to the APIM instance for their environment. Cross-environment backends, identities, audiences, and named values are prohibited.
  • Breaking changes MUST use a new URI-path major version. Collection endpoints MUST use bounded opaque-cursor pagination. Errors MUST use a stable safe envelope with a code, message, optional details, and correlation ID.
  • Long-running operations MUST return 202 Accepted, Location, and retry guidance rather than block the HTTP request (ADR-0020).

Edge and exposure

  • Public API traffic MUST use the supported Front Door → Application Gateway → APIM path (ADR-0015).
  • APIM MUST reject requests whose X-Azure-FDID does not match ION’s Front Door, except the public synthetic health operations. Not yet enforced globally (gap APIM-02); enforced on the Pigeon Twilio API.
  • APIM MUST NOT be used as a substitute for the Front Door WAF, BFF validation, or domain invariants.

Policy inheritance

  • Product, API, and operation policies MUST inherit their parent with <base /> in every applicable policy section.
  • A product policy MUST call <base /> as its first inbound statement and MUST NOT modify Authorization, X-Authorization, or X-Tenant-Id.
  • Global and product policy changes MUST receive platform and security review (CODEOWNERS) because shared APIM creates a shared blast radius. This includes the MFE product policy implemented by the Signet team.
  • A change that removes or repositions <base /> MUST receive security review because it changes policy order and can bypass inherited controls.
  • Service policy MUST NOT weaken global authentication, tenant validation, correlation, error handling, or diagnostics without an approved exception.
  • Services MUST consume platform-owned fragments rather than copy global policy.
  • Every protected operation MUST have an operation-policy mapping or an equivalent reviewed API-level authorization rule.
  • An OpenAPI security declaration or a Terraform roles_csv value MUST NOT be treated as proof that an APIM role check was deployed. Gap APIM-05: Signet’s operation template ignores roles_csv.

Caller authentication and authorization

  • Protected routes MUST require a signed Microsoft Entra access token.
  • APIM MUST validate token signature, validity, issuer policy, expected audience, tenant claim, and required claims before forwarding.
  • Customer routes MUST verify that the customer tenant is active and onboarded. Failure or ambiguity MUST fail closed.
  • Every protected operation MUST validate the required Ion.* application role or, for end-user sign-in tokens, the user role or delegated sign-in scope defined by the route. A delegated permission MUST NOT substitute for a workload’s application role.
  • MFE BFF routes MUST be published under the MFE product, which validates the capability token with Signet and the tenant or workspace path scope before forwarding. Validation failure, timeout, or error MUST return 403.
  • A user token MUST be accepted only for the audience of the shell application the user signed in to. MFE BFFs MUST bind the capability token to that user token (entra_aud, oid == sub, tenant in scope) rather than accept either token on its own.
  • Products and subscription keys MUST NOT replace Entra authentication or operation authorization.
  • The BFF and domain service MUST perform their own authorization. APIM policy MUST NOT be treated as the only enforcement point.

APIM-to-backend authentication

  • APIM MUST call protected Azure backends using an approved APIM user-assigned managed identity.
  • Policy MUST acquire a token for the intended backend audience and override the backend Authorization header with that APIM token.
  • Backend Function Apps, App Services, Container Apps, Logic Apps, and equivalent HTTP compute MUST enforce Entra OAuth and reject anonymous direct access.
  • Backend OAuth configuration MUST accept only the intended audience and approved APIM principal or application role.
  • Managed-identity token acquisition failure MUST fail closed. Policy MUST NOT fall back to anonymous access, a shared secret, the caller token, or a more privileged identity.
  • An operation that overrides its backend MUST retain equivalent managed- identity authentication.

Caller context

  • APIM MUST override X-Tenant-Id, X-Authorization, Forwarded, and other trusted context headers. Client-supplied values MUST NOT be appended, trusted, or reach a backend. Gap APIM-01: X-Authorization uses exists-action="skip".
  • Until APIM-01 is closed, a backend MUST validate the signature, issuer, audience, and expiry of any X-Authorization token it uses.
  • X-Authorization carries the validated caller token. An API MAY replace it with APIM’s own token when no caller context is needed.
  • X-Authorization MUST be treated as a bearer credential. BFFs and domain services MUST NOT store, log, replay, or propagate it.
  • User tokens MUST terminate at the BFF. Downstream calls MUST use managed identity and minimal validated context.
  • X-Transaction-Id MUST be preserved or generated and propagated for end-to-end correlation.

Routing, traffic, and caching

  • Public paths and backend rewrites MUST be declared and tested per operation.
  • Public and integration routes MUST have caller-appropriate rate limits keyed on a stable caller dimension (user oid, client application, tenant, or source IP for providers). Throttled requests MUST return 429 with Retry-After.
  • Rate-limit keys MUST isolate APIs and callers sufficiently to prevent one API or principal from consuming another’s allowance.
  • Platform concurrency policy MUST protect one backend from exhausting APIM or neighboring services.
  • Only safe, idempotent responses MAY be cached. Cache keys MUST include every tenant, customer, identity, capability, query, header, and representation dimension that changes the response.
  • Customer-scoped responses MUST NOT be reusable across customers.
  • Mutations, credentials, authorization failures, and error responses MUST NOT be cached.

Named values and credentials

  • Environment-specific audiences, client identifiers, tenant settings, the Front Door ID, URLs, and durations MUST use controlled named values or deployment variables rather than hard-coded policy values.
  • Secrets MUST be Key Vault-backed where APIM requires secret configuration.
  • Tenant IDs, application IDs, managed-identity IDs, Front Door IDs, credentials, and production endpoint values MUST NOT be copied into architecture or example policies.
  • Azure-hosted services MUST NOT introduce client secrets or certificates as a substitute for managed identity.

External-provider webhooks

  • A webhook API MAY bypass global inbound Entra policy only when the provider cannot present an ION token and a documented provider-specific validation protocol is enforced by the API or backend.
  • Every bypass MUST use a dedicated API or operation, receive platform and security review, and retain global backend, outbound, and error policy unless an additional exception is approved.
  • A webhook API reached through the edge MUST check X-Azure-FDID at API scope.
  • Webhook validation MUST fail closed when required signatures, validation tokens, shared state, tenant, subscription, timestamp, or replay context is missing, invalid, ambiguous, or unavailable.
  • Signature validation that depends on the external URL MUST rebuild it only from forwarding headers set by the trusted edge.
  • APIM MUST authenticate to the webhook backend using an approved UAMI, and the backend MUST reject anonymous direct access through platform OAuth.
  • Source-IP filtering and rate limits MUST NOT replace provider-level sender validation.
  • Webhook and other unauthenticated APIs MUST NOT include body-logging fragments such as fragment-request-trace, or MUST use a redacting variant. Gap APIM-03.
  • Validation challenges, payload JWTs, signatures, shared state such as clientState, provider secrets, and webhook bodies MUST NOT be logged.
  • The OpenAPI security declaration MUST describe the effective webhook trust model and MUST NOT claim bearer-token enforcement that APIM does not perform.
  • Webhook handlers MUST handle provider retries idempotently where applicable.

The deployed patterns are documented in Webhook flow implementation.

Health endpoints

  • Authentication bypass for synthetic probes MUST be limited to explicitly named public synthetic health operations.
  • Public health responses MUST NOT expose customer data, configuration, identities, dependency details, or exception content.
  • A synthetic APIM health response MUST NOT be represented as backend or end-to-end readiness.
  • Authenticated health operations MUST inherit normal token and role policy.

Diagnostics and privacy

  • Logs MUST include correlation, API, operation, status, duration, and bounded authorization outcome needed for support and security monitoring.
  • Authorization, X-Authorization, X-Capabilities, raw access tokens, signing material, secrets, authorization codes, and complete JWT payloads MUST NOT be logged.
  • Request and response bodies MUST NOT be traced by default. Any exception requires data classification, field-level redaction, access control, retention, and security approval. Gap APIM-03.
  • Email, subject, object ID, tenant ID, and roles MUST be collected only when necessary and protected according to their classification.
  • Diagnostic sampling, destination, access, and retention MUST be declared and reproducible.
  • Operational notifications such as autoscale events MUST go to owned team channels, not personal mailboxes. Gap APIM-04.
  • Policy failures MUST return safe errors and retain enough internal detail for diagnosis without disclosing validation internals to callers.

Validation and lifecycle

  • Deployment MUST test valid access and denials for missing token, wrong issuer, wrong audience, inactive tenant, missing role, invalid capability, injected X-Authorization, missing X-Azure-FDID where enforced, backend-token failure, direct backend access, and cross-customer requests where applicable.
  • The deployed operation inventory MUST be reconciled with OpenAPI and the Terraform operation-policy map.
  • Old major versions SHOULD publish deprecation and sunset information and MUST remain until consumers have completed an agreed migration.
  • Emergency response MUST support route blocking, role removal, APIM identity revocation, backend allow-list removal, or workload shutdown as appropriate.
  • API retirement MUST remove routes, policies, product association, diagnostics, backend role grants, named values used only by that API, and stale DNS or edge configuration.

Implementation procedures and XML examples are in the API Management implementation guide.

On this page

  • API contract and ownership
  • Edge and exposure
  • Policy inheritance
  • Caller authentication and authorization
  • APIM-to-backend authentication
  • Caller context
  • Routing, traffic, and caching
  • Named values and credentials
  • External-provider webhooks
  • Health endpoints
  • Diagnostics and privacy
  • Validation and lifecycle
PreviousAPI Management Architecture
NextAPI Management Implementation
Edit on GitHubSecurity