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 Implementation
  7. APIM Webhook Flow Implementation

APIM Webhook Flow Implementation

security
VersionV2V3
architecturev3

APIM Webhook Flow Implementation

External webhook providers cannot present an ION Entra access token. ION therefore supports an explicit webhook exception in which a dedicated API omits global inbound policy inheritance and delegates sender-specific validation to the webhook implementation.

V3 has two deployed webhook APIs:

WebhookProvider proofEdge check at APIMSource
Phoenix Microsoft Graph (carried over from V2)Validation challenge, payload validation JWTs, clientState, tenant, subscription IDNonephoenix/api/policies/apim-phoenix-graph-webhook-api-policy.xml, phoenix/infrastructure/phoenix_webhooks_api.tf
Pigeon TwilioX-Twilio-Signature (HMAC over URL and parameters)X-Azure-FDID must match {{APIM-FRONT-DOOR-ID}}pigeon/infrastructure/policies-twilio-webhooks/apim-api-policy.xml, pigeon/infrastructure/main-twilio-webhooks-apim.tf

Neither exception is an unauthenticated-backend pattern. APIM still authenticates to the OAuth-protected Function App with its managed identity, while the application validates the provider’s proof.

Why the webhook bypass exists

The normal global inbound policy requires an Authorization bearer token, validates its tenant and audience, and requires role claims. Webhook providers use a different proof model, so the dedicated webhook APIs do not inherit normal caller JWT validation. This exception MUST remain limited to operations whose provider validation is implemented and tested in application code.

Exact policy-inheritance behavior

Both webhook APIs bypass only global inbound policy. Global backend, outbound, and error sections still run.

Consequences of omitting inbound <base /> at API scope include:

  • no required caller Authorization header;
  • no global transaction-ID creation;
  • no pre-validation tenant lookup or customer allow-list check;
  • no global caller JWT, issuer, audience, or role validation;
  • no trusted X-Tenant-Id or X-Authorization creation;
  • no global Forwarded header or request trace (each API supplies its own); and
  • no future global X-Azure-FDID check. When APIM-02 is fixed globally, each webhook API keeps its own check, as Pigeon does today. Phoenix needs one added.

The inherited global backend still applies per-API concurrency and the bounded forward-request. Global response and error fragments still execute.

Webhook exception path

For Phoenix, the X-Azure-FDID and proof-header checks are absent, so the flow goes straight from the API inbound to the rate limit.

Pigeon Twilio webhook

APIM configuration

Verified in pigeon/infrastructure/main-twilio-webhooks-apim.tf:

ItemValue
API pathpig-ext-twilio
Productapim-product-pigeonexttwilio-{env}-{loc}-01
BackendCustomerContact Function App
Contractpigeon/api/pigeon_twilio_webhooks_api.yaml
Operation IDPublic pathBackend rewriteContract details
post-webhook-twilio-call-received-v1POST /v1/webhooks/twilio/call-received/v1/webhooks/twilio/call-receivedForm-urlencoded Twilio Voice parameters; 200 returns TwiML (application/xml)
post-webhook-twilio-call-initiated-v1POST /v1/webhooks/twilio/call-initiated/v1/webhooks/twilio/call-initiatedAlso requires query metadata incident_number, severity, title, ion_workspace_id, ion_security_incident_id, campaign_id; 200 returns TwiML
post-webhook-twilio-outbound-call-status-events-v1POST /v1/webhooks/twilio/outbound-call-status-events/v1/webhooks/twilio/outbound-call-status-eventsSame query metadata as call-initiated; 200 OK

The contract declares a BearerAuth scheme component but does not attach it to these operations; each operation instead requires X-Twilio-Signature. This correctly describes the effective trust model. Removing the unused component would avoid confusion.

Deployed API policy

<policies>
  <inbound>
    <!-- Intentionally no inbound base: Twilio cannot present an ION token. -->
    <check-header name="X-Azure-FDID" failed-check-httpcode="403"
      failed-check-error-message="Invalid request. The webhook is not routed through the front door."
      ignore-case="false">
      <value>{{APIM-FRONT-DOOR-ID}}</value>
    </check-header>
    <check-header name="X-Twilio-Signature" failed-check-httpcode="401"
      failed-check-error-message="Not authorized request. The webhook request is missing the X-Twilio-Signature header."
      ignore-case="false" />

    <set-backend-service base-url="${globals.backend_base_url}" />

    <set-variable name="twilioWebhooksLimitCounterKey"
      value="@(context.Api.Id + &quot;-&quot; + context.Request.IpAddress)" />
    <rate-limit-by-key calls="100" renewal-period="60"
      counter-key="@(context.Variables.GetValueOrDefault&lt;string&gt;(&quot;twilioWebhooksLimitCounterKey&quot;, &quot;none&quot;))"
      increment-condition="@(context.Response.StatusCode &gt;= 200 &amp;&amp; context.Response.StatusCode &lt; 400)"
      remaining-calls-variable-name="twilioWebhooksRemainingCallsPerIp"
      remaining-calls-header-name="X-RateLimit-Twilio-Webhooks-Remaining-Ip" />
    <!-- trace of rate-limit counters omitted -->

    <set-header name="Forwarded" exists-action="override">
      <value>@("proto=" + context.Request.OriginalUrl.Scheme + ";host=" + context.Request.OriginalUrl.Host + ";path=" + context.Request.OriginalUrl.Path + ";")</value>
    </set-header>

    <include-fragment fragment-id="fragment-request-trace" />  <!-- APIM-03: logs form body -->

    <authentication-managed-identity
      resource="{{APIM-AZURE-AD-APPLICATION-ID}}"
      client-id="{{APIM-MSI-CLIENT-ID}}"
      output-token-variable-name="msi-access-token"
      ignore-error="false" />
    <set-header name="Authorization" exists-action="override">
      <value>@("Bearer " + (string)context.Variables["msi-access-token"])</value>
    </set-header>
  </inbound>
  <backend><base /></backend>
  <outbound>
    <base />
    <set-header name="x-aspnet-version" exists-action="delete" />
    <set-header name="x-powered-by" exists-action="delete" />
  </outbound>
  <on-error><base /></on-error>
</policies>

The operation policy calls <base /> and rewrites the URI only.

At APIM, the X-Twilio-Signature check verifies only that the header is present. The cryptographic check happens in the application. The rate limit is keyed on API and source IP and counts successful responses; it is not proof that the sender is Twilio.

Signature validation in the handler

Verified in pigeon/app/Ontinue.Ion.Pigeon.CustomerContactFunc/Startup/Twilio/TwilioSignatureValidationMiddleware.cs:

  • The middleware validates with the Twilio SDK RequestValidator and the auth token from TwilioConfig.AuthToken. Inferred: the token is sourced from App Configuration or Key Vault.
  • It is registered with UseWhen for exactly the three webhook function names (MiddlewareInitializer.cs). Those functions are marked .Unprotected(...) in the ION authentication middleware (ServiceInitializer.cs), so this middleware is their only sender check.
  • It throws UnauthorizedAccessException when the signature is missing or invalid (fail closed).
  • It rebuilds the public URL from X-Forwarded-Host and X-Forwarded-Proto and strips the /api prefix. Without those headers it falls back to the request URL, which then fails validation.
  • Tests: TwilioSignatureValidationMiddlewareTests.cs.

Inferred: Front Door sets the forwarded headers. The code does not enforce that they came from the trusted edge. Forging them still requires a valid HMAC for the forged URL, which needs the auth token, so the risk is low. The APIM X-Azure-FDID check also limits who can reach the handler.

Phoenix Microsoft Graph webhook

The Phoenix flow is unchanged from V2. Graph uses three proofs:

  1. an endpoint-ownership challenge: a validationToken query value that the endpoint returns as plain text;
  2. Graph-issued validation JWTs in resource-data notification payloads; and
  3. the subscription’s clientState, tenant or organization ID, and subscription ID on every notification.

Deployed API policy

The policy matches the V2 page: no inbound <base />, backend selection, a 500-per-minute IP rate limit, Forwarded override, fragment-request-trace, and APIM UAMI token acquisition that overrides Authorization. It has no X-Azure-FDID check.

<inbound>
  <!-- Intentionally no inbound base. No X-Azure-FDID check (APIM-02). -->
  <set-backend-service base-url="${globals.backend_base_url}" />
  <rate-limit-by-key calls="500" renewal-period="60"
    counter-key="@(context.Request.IpAddress)"
    increment-condition="@(context.Response.StatusCode &gt;= 200 &amp;&amp; context.Response.StatusCode &lt; 400)"
    remaining-calls-variable-name="remainingCallsPerIP" />
  <set-header name="Forwarded" exists-action="override">...</set-header>
  <include-fragment fragment-id="fragment-request-trace" />  <!-- APIM-03 -->
  <authentication-managed-identity
    resource="{{APIM-AZURE-AD-APPLICATION-ID}}"
    client-id="{{APIM-MSI-CLIENT-ID}}"
    output-token-variable-name="msi-access-token"
    ignore-error="false" />
  <set-header name="Authorization" exists-action="override">...</set-header>
</inbound>
Public operationBackend rewrite
POST /v1/subscriptions/webhooks/lifecycle/v1/subscriptions/webhooks/lifecycle
POST /v1/subscriptions/webhooks/resource/v1/subscriptions/notifications/resource-change

Application validation

  • Challenge: when validationToken is present, both handlers return it with 200 and text/plain. The handlers also log the token (Verified in ResourceNotificationHandlerFunc.cs and LifeCycleNotificationHandlerFunc.cs).
  • Resource-data notifications: Phoenix validates each payload JWT against the configured tenant and client audience, then checks tenant, clientState, and subscription ID before queuing. JwtTokenValidator.AreTokensValid returns true for an empty token list (Verified), which weakens this path.
  • Lifecycle notifications: validated by organizationId (falling back to tenantId), expected tenant, clientState, and a non-empty subscription ID. Invalid notifications are discarded; the handler returns 202.
  • Middleware: the two webhook functions are excluded from the normal authentication and authorization middleware, so handler validation is mandatory for them.

The full Phoenix walkthrough, including code samples, remains in the V2 webhook flow.

Required webhook guardrails

A webhook API that bypasses global inbound policy MUST:

  • use a dedicated external API, product, and explicit operation-policy map;
  • omit inbound <base /> only at the reviewed API boundary;
  • check X-Azure-FDID against {{APIM-FRONT-DOOR-ID}} at API scope;
  • check that the provider’s proof header is present at API scope where the provider uses one;
  • document the provider’s challenge and notification-authentication protocol;
  • validate provider signatures, JWTs, shared state, or equivalent cryptographic proof in the application before trusting the payload, using the provider’s supported library;
  • rebuild any URL used in signature validation only from trusted edge headers;
  • validate subscription, tenant/customer, event type, timestamp, and replay context where the provider supplies them;
  • authenticate APIM to an OAuth-protected backend with a narrowly authorized UAMI;
  • fail closed when provider validation data is absent, invalid, ambiguous, or unavailable;
  • rate-limit and bound request size, processing time, and queue work;
  • handle provider retries idempotently, for example keyed on Twilio CallSid;
  • acknowledge only after validation and durable acceptance required by the provider protocol;
  • not include body-logging fragments such as fragment-request-trace, or use a redacting variant;
  • avoid logging validation tokens, payload JWTs, signatures, clientState, provider secrets, complete bodies, phone numbers, or authorization headers; and
  • include negative tests proving the global-policy bypass cannot be applied to other API operations.

Source-IP filtering may be added as defense in depth when the provider publishes a reliable range, but it must not replace provider-level validation.

Current implementation risks

RiskWebhookDeployed behaviorRequired dispositionStatus
No edge check (APIM-02)PhoenixNo X-Azure-FDID check; the API is reachable directly on the APIM gateway.Add the same check-header as Pigeon.Open
Full-body APIM tracing (APIM-03)Bothfragment-request-trace logs the full body: Graph notifications, and Twilio form data including caller and callee phone numbers.Remove the fragment or use a bounded, redacting webhook fragment.Open
No transaction-ID creationBothWebhook API inbound does not set X-Transaction-Id.Create a gateway correlation ID at API scope.Open
Validation challenge loggingPhoenixBoth handlers log validationToken.Remove token values from logs.Open
Empty validation-token collectionPhoenixResource token validation succeeds when the list is empty.Require at least one valid token for resource-data notifications.Open
OpenAPI security mismatchPhoenixThe contract declares BearerAuth while APIM performs no caller bearer validation.Model the provider security semantics.Open
Unused bearer componentPigeonBearerAuth is declared but not attached.Remove it to avoid confusion.Low, open
Forwarded-header trustPigeonURL rebuilt from X-Forwarded-* without checking origin; mitigated by HMAC and the FDID check.Document as accepted, or restrict to known edge hosts.Low, open
Broad webhook exceptionBothNormal middleware is skipped by function-name classification.Keep the allow-list minimal and require sender-validation tests for every entry.Ongoing

Validation checklist

  • A request without the expected X-Azure-FDID is rejected with 403 (Pigeon today; Phoenix after APIM-02).
  • A Twilio request without X-Twilio-Signature is rejected with 401 at APIM.
  • A Twilio request with an invalid signature, or a valid signature for a different URL or parameter set, is rejected by the middleware.
  • A Graph endpoint-validation request receives the exact token as text/plain without exposing it in logs.
  • Webhook requests do not require an ION caller bearer token and do not execute global inbound JWT or tenant policy.
  • API policy acquires the expected APIM UAMI token and overrides backend Authorization.
  • Direct anonymous calls to either Function App are rejected by platform OAuth.
  • Global backend concurrency and forwarding still execute.
  • Resource-data notifications without validation JWTs are rejected.
  • Wrong tenant, clientState, or missing subscription ID is not queued.
  • Duplicate provider delivery does not duplicate non-idempotent business effects.
  • Request-size and rate-limit behavior is tested.
  • No webhook token, signature, clientState, phone number, or full payload appears in APIM or application logs.
  • Removing webhook-specific validation causes security tests to fail.

Related pages

  • Global policy implementation
  • Policy model
  • Policy authoring
  • Service onboarding
  • Deployment and debugging

On this page

  • Why the webhook bypass exists
  • Exact policy-inheritance behavior
  • Webhook exception path
  • Pigeon Twilio webhook
  • APIM configuration
  • Deployed API policy
  • Signature validation in the handler
  • Phoenix Microsoft Graph webhook
  • Deployed API policy
  • Application validation
  • Required webhook guardrails
  • Current implementation risks
  • Validation checklist
  • Related pages
PreviousAPIM Service Onboarding
NextAPI Management Policy Model
Edit on GitHubSecurity