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. Workload Identity Federation

Workload Identity Federation

security
architecturev3

Workload Identity Federation

Workload identity federation is the standard credential for every ION Entra application that a workload or pipeline authenticates as. The caller presents a token it already holds, issued to its own identity, as a client assertion. Entra accepts it because the application trusts that issuer and subject through a Federated Identity Credential (FIC). No client secret or certificate exists to store, rotate, or leak.

This runbook covers two patterns and the migration of existing secret-based access applications:

PatternFederated application or identityTrusted tokenUsed for
Customer-tenant accessMulti-tenant access application (for example azsp-ontinue-ion-access-read-all-prd-01)The calling microservice’s own UAMI tokenGraph, Defender for Endpoint, mailbox, and customer Azure resources in a consented customer tenant
CI/CDRunway Entra application (per-environment federated credential)GitHub Actions OIDC token for an approved repository and environmentRunway deployments (ADR-0024)

Easy Auth uses the same mechanism with the shared rome auth identity and is covered separately by App Service authentication.

Prerequisites

  • The calling microservice already has its own UAMI (Managed identity). Shared UAMIs are disallowed, so every caller is a distinct FIC subject.
  • The target access application exists and its permission set matches ADR-0010 or ADR-0011.
  • Approval from the access application owner for the new caller, recorded in the caller-to-target matrix.
  • Platform identity rights to manage federated credentials on the application through the identity automation pipeline.
  • For CI/CD: the GitHub repository, the GitHub environment name, and the Runway Entra application for that environment.

Token exchange

The UAMI token never leaves Ontinue’s control as a credential: it is only valid as an assertion for applications that list it as a FIC, and it is short lived. Customer authorization is unchanged by the credential type; consent, Exchange RBAC for Applications, and Azure RBAC all key off the enterprise application in the customer tenant.

Federated credential parameters

FieldCustomer-tenant accessCI/CD
Issuerhttps://login.microsoftonline.com/{ontinueTenantId}/v2.0https://token.actions.githubusercontent.com
SubjectPrincipal (object) ID of the calling UAMIrepo:{org}/{repo}:environment:{environmentName}
Audienceapi://AzureADTokenExchangeapi://AzureADTokenExchange
Holder of the FICMulti-tenant access application in the Ontinue tenantRunway Entra application

The subject is the UAMI’s principal (object) ID, not its client ID. Using the client ID is the most common configuration error and fails with an assertion subject mismatch.

Configure customer-tenant access

1

Confirm the access application is federated-only

Owner: Platform identity

Every new Entra application starts with federated credentials only. Confirm the application has no password or key credentials before adding callers:

Connect-MgGraph -Scopes "Application.Read.All"

$app = Get-MgApplication -Filter "displayName eq 'azsp-ontinue-ion-access-read-all-prd-01'" `
  -Property "id,appId,displayName,passwordCredentials,keyCredentials"

$app.PasswordCredentials.Count   # expect 0 for a new application
$app.KeyCredentials.Count        # expect 0

An existing application that still holds a secret follows Migrate a secret-based access application instead of acquiring additional secrets.

2

Add one FIC per calling workload UAMI

Owner: Platform identity

Add a FIC for each approved calling microservice. Name it after the microservice so the inventory maps directly to callers.

data "azuread_application" "access_read_all" {
  display_name = "azsp-ontinue-ion-access-read-all-prd-01"
}

resource "azuread_application_federated_identity_credential" "incident_enricher" {
  application_id = data.azuread_application.access_read_all.id
  display_name   = "fic-incident-enricher-prd"
  description    = "UAMI of the incident enricher microservice"
  audiences      = ["api://AzureADTokenExchange"]
  issuer         = "https://login.microsoftonline.com/${var.ontinue_tenant_id}/v2.0"
  subject        = var.incident_enricher_uami_principal_id
}

Resolve the UAMI principal ID from the microservice’s Terraform output or a data source at deployment time; do not paste production object IDs into source.

3

Check the 20-FIC budget

Owner: Platform identity

An Entra application accepts at most 20 FICs. Before adding a caller, count the existing credentials:

(Get-MgApplicationFederatedIdentityCredential -ApplicationId $app.Id).Count

Alert at 16 and escalate to architecture before the limit is reached. The answer is never to share a UAMI between microservices; options are reviewed through an ADR, for example consolidating a caller’s responsibilities or splitting the application by permission set.

4

Acquire customer-tenant tokens in code

Owner: Service team

Chain the microservice’s own ManagedIdentityCredential, selected by client ID, into a ClientAssertionCredential for the access application and the customer tenant:

using Azure.Core;
using Azure.Identity;
using Microsoft.Graph;

const string TokenExchangeAudience = "api://AzureADTokenExchange";

var managedIdentityClientId = configuration["ManagedIdentityClientId"]; // the microservice UAMI
var accessAppClientId       = configuration["AccessApps:ReadAll:ClientId"];

var managedIdentity = new ManagedIdentityCredential(managedIdentityClientId);

TokenCredential CustomerCredential(string customerTenantId) =>
    new ClientAssertionCredential(
        customerTenantId,
        accessAppClientId,
        async ct =>
        {
            var context = new TokenRequestContext(new[] { $"{TokenExchangeAudience}/.default" });
            AccessToken miToken = await managedIdentity.GetTokenAsync(context, ct).ConfigureAwait(false);
            return miToken.Token;
        });

// Microsoft Graph in the customer tenant
var graph = new GraphServiceClient(
    CustomerCredential(customerTenantId),
    new[] { "https://graph.microsoft.com/.default" });

// Azure Resource Manager in the customer tenant (hollow application):
// request "https://management.azure.com/.default" with the same credential.

Resolve customerTenantId from the active onboarding record, never from caller input. Cache one credential per tenant and access application; the Azure SDK caches tokens. Never log, persist, or forward the assertion or the resulting token.

5

Record the federation in inventory

Owner: Platform identity

Record the application, FIC name, issuer, subject UAMI and owning microservice, approval, review date, and current FIC count. Follow Lifecycle and operations.

Configure CI/CD federation

Runway workflows authenticate to Azure with the GitHub Actions OIDC token, federated through a per-environment federated credential on the Runway Entra application (ADR-0024). This federation is a prerequisite for Runway to work. It is configured on the application by platform engineering and is not managed in Terraform.

1

Add an environment-scoped FIC to the Runway Entra application

Owner: Platform engineering

Restrict the subject to one approved repository and GitHub environment. Do not use branch, pull-request, or wildcard subjects for deployment identities.

az ad app federated-credential create \
  --id "<runway-app-id>" \
  --parameters '{
    "name": "gh-<repo>-<environment>",
    "issuer": "https://token.actions.githubusercontent.com",
    "subject": "repo:<org>/<repo>:environment:<environment>",
    "audiences": ["api://AzureADTokenExchange"]
  }'

Record the credential, its subject, the approving change, and the review date in the identity inventory, because no Terraform state captures it.

2

Grant deployment roles at the required scope

Owner: Platform engineering

Assign the Runway application’s service principal only the roles the deployment needs, at the subscription, resource-group, or resource scope it deploys to. Prefer Contributor with a scoped, conditioned Role Based Access Control Administrator assignment over Owner.

3

Configure the workflow without a secret

Owner: Service team

The workflow requests an OIDC token and passes only non-secret identifiers:

permissions:
  id-token: write
  contents: read

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: bcinc-prod
    steps:
      - uses: azure/login@v3
        with:
          client-id: ${{ vars.AZURE_CLIENT_ID }}
          tenant-id: ${{ vars.AZURE_TENANT_ID }}
          subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}

Do not add AZURE_CLIENT_SECRET or a credentials JSON to repository or environment secrets.

4

Prove other repositories and environments are denied

Owner: Platform engineering

Run the workflow from the approved repository and environment and confirm login succeeds. Run it from another repository, another environment, and a job without environment: and confirm azure/login fails with no matching federated identity record.

Migrate a secret-based access application

Access applications created before this standard hold client secrets in Key Vault. Those secrets are transitional. Migrate each application through the following states; new applications start in FederatedOnly.

1

Add FICs alongside the existing secret

Owner: Platform identity

Inventory every workload that reads the application’s secret from Key Vault. Add a FIC for each of those workloads’ own UAMIs (steps 2 and 3 above). The application is now in Dual state: both credentials work.

2

Switch each workload to the federated credential

Owner: Service team

Replace the ClientSecretCredential (or MSAL client-secret configuration) with the ClientAssertionCredential pattern above. Remove the Key Vault secret reference from application settings in the same change. Deploy one workload at a time.

3

Verify no remaining secret use

Owner: Service team and Platform identity

For each customer tenant the workload serves, confirm a representative read succeeds with the federated credential. In Entra sign-in logs for the application’s service principal, confirm the client credential type is the federated assertion and that no client-secret sign-ins remain over an agreed observation window.

4

Delete the Key Vault secret and the application secret

Owner: Platform identity

Delete the secret from Key Vault, then remove the password credential from the application:

$app = Get-MgApplication -Filter "displayName eq '<access-app-name>'" -Property "id,passwordCredentials"
foreach ($cred in $app.PasswordCredentials) {
    Remove-MgApplicationPassword -ApplicationId $app.Id -KeyId $cred.KeyId
}

Confirm passwordCredentials and keyCredentials are empty. The application is now FederatedOnly.

Until migration completes

SRE monitors the expiry of every remaining transitional access-application secret and rotates it if it would expire before migration completes. Rotation of a transitional secret never adds a new caller or permission and is not a reason to defer migration.

Positive validation

  • The application has zero password and key credentials (or is in a documented Dual migration window).
  • From the deployed host, the microservice acquires a customer-tenant token through its own UAMI and performs one non-destructive allowed call.
  • Entra sign-in logs for the service principal show a federated client assertion, the expected UAMI subject, and the expected customer tenant.
  • The FIC count is recorded and below the alert threshold.
  • The CI/CD workflow from the approved repository and environment logs in without a secret.

Negative validation

Verify denial for each applicable case:

  • a microservice whose UAMI is not a FIC subject on the application (AADSTS70021 no matching federated identity record);
  • a FIC configured with the UAMI client ID instead of its principal ID;
  • a token requested for any audience other than api://AzureADTokenExchange used as the assertion;
  • a customer tenant that has not consented, or whose onboarding record is not active;
  • a permitted caller requesting a permission outside the application’s consented set;
  • the rome auth identity presented as an assertion to an access application; and
  • a workflow from another repository, environment, or a job without an environment.

Rollback and revocation

  • Remove one caller: delete the FIC for that UAMI. New assertions fail immediately; already issued customer-tenant tokens remain valid until expiry, so contain incidents by also disabling the workload or asking the customer to disable the enterprise application.
  • Roll back a migration: while in Dual state, redeploy the previous workload revision that uses the secret. Do not recreate a deleted secret; restore the previous revision only before step 4.
  • CI/CD: delete the environment’s FIC from the Runway Entra application and remove its deployment role assignments.
  • Customer-initiated: the customer removes consent, role assignments, or Exchange scope, or deletes the enterprise application, which revokes access regardless of FICs.

Prove that the removed path fails and that unaffected callers still succeed.

Ownership and evidence

Platform identity owns access applications, their FICs, the FIC budget, and the migration tracker. Service teams own credential code and workload switch-over. Platform engineering owns the Runway Entra application and its FICs. SRE owns transitional secret expiry monitoring. Retain approvals, declarative diffs, FIC inventory and counts, sign-in log evidence of credential type, positive and negative tests, and secret deletion results.

Related pages

  • V3 Identity Standard
  • Identity architecture
  • Managed identity
  • App Service authentication
  • Customer onboarding
  • Customer Azure RBAC
  • Mailbox-scoped access
  • ADR-0010 — Split multi-tenant access permission apps
  • ADR-0024 — CI/CD with Runway and GitHub Actions

On this page

  • Prerequisites
  • Token exchange
  • Federated credential parameters
  • Configure customer-tenant access
  • Configure CI/CD federation
  • Migrate a secret-based access application
  • Positive validation
  • Negative validation
  • Rollback and revocation
  • Ownership and evidence
  • Related pages
PreviousManaged Identity
NextV3 Identity Workflows
Edit on GitHubSecurity