ION DocsV2
  • 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 V2
  3. V2 Well-Architected
  4. V2 Security
  5. API Management
  6. API Management Guidelines

API Management Guidelines

security
VersionV2V3
architecturev2

API Management Guidelines

These requirements apply to every API deployed to the Rome APIM service.

API contract and ownership

  • Every API MUST be imported from a version-controlled OpenAPI contract.
  • 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.
  • APIs MUST be deployed to the APIM instance for their environment. Cross- environment backends, identities, audiences, and named values are prohibited.

Policy inheritance

  • API and operation policies MUST inherit the platform baseline with <base /> in every applicable policy section.
  • 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.
  • Every protected operation MUST have an operation-policy mapping or an equivalent reviewed API-level authorization rule.
  • An OpenAPI security declaration MUST NOT be treated as proof that an APIM role policy was deployed.

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 approved delegated permission.
  • Customer and advisor routes MUST use their defined issuer, audience, client, and role rules even when they share a backend.
  • Product subscriptions and API keys MUST NOT replace Entra authentication or operation authorization.

APIM-to-backend authentication

  • APIM MUST call protected Azure backends using an approved APIM user-assigned managed identity.
  • The API 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

  • X-Tenant-Id and other trusted context headers MUST be overwritten by APIM; caller-supplied values must not be trusted.
  • X-Transaction-Id MUST be preserved or generated and propagated for end-to-end correlation.
  • X-Authorization MUST be treated as a bearer credential.
  • Original-token forwarding MUST be limited to approved BFF routes that need the user context and terminate that token.
  • Domain APIs and workers MUST NOT depend on, store, log, replay, or propagate X-Authorization.
  • New APIs SHOULD receive minimal validated context rather than the original caller token.

Routing, traffic, and caching

  • Public paths and backend rewrites MUST be declared and tested per operation.
  • 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, 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, 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, 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 security review, and retain global backend, outbound, and error policy unless an additional exception is approved.
  • Webhook validation MUST fail closed when required signatures, validation tokens, shared state, tenant, subscription, timestamp, or replay context is missing, invalid, ambiguous, or unavailable.
  • 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.
  • Validation challenges, payload JWTs, shared state such as clientState, 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.

The deployed pattern is 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, 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.
  • 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.

Validation and lifecycle

  • Deployment MUST test valid access and denials for missing token, wrong issuer, wrong audience, inactive tenant, missing role, 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.
  • 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
  • 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