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 Implementation
  7. Managed Identity

Managed Identity

security
VersionV2V3
architecturev3

Managed Identity

Every ION microservice must have its own user-assigned managed identity (UAMI). That identity is the microservice’s only credential for ION APIs, Azure resources, and customer-tenant access applications. A client secret or certificate is not an alternative or fallback.

  • One UAMI per microservice. There are no exceptions to this rule.
  • System-assigned managed identities (SAMI) are not used for ION microservices.
  • Shared UAMIs are disallowed. A microservice never uses another microservice’s identity.
The only shared identity

The shared rome auth identity is the single recorded exception. It exists only so Easy Auth can authenticate to the ION Platform API app without a secret, because an Entra application accepts at most 20 Federated Identity Credentials. It holds no Azure RBAC, no Ion.* roles, and no data access, and application code never uses it. Configure it with App Service authentication, not with this runbook.

Prerequisites

  • An accountable microservice owner and the owners of each target resource or API.
  • The microservice’s own resource group and the Azure hosts that run it (Function Apps and their slots, App Services, or Container Apps).
  • A caller-to-target matrix listing audience, operation, Ion.* application role, Azure RBAC role, and resource scope.
  • Runway Terraform support for the identity, attachment, RBAC, and application-role assignments (ADR-0024).
  • A security-exception ADR for any RBAC grant outside the microservice’s own resource group.

Identity model

The microservice UAMI is used for three distinct purposes. Keep them separate: Azure RBAC does not grant an ION API operation, an Ion.* role does not grant Azure-resource access, and neither grants customer-tenant access, which comes from customer consent or customer RBAC through workload identity federation.

Provision and attach

1

Declare the microservice UAMI

Owner: Service team

Declare the UAMI as a standalone resource in the microservice’s own resource group and environment. Name it after the microservice, not after a team or caller.

resource "azurerm_user_assigned_identity" "uamsi" {
  name                = "id-${var.service_name_short}-${var.environment}-${var.location_short}-${var.instance_version}"
  resource_group_name = azurerm_resource_group.rg.name
  location            = azurerm_resource_group.rg.location
  tags                = azurerm_resource_group.rg.tags
}

Do not declare SystemAssigned identity on the host. Do not reference another microservice’s UAMI.

2

Attach the UAMI to every host of the microservice

Owner: Service team

Attach the UAMI to each host and deployment slot of the same microservice, and make it the identity the platform uses for Key Vault references and host bindings.

resource "azurerm_windows_function_app" "FunctionApp" {
  # ...
  identity {
    type         = "UserAssigned"
    identity_ids = [azurerm_user_assigned_identity.uamsi.id]
  }

  key_vault_reference_identity_id = azurerm_user_assigned_identity.uamsi.id

  app_settings = {
    ManagedIdentityClientId = azurerm_user_assigned_identity.uamsi.client_id

    AzureWebJobsStorage__credential = "managedidentity"
    AzureWebJobsStorage__clientId   = azurerm_user_assigned_identity.uamsi.client_id

    RomeSvcBus__fullyQualifiedNamespace = "<namespace>.servicebus.windows.net"
    RomeSvcBus__credential              = "managedidentity"
    RomeSvcBus__clientid                = azurerm_user_assigned_identity.uamsi.client_id
  }
}

A Function App or App Service that uses Easy Auth also attaches the rome auth identity; that attachment and its settings are covered only by App Service authentication.

Remove any client-secret, certificate, connection-string, or account-key setting from the host and pipeline. Do not keep a credential fallback.

3

Assign Azure RBAC at the microservice resource group

Owner: Service team

Assign data-plane and control-plane roles to the UAMI at the scope of the microservice’s own resource group, or at a narrower resource inside it. Cross resource-group grants require a security-exception ADR.

resource "azurerm_role_assignment" "kv_secrets_user" {
  scope                = module.keyvault.output_keyvault_id
  role_definition_name = "Key Vault Secrets User"
  principal_id         = azurerm_user_assigned_identity.uamsi.principal_id
}

resource "azurerm_cosmosdb_sql_role_assignment" "cosmos_operator" {
  resource_group_name = azurerm_resource_group.rg.name
  account_name        = azurerm_cosmosdb_account.service.name
  role_definition_id  = azurerm_cosmosdb_sql_role_definition.operations.id
  principal_id        = azurerm_user_assigned_identity.uamsi.principal_id
  scope               = azurerm_cosmosdb_account.service.id
}

Use the narrowest built-in or custom role that covers the operation (for example Azure Service Bus Data Sender rather than Azure Service Bus Data Owner). Disable local and key-based authentication on the target resource.

4

Assign the Ion.* application roles the microservice calls with

Owner: Service team, approved by the target API owner

Assign only the Ion.* roles the microservice must hold when it calls other ION APIs. Roles are defined on the ION Platform API app (azsp-ontinue-rome-idm-ion-platform-{env}-01); see Application roles for the vocabulary.

Application-role assignments to a managed identity cannot be made in the portal. Use Terraform where the azuread provider is available to the pipeline:

data "azuread_service_principal" "platform_api" {
  display_name = "azsp-ontinue-rome-idm-ion-platform-${var.environment}-01"
}

resource "azuread_app_role_assignment" "incidents_read" {
  app_role_id         = data.azuread_service_principal.platform_api.app_role_ids["Ion.SecurityIncidents.Read"]
  principal_object_id = azurerm_user_assigned_identity.uamsi.principal_id
  resource_object_id  = data.azuread_service_principal.platform_api.object_id
}

Or Microsoft Graph PowerShell from an approved automation context:

Connect-MgGraph -Scopes "AppRoleAssignment.ReadWrite.All","Application.Read.All"

$platformApi = Get-MgServicePrincipal -Filter "displayName eq 'azsp-ontinue-rome-idm-ion-platform-<env>-01'"
$appRole     = $platformApi.AppRoles | Where-Object { $_.Value -eq 'Ion.SecurityIncidents.Read' }
$uamiSp      = Get-MgServicePrincipal -Filter "displayName eq 'id-<service>-<env>-<region>-01'"

New-MgServicePrincipalAppRoleAssignment `
  -ServicePrincipalId $uamiSp.Id `
  -PrincipalId $uamiSp.Id `
  -ResourceId $platformApi.Id `
  -AppRoleId $appRole.Id

Do not use the retired AzureAD PowerShell module. Never assign Ion.* roles to the rome auth identity.

5

Use the UAMI in code with an explicit client ID

Owner: Service team

Always select the microservice UAMI by client ID. A host may carry the rome auth identity as well, so an unqualified credential can pick the wrong identity.

using Azure.Core;
using Azure.Identity;

var clientId = configuration["ManagedIdentityClientId"];

// Preferred in hosted code: no developer-credential fallback in Azure.
TokenCredential credential = new ManagedIdentityCredential(clientId);

// Acceptable where local development needs the credential chain;
// the managed identity is still pinned by client ID.
TokenCredential chained = new DefaultAzureCredential(new DefaultAzureCredentialOptions
{
    ManagedIdentityClientId = clientId
});

// Token for the ION Platform API app; the roles claim carries the assigned Ion.* roles.
AccessToken token = await credential.GetTokenAsync(
    new TokenRequestContext(new[] { "api://<ion-platform-api-app-id>/.default" }),
    cancellationToken);

// Azure SDK clients take the credential directly.
var secrets = new SecretClient(new Uri(keyVaultUri), credential);

Never log, persist, or forward the token. Calls into customer tenants use the same UAMI through workload identity federation.

6

Enforce at the target

Owner: Target API owner

APIM validates the caller’s token: signature, issuer, lifetime, and aud against the environment allow-list of supported client application audiences (single-tenant and multi-tenant). The global policy requires a roles claim, and the operation policy enforces the required Ion.* role. APIM then authenticates to the backend with its own managed identity and forwards the validated caller token in X-Authorization, which it must override so a client-supplied value cannot reach the backend (not yet enforced; gap APIM-01). The backend’s Easy Auth accepts only the ION Platform API audience. The domain service enforces customer, resource, and business rules.

7

Record the identity in inventory

Owner: Platform identity

Record the UAMI, the microservice, attached hosts, owners, Ion.* role assignments, Azure RBAC assignments and scopes, federated credentials it is registered as, and the next review date. Follow Lifecycle and operations.

Deploy identity creation before assignments, assignments before workload activation, and activate the workload only after propagation and validation.

Positive validation

  • From the deployed host, acquire a token for the intended target without any configured secret or certificate.
  • Perform one non-destructive allowed ION API operation and one allowed Azure-resource operation, as applicable.
  • Confirm the target identifies the expected UAMI principal and the expected Ion.* role or RBAC assignment.
  • Replace or restart the host, or swap a slot, and confirm access is unchanged.
  • Confirm telemetry contains the identity reference, target, decision, and correlation ID but not the token.

Negative validation

Verify denial for each applicable case:

  • no application-role or RBAC assignment;
  • wrong target audience;
  • another microservice’s UAMI, and the rome auth identity, calling the same target;
  • a valid identity attempting an unassigned operation or a resource outside its resource group;
  • a valid role attempting another customer’s resource;
  • a user token presented directly to the backend; and
  • the managed identity endpoint unavailable, with no secret or certificate fallback.

Rollback and revocation

For a failed rollout, disable the new workload revision, restore the prior attachment and assignment declaration, and retest allowed and denied paths.

For decommissioning:

  1. Stop or detach all hosts so the identity cannot obtain new tokens.
  2. Remove Ion.* application-role assignments and Azure RBAC assignments declaratively.
  3. Remove every Federated Identity Credential that names the UAMI as subject on customer access applications.
  4. Verify access fails after token and authorization caches expire. Managed identity tokens are cached for up to about 24 hours, so incident response must not rely on removal alone; see Lifecycle and operations.
  5. Delete the UAMI only after attachments, assignments, and federated credentials are removed.
  6. Remove inventory entries only after audit evidence, revocation result, and retention requirements are satisfied.

Ownership and evidence

The service team owns the UAMI, its attachment, and SDK configuration. Target API and resource owners approve roles and scopes. Platform identity owns the Platform API app, the rome auth identity, and the inventory. Retain the caller-target matrix, approvals, declarative diff, pipeline output, safe positive and negative tests, assignment inventory, and decommission result.

Related pages

  • V3 Identity Standard
  • Identity architecture
  • Microservices workflow
  • App Service authentication
  • Workload identity federation
  • Application roles
  • ADR-0013 — Service-to-service authentication

On this page

  • Prerequisites
  • Identity model
  • Provision and attach
  • Positive validation
  • Negative validation
  • Rollback and revocation
  • Ownership and evidence
  • Related pages
PreviousMailbox-Scoped Access
NextWorkload Identity Federation
Edit on GitHubSecurity