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. V3 Identity
  6. V3 Identity Workflows
  7. Microservices Identity Workflow

Microservices Identity Workflow

security
VersionV2V3
architecturev3

Microservices Identity Workflow

Every Azure-hosted ION workload authenticates with its own user-assigned managed identity (UAMI) for service-to-service and Azure-resource access (ADR-0013). For a call through APIM, the workload obtains a token for the ION Platform API application. APIM validates that caller and its Ion.* role, authenticates to the protected backend with APIM’s own managed identity, and forwards the validated caller token in X-Authorization. Calls into customer tenants use Workload Identity Federation from the same per-service UAMI.

Mandatory workload-identity boundaries

One UAMI per microservice

Each microservice has a dedicated UAMI per environment. This is a MUST with no exceptions. System-assigned managed identities are not used and UAMIs are never shared between microservices.

Managed identity
One resource group per microservice

A microservice and the Azure resources it owns are deployed in its service resource group, the default ownership, lifecycle, authorization, and cost boundary.

Identity guidelines
RBAC stays inside approved boundaries

A microservice UAMI receives Azure RBAC only in its own resource group or an approved shared-resource group. Other services' groups, subscriptions, and management groups need a Security exception.

Identity architecture
API roles and Azure RBAC stay separate

Ion.* roles on the Platform API app authorize ION API operations; Azure RBAC authorizes Azure resources. Neither substitutes for the other.

Application roles
Protect every HTTP compute endpoint

Azure compute ingress requires Entra authentication for the Platform API audience before application code runs. APIM and private networking are additional controls, not substitutes.

App Service authentication
Federate into customer tenants

Customer-tenant access apps trust each calling workload's own UAMI as a federated identity credential. New apps are federated-only.

Workload Identity Federation
Mandatory boundary

A microservice UAMI MUST receive Azure RBAC only in its own resource group or an explicitly approved shared-resource group. It MUST NOT receive access to another microservice’s resource group, subscription scope, or management-group scope without a documented Security exception that identifies the dependency, rejected narrower scopes, roles, resources, owner, review date, and revocation plan.

Workload populations

This workflow applies to MFE BFFs, the shell SignalR BFF, Signet, synchronous APIs, background workers, event publishers and consumers, daemons, onboarding services, audit services, and integration adapters hosted in Azure. Each microservice has an attributable UAMI and an owning team. Multiple compute resources implementing the same microservice may attach that microservice’s UAMI; unrelated microservices never share one.

Managed identity type

PropertySystem-assigned managed identityUser-assigned managed identity
CreationEnabled as part of one compute resourceCreated as an independent Azure resource and attached to compute
LifecycleCreated and deleted with its parent resourceExplicitly created, attached, detached, and deleted
Pre-authorizationAssignments follow creation of the hostReceives approved assignments before a host is deployed
Host replacementA replacement host gets a new principal and needs new assignmentsIdentity and assignments survive host replacement
Federated identity credentialsNot supported as a federated credential on an Entra applicationRegistered as a federated credential on customer-tenant access apps
ION V3 useNot usedRequired: one UAMI per microservice and environment

Choosing UAMI never permits an identity shared by unrelated services. The UAMI represents one service responsibility and is bounded by that service’s resource group, dependencies, environment, and owner.

Recorded exception: the rome auth identity

The rome auth identity is a single shared UAMI registered as a federated identity credential on the ION Platform API application. Backend Easy Auth uses it, through the OVERRIDE_USE_MI_FIC_ASSERTION_CLIENTID client secret setting name, in place of a client secret for the Platform API registration. It exists because an Entra application accepts at most 20 federated identity credentials, which cannot cover one credential per microservice.

The rome auth identity is used only for Easy Auth against the Platform API application. It holds no Azure RBAC, no Ion.* application roles, and no data access, and it is never used by application code to call an API or resource.

Some services, such as Signet, still configure Easy Auth with a client secret held in Key Vault. That is a migration in progress toward the rome auth identity pattern; the secret’s owner and expiry are tracked until migration completes.

Which operations can I perform with managed identities?

Authorized operators and deployment automation can:

  • create, read, update, and delete UAMI resources;
  • attach or detach a UAMI to supported Azure compute resources;
  • assign Ion.* application roles on the Platform API application to the UAMI service principal for approved API operations;
  • assign Azure RBAC for approved operations in the microservice’s own resource group or an approved shared-resource group;
  • register the UAMI as a federated identity credential on an approved customer-tenant access application;
  • request tokens through the Azure Identity SDK or a platform-native integration;
  • inspect identity changes in Azure Activity Log and sign-ins in Entra workload sign-in logs; and
  • revoke access by removing an app-role, RBAC, or federated-credential entry, detaching the UAMI, disabling the route or workload, or deleting the identity.

ION uses declarative automation as the system of record. Portal operations are for diagnosis or an approved emergency procedure and are reconciled back to source control. A managed identity does not itself grant access; the target still requires an explicit assignment and validates the token and operation.

Service trust flow

For service API calls, the token audience is the ION Platform API application (“Platform API Application”, azsp-ontinue-rome-idm-ion-platform-{env}-01) and Ion.* application roles describe the caller’s permitted operations. For direct Azure data-plane calls, the audience is the target resource and Azure RBAC provides authorization.

A BFF follows this flow only after terminating and authorizing the user request. The user’s token never becomes the service token and is never forwarded: the BFF reads X-Authorization for user context and capability binding and does not pass it on. A worker created by a request obtains its own UAMI token rather than persisting the initiating bearer token.

APIM and backend validation

For service-to-service traffic, APIM validates:

  • signature, validity period, issuer, and the Platform API audience;
  • that the calling UAMI is an approved caller for the route;
  • the Ion.* application role required by the operation; and
  • route, rate, quota, payload, and correlation policies where configured.

APIM then acquires its own managed-identity token with authentication-managed-identity for the Platform API audience and places it in backend Authorization. Token acquisition is fail-closed.

APIM must override X-Authorization with the validated original caller token, so a client-supplied value never reaches a backend. The deployed global policy uses exists-action="skip" and does not yet do this (gap APIM-01). An API whose backend does not need caller context may instead set X-Authorization to APIM’s own token. The backend:

  1. relies on Easy Auth to authenticate APIM for the Platform API audience;
  2. reads X-Authorization to identify the calling workload or user and to check its role or capability, validating the token’s signature, issuer, audience, and expiry until APIM-01 is fixed;
  3. enforces customer context, operation authorization, and domain rules; and
  4. never forwards X-Authorization to another service.

Private networking and platform ingress controls restrict direct backend access. Where direct service invocation is intentionally supported, it is a separate contract in which the target explicitly trusts and authorizes that caller.

OAuth protection for Azure compute ingress

Every HTTP-capable Azure compute resource MUST enforce Microsoft Entra authentication before a request reaches application or workflow code. Anonymous access is prohibited for ION APIs, functions, workflows, containers, callbacks, and administrative endpoints.

This protects the direct Azure hostname as well as traffic routed through APIM. If APIM routing or a network rule is misconfigured, the backend must still reject a request without a valid token.

Platform enforcement

Azure computeRequired inbound protection
Azure App Service and Function AppsEasy Auth (authsettingsV2) with Microsoft Entra ID for the Platform API audience, using the rome auth identity federated credential. Require authentication on all API paths and return 401 rather than redirecting.
Azure Container AppsBuilt-in authentication with Microsoft Entra ID, Require authentication, 401 for unauthenticated API requests, HTTPS only, insecure ingress disabled.
Logic Apps StandardThe App Service authentication layer on request-trigger endpoints with Entra-authenticated calls. Apply network restrictions independently.
Logic Apps ConsumptionAn Entra OAuth authorization policy for request triggers with the exact issuer and audience. Disable SAS when OAuth is the approved path.
Other HTTP-capable Azure computeNative Entra or OAuth ingress where available. Otherwise an approved architecture combining private ingress with application-level JWT validation before release.
Event-only worker with no HTTP ingressNo HTTP surface. Authenticate trigger resources with the worker’s UAMI and Azure RBAC, and do not enable an unused public endpoint.

Platform authentication is not a replacement for application authorization. APIM and the application still validate the approved caller, required Ion.* role, customer context, operation, and domain rules.

Configuration requirements

For every protected compute endpoint:

  • accept tokens only for the environment’s Platform API audience;
  • bind issuer and tenant validation to the Ontinue platform tenant for internal service traffic;
  • require HTTPS and reject unauthenticated API requests with 401;
  • disable anonymous access, platform access keys, SAS callbacks, and default public endpoints that provide a path around authentication;
  • disable the platform token store unless a documented flow needs it;
  • restrict direct ingress with private endpoints or access restrictions where supported;
  • protect deployment, SCM, administration, and diagnostic endpoints separately; and
  • declare a narrowly scoped health-probe exclusion only when required; it exposes no customer data, configuration, dependency details, or operation capability.

Required validation

Release tests call both the APIM route and the reachable direct compute hostname. Verify that:

  1. no token, a malformed, expired, wrong-issuer, or wrong-audience token is rejected before application processing;
  2. a valid token without the route’s Ion.* role is denied;
  3. only an approved UAMI caller can perform the operation;
  4. a client-supplied X-Authorization value is overridden by APIM (fails until APIM-01 is fixed);
  5. a direct-host request cannot bypass authentication, customer isolation, or operation authorization; and
  6. authentication settings, audiences, and network restrictions are checked for drift.

See Authentication and authorization in Azure App Service and Azure Functions, Authentication and authorization in Azure Container Apps, and Secure access and data for workflows in Azure Logic Apps.

Application roles and Azure RBAC

The Platform API application provides the controlled Ion.* role catalogue. Each caller UAMI receives only the roles required for its outbound calls; each route declares and validates its required role.

Azure RBAC is assigned separately for Cosmos DB, Service Bus, Key Vault, Storage, Log Analytics, and other Azure resources:

TargetPermitted assignment scopeApproval requirement
Resource owned by the microserviceThe resource or the microservice’s own resource groupService and resource owner through deployment review
Governed shared platform resourceThe shared resource or its approved shared-resource groupService owner and shared-resource owner
Resource owned by another microserviceProhibited by defaultSecurity exception plus both owners; prefer an API
Subscription or management groupProhibited by defaultSecurity exception only when no narrower scope works

Outbound access to customer tenants

ION workloads that act in customer tenants use multi-tenant access applications consented by the customer. Workload Identity Federation is the standard: each calling workload’s own UAMI is a federated identity credential on the access application, and every new Entra application starts with federated credentials only.

Access applicationPurposeWorkflow
azsp-ontinue-ion-access-read-all-prd-01Read-only Graph and Defender accessCustomer Environment Access
azsp-ontinue-ion-access-mde-write-prd-01Defender for Endpoint write operationsCustomer Environment Access
azsp-ontinue-ion-access-graph-write-prd-01Graph write operationsCustomer Environment Access
azsp-ontinue-ion-access-write-all-prd-01Combined write operationsCustomer Environment Access
azsp-ontinue-ion-access-phishing-write-prd-01Scoped mailbox and phishing analysisMailbox access
azsp-ontinue-ion-access-azure-rbac-prd-01Hollow app for customer-assigned Azure RBACCustomer Azure RBAC

The scope split follows ADR-0010 and the hollow app follows ADR-0011. Existing access applications that still hold Key Vault client secrets are transitional; SRE monitors secret expiry until each migrates to federation. Each application accepts at most 20 federated identity credentials, so the number of calling UAMIs per application is monitored. Implementation detail is in Workload Identity Federation.

CI/CD identity

GitHub Actions authenticate to Azure through OIDC, federated through a per-environment federated credential on the Runway Entra application (ADR-0024). The federation is a Runway prerequisite, configured outside Terraform. Pipelines hold no client secrets. The Runway application is distinct from every runtime microservice UAMI and is not used by application code.

Implementation: acquire a token with a UAMI

Use the Azure Identity SDK and explicitly select the microservice’s UAMI. The client ID is deployment configuration, not a secret; keep its value in the controlled configuration inventory rather than in source or this page.

using Azure.Core;
using Azure.Identity;

var uamiClientId = configuration["ManagedIdentity:ClientId"]
    ?? throw new InvalidOperationException("ManagedIdentity:ClientId is required");
var platformApiUri = configuration["Identity:PlatformApiUri"]
    ?? throw new InvalidOperationException("Identity:PlatformApiUri is required");

// Production workloads use only their own UAMI; no developer or secret fallback.
var credential = new ManagedIdentityCredential(
    ManagedIdentityId.FromUserAssignedClientId(uamiClientId));

var token = await credential.GetTokenAsync(
    new TokenRequestContext([$"{platformApiUri}/.default"]),
    cancellationToken);

using var request = new HttpRequestMessage(HttpMethod.Get, targetUri);
request.Headers.Authorization =
    new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", token.Token);
request.Headers.Add("X-Transaction-Id", correlationId);

using var response = await httpClient.SendAsync(request, cancellationToken);
response.EnsureSuccessStatusCode();

For direct Azure-resource access, use that resource’s scope, such as https://vault.azure.net/.default, and prefer the service’s Azure SDK client, which accepts a TokenCredential. Do not log token.Token, place it in telemetry, persist it, or add a fallback client secret. The SDK handles caching and renewal.

Rationale

DecisionRationaleConsequence
One UAMI per microservice, no SAMI, no sharingStable identity across host replacement, usable as a federated credential, with attribution and blast radius aligned to one serviceEvery service has its own inventory entry, assignments, and federated credentials
Single rome auth identity exception for Easy AuthEntra limits an application to 20 federated credentials, so per-service credentials on the Platform API app cannot scaleThe shared identity holds no RBAC, roles, or data access, so sharing it grants nothing
One resource group per microserviceAligns ownership, lifecycle, deployment, cost, and default RBAC scopeCross-service resource access is exceptional; expose an API instead
Platform API Ion.* rolesA stable, operation-oriented permission catalogue and a uniform backend audienceEach caller receives only required roles, separate from Azure RBAC
APIM authenticates with its own managed identitySeparates caller authorization from backend platform authentication and keeps direct endpoints protectedBackends authenticate APIM and read the caller from X-Authorization
APIM must override X-AuthorizationPrevents a client from injecting caller contextBackends can trust X-Authorization only once APIM owns it; until gap APIM-01 is fixed they validate it
Backend revalidates authorizationPrevents APIM routing or policy errors from becoming bypassesEasy Auth validates APIM; the application enforces role, customer, and domain rules
Workload Identity Federation into customer tenantsRemoves long-lived secrets from customer-tenant accessFederated-credential count per app is monitored; existing secrets are transitional

Step-by-step implementation

1

Define the microservice identity boundary

Owner: Service team

Record the microservice name, environment, owner, compute resources, resource group, inbound and outbound APIs, Azure dependencies, customer-tenant access, data classification, and customer-isolation requirements.

Create a caller-to-target matrix with the target API or resource, audience or scope, required Ion.* role or Azure RBAC role, exact scope, ownership, approval, negative tests, and revocation path. Any dependency on another microservice’s resource group is redesigned as an API call or submitted as a Security exception.

2

Create the service resource group and UAMI

Owner: Service team and platform engineering

Provision one resource group and one UAMI per microservice and environment through the approved infrastructure modules.

resource "azurerm_resource_group" "service" {
  name     = "rg-${var.service_name}-${var.environment}-01"
  location = var.location
}

resource "azurerm_user_assigned_identity" "service" {
  name                = "id-${var.service_name}-${var.environment}-01"
  resource_group_name = azurerm_resource_group.service.name
  location            = azurerm_resource_group.service.location
}

Add the identity, environment, resource group, owners, and review date to the workload-identity inventory.

3

Attach the UAMI to the microservice's hosts

Owner: Service team

Attach the service UAMI only to compute that implements the same microservice. Do not enable a system-assigned identity.

resource "azurerm_linux_function_app" "service" {
  # Existing application configuration omitted.

  identity {
    type         = "UserAssigned"
    identity_ids = [azurerm_user_assigned_identity.service.id]
  }
}

Configure the UAMI client ID as environment-specific application configuration and remove client-secret and certificate settings.

4

Assign Platform API application roles

Owner: API owner and platform identity team

For each approved ION API dependency, assign the required Ion.* role on the Platform API application to the UAMI service principal through declarative automation. Verify that a Platform API token contains only the expected roles. The role value, not its environment-specific GUID, is the contract. Never assign all roles for convenience.

5

Assign Azure RBAC within the permitted boundary

Owner: Service team and resource owner

Grant only the required actions at the narrowest scope.

resource "azurerm_role_assignment" "service_bus_sender" {
  scope                = azurerm_servicebus_namespace.shared.id
  role_definition_name = "Azure Service Bus Data Sender"
  principal_id         = azurerm_user_assigned_identity.service.principal_id
  principal_type       = "ServicePrincipal"
}

Confirm the target is in the service’s own or an approved shared resource group, the owner approved the scope, and any other scope has a current Security exception.

6

Configure Easy Auth and APIM

Owner: Service team, API owner, and platform engineering

Configure Easy Auth for the Platform API audience with the rome auth identity federated credential, 401 for unauthenticated requests, and no anonymous or key/SAS path. Configure the APIM route to validate the caller token and Ion.* role, use authentication-managed-identity for the backend, and override X-Authorization. Test the direct hostname with no token and with wrong-issuer and wrong-audience tokens.

7

Register federated credentials for customer-tenant access

Owner: Service team and platform identity team

When the service calls a customer tenant, register its UAMI as a federated identity credential on the approved access application, confirm the application is below the 20-credential limit, and implement the token exchange described in Workload Identity Federation. Do not add a client secret.

8

Validate, release, inventory, and monitor

Owner: Service team, API owner, and Security

Run positive tests for each approved operation and negative tests for missing roles, over-scoped RBAC, wrong audience or issuer, another service’s UAMI, another customer’s context, injected X-Authorization, direct-backend access, and unavailable managed identity with no fallback. Record assignments, approvals, evidence, review date, and revocation procedure. Alert on unexpected callers, cross-scope denials, and role or RBAC drift.

Revocation and offboarding

To remove one capability, delete the relevant app-role, Azure RBAC, or federated credential entry and verify that the operation is denied. When revocation cannot wait for token expiry, detach the UAMI, block the route, stop the workload, or deny network access.

To retire a workload, stop callers, remove route access, remove app-role and RBAC assignments and federated credentials on access applications, detach the UAMI, and delete it after dependency checks. Orphaned identities and assignments are found through periodic inventory reconciliation.

Audit and failure behavior

Entra workload sign-ins, app-role changes, Azure RBAC changes, federated-credential changes, APIM decisions, backend authorization failures, and Azure-resource denials are auditable. Service logs record workload identity, target audience category, operation, customer context where applicable, and correlation ID. They never include bearer tokens, client assertions, or authorization headers.

Token acquisition failure, invalid audience, unapproved caller, or absent role fails closed. Authentication failures are distinguished from authorization denials. Transient errors use bounded retries; code never falls back to secrets, user tokens, or a more privileged identity.

Related pages

  • Workflow overview
  • Shell and MFE
  • Customer Azure RBAC
  • Mailbox access
  • ServiceNow
  • Identity architecture
  • Identity guidelines
  • Managed identity
  • Application roles
  • App Service authentication
  • Workload Identity Federation
  • API Management
  • ADR-0013 — Service-to-service authentication

On this page

  • Mandatory workload-identity boundaries
  • Workload populations
  • Managed identity type
  • Recorded exception: the rome auth identity
  • Which operations can I perform with managed identities?
  • Service trust flow
  • APIM and backend validation
  • OAuth protection for Azure compute ingress
  • Platform enforcement
  • Configuration requirements
  • Required validation
  • Application roles and Azure RBAC
  • Outbound access to customer tenants
  • CI/CD identity
  • Implementation: acquire a token with a UAMI
  • Rationale
  • Step-by-step implementation
  • Revocation and offboarding
  • Audit and failure behavior
  • Related pages
PreviousMailbox Access Identity Workflow
NextServiceNow Inbound Identity Workflow
Edit on GitHubSecurity