Identity Lifecycle and Operations
Operate V3 identity as an owned, reviewable, and revocable control plane. This runbook covers inventory, federated credential operations, access reviews, monitoring, revocation, incident investigation, retirement, and credentials for exceptional non-Azure integrations.
Prerequisites
- Named platform identity, application, workload, API and resource, SRE, security operations, and customer onboarding owners.
- Read access to Entra audit and sign-in logs, Azure Activity Logs, APIM authorization telemetry, BFF and domain authorization decisions, and deployment history.
- A version-controlled inventory and reconciliation process.
- Alerting and incident procedures that do not collect tokens or authorization headers.
- A tested break-glass administrative process with independent review.
Maintain the inventory
Inventory each environment-specific:
- application registration, enterprise application, audience, scope, redirect URI, and consent grant;
- microservice UAMI, its attached hosts, and token audiences;
- the rome auth identity and every Function App or App Service that attaches it;
- Federated Identity Credential: holder application or identity, issuer, subject, owning workload or repository;
Ion.*role definition, assignment, and Signet capability mapping;- Azure RBAC assignment and resource scope;
- customer tenant allowlist entry, chosen access applications, Teams relationship, hollow-app capabilities, and mailbox scope evidence;
- transitional Key Vault secrets with their expiry; and
- approved exceptional non-Azure credentials.
For every item record purpose, accountable team, operational contact, environment, stable non-secret reference, callers and targets, customer scope, approval, source declaration, last use, last review, next review, and revocation procedure.
Reconcile declared and actual state
Owner: Platform identity
Reconcile the declared inventory against Entra, Azure, APIM, Signet, and customer onboarding state on a schedule and after material deployments.
# FICs on an application
Get-MgApplicationFederatedIdentityCredential -ApplicationId <appObjectId> |
Select-Object Name, Issuer, Subject, Audiences
# Credentials still present on applications (expect none outside transitional or exception records)
Get-MgApplication -All -Property "id,displayName,passwordCredentials,keyCredentials" |
Where-Object { $_.PasswordCredentials.Count -gt 0 -or $_.KeyCredentials.Count -gt 0 }# FICs on the Runway Entra application (GitHub Actions per-environment subjects)
az ad app federated-credential list --id <runway-app-id> -o tableAlert on drift
Owner: Platform identity
Alert on undeclared applications, owners, credentials, FICs, redirect URIs, consents, role or RBAC assignments, identities, SAMIs on ION hosts, shared UAMI attachments, or customer tenants. Treat production portal changes as drift; investigate and reconcile approved emergency changes into automation before closing the change or incident.
Remove stale access
Owner: Platform identity, confirmed by the owner
Remove orphaned, stale, excessive, duplicate, expired, or unused access, including FICs whose subject UAMI no longer exists, after owner confirmation and negative testing.
Operate federated credentials
Monitor the 20-FIC limit
Owner: Platform identity
Every Entra application and UAMI accepts at most 20 FICs. Track the count for each access application, the hollow application, the Platform API app, and the Runway Entra application. Alert at 16. When an application approaches the limit, escalate to architecture; never share a UAMI between microservices to save credentials.
Monitor transitional secret expiry
Owner: SRE
Until every access application and Easy Auth host is migrated, SRE monitors the expiry of each remaining transitional secret:
Get-MgApplication -All -Property "displayName,passwordCredentials" |
ForEach-Object {
foreach ($c in $_.PasswordCredentials) {
[pscustomobject]@{ App = $_.DisplayName; KeyId = $c.KeyId; Expires = $c.EndDateTime }
}
} | Sort-Object ExpiresAlert well before expiry and track each entry against its migration in Workload identity federation or App Service authentication. Rotation of a transitional secret never adds callers or permissions. Close the item when the secret is deleted from both Key Vault and the application.
Conduct access reviews
At the documented interval and after owner, architecture, contract, or service changes:
- Confirm an active accountable owner and business purpose.
- Confirm tenancy, environment, caller, target audience, member type, role or capability, Azure RBAC resource scope, and customer scope.
- Confirm each FIC subject maps to exactly one live microservice UAMI or approved repository and environment.
- Review last-used evidence and failed-access patterns without inspecting or storing token bodies.
- Confirm user tokens still terminate at the BFF, APIM overrides
X-Authorization(gap APIM-01 until fixed), and APIM uses its own managed identity to the backend. - Confirm every microservice uses its own UAMI with no SAMI, shared UAMI, or secret fallback, and the rome auth identity has no RBAC, roles, or data access.
- Confirm with customer onboarding owners that mailbox scope and hollow-app assignments still match the customer’s recorded intent.
- Re-run representative positive and negative authorization tests.
- Approve continued access with the next review date, reduce it, or revoke it. Silence or an unavailable owner is not approval.
Monitor identity controls
Alert on:
- repeated signature, issuer, time, audience, caller, tenant-allowlist, role, or capability failures;
- capability binding failures (
entra_aud,oid, ortidmismatch) at the BFF; - cross-customer or resource-authorization denials;
- new consent, application credential, FIC, app-role assignment, Azure RBAC assignment, redirect URI, or owner change;
- a client secret sign-in on an application recorded as federated-only;
- managed-identity attachment or removal, or the rome auth identity requesting any audience other than token exchange;
- inactive customer tenants attempting access, and
ErrorAccessDeniedspikes on mailbox access; - authorization-policy drift and direct backend ingress bypassing APIM; and
- secrets, private keys, authorization headers, or token-like values in telemetry.
Logs contain timestamps, safe tenant, application, and workload references, route or resource, authorization decision and reason category, and correlation ID. They never contain bearer or refresh tokens, authorization codes, client assertions, secrets, private keys, capability tokens, or complete authorization headers.
Revoke access
| Access | Revocation |
|---|---|
| Human ION user | Remove the granting group membership or role assignment; revoke sessions when incident response requires it |
| Microservice workload | Remove Ion.* and Azure RBAC assignments through IaC; detach or stop the host for urgent containment |
| Workload into customer tenants | Delete the workload’s FIC from the access or hollow application |
| CI/CD | Delete the environment’s FIC from the Runway Entra application and remove its deployment role assignments |
| One customer, Graph or MDE | Customer deletes the enterprise application or revokes consent; ION disables the onboarding record |
| One customer, hollow app capability | Customer removes the role assignment; ION re-runs discovery and disables the capability |
| One customer, mailbox scope | Customer removes the Exchange role assignment, scope, or mailbox tag; ION disables phishing processing |
| User capability | Remove the role assignment, or remove the role from Signet’s maps for all users |
| Human GDAP or Lighthouse | Through Customer Environment Access |
Verify the previously allowed operation now fails; do not rely only on control plane state. Managed identity and customer-tenant tokens already issued remain valid until expiry (managed identity tokens are cached for up to about 24 hours), so contain incidents at the narrowest boundary that stops use immediately: disable the route, stop the host, disable the onboarding record, or ask the customer to disable the enterprise application.
Investigate an authorization incident
Establish the facts
Owner: Security operations
Start with correlation ID, user oid or workload principal ID, tenant, route,
and time window. Open an incident and preserve audit logs.
Correlate across layers
Owner: Security operations and Service team
Correlate Entra sign-in and audit logs, APIM, BFF (including Signet validation), domain service, and Azure resource logs by correlation ID. For customer-tenant paths, include the customer’s sign-in logs for the enterprise application and Exchange or Azure Activity Logs where the customer provides them.
Classify the failure
Owner: Security operations
Determine whether the event was authentication (token, FIC, or consent), capability validation, route or field authorization, domain policy, Azure RBAC, or Exchange scope.
Contain and revoke first
Owner: Security operations, with the owning team
Contain at the narrowest safe boundary, then revoke application-role assignments, FICs, Azure RBAC, sessions, Teams relationships, and customer-environment access as applicable. If an exceptional or transitional credential is exposed, revoke it before any replacement; an Azure workload moves to federation and does not receive a new secret.
Search for propagation
Owner: Service team
Search logs and code for token propagation without copying token values into
the incident. Determine whether a user token reached a downstream service,
queue, storage, telemetry, Azure API, or Graph, and whether a client-supplied
X-Authorization value was ever trusted.
Restore and record
Owner: Security operations
Validate that old access fails after relevant caches expire or are invalidated and that unaffected access remains. Correct policy or implementation through the normal reviewed path, monitor closely, and record root cause, scope, evidence, and preventive actions.
Positive validation
- Reconciliation reports no undeclared identity object, FIC, credential, or assignment, and every item has an active owner and review date.
- Every FIC count is below the alert threshold, and every transitional secret has a migration owner and a future expiry.
- An approved shell path succeeds through APIM and the BFF, and the downstream call uses the BFF’s own UAMI.
- An approved workload performs its assigned API, Azure-resource, or customer-tenant operation at the declared scope.
- Review and alert evidence is retrievable by correlation ID without exposing a token, authorization header, secret, or private key.
- A revocation exercise removes access within the operational objective and preserves unaffected access.
Negative validation
Verify that monitoring or scheduled control tests detect and deny:
- wrong issuer, time, audience, caller, role, capability, inactive tenant, customer, mailbox, or resource;
- an undeclared FIC, app-role or RBAC assignment, or production portal change;
- a client-secret sign-in on a federated-only application;
- a user token presented to a downstream domain service, or a client-supplied
X-Authorizationheader; - a SAMI, shared UAMI, or secret fallback on an ION host;
- stale or ownerless access after its review deadline; and
- token-like values or complete authorization headers entering telemetry.
Exceptional non-Azure credentials
This exception applies only when a non-Azure workload or external provider cannot authenticate with federation. It never applies to an Azure workload or browser.
- Use OIDC federation first: if the provider issues OIDC tokens, add a FIC for its issuer and subject and stop here.
- Document why federation is unavailable. Obtain application owner, security, and resource owner approval with an expiry date.
- Create a dedicated least-privilege application. Do not reuse a shell, Platform API, access, or unrelated integration registration.
- Store the credential only in the approved secret manager; applications retrieve it at runtime through an approved identity. Never place it in source, images, user-visible pipeline variables, documentation, or telemetry.
- Configure expiry, automated rotation warning, usage monitoring, and a tested revoke-and-replace procedure.
- Validate the intended operation and denial of other audiences, tenants, resources, and operations.
- Review the exception on schedule and retire it as soon as the provider supports federation.
Planned retirement
- Disable new assignments and onboarding to the retiring identity, application, or role.
- Discover callers, FICs, consents, assignments, attached resources, active customers, Signet mappings, and cached dependencies.
- Migrate callers additively and run positive and negative tests.
- Disable the old path, monitor, then remove role and RBAC assignments, FICs, consents, Teams and customer relationships, and credentials.
- Detach and delete managed identities according to Managed identity; disable applications before final deletion when an audit window is required.
- Reconcile inventory and retain approval, deployment, test, and revocation evidence under the retention policy.
Ownership and evidence
Platform identity owns inventory, reconciliation, FICs, and the FIC budget. SRE owns transitional secret expiry monitoring. Application, workload, API, and resource owners attest purpose and least privilege. Security operations owns monitoring and incident coordination. Customer onboarding and Teams owners attest tenant-specific relationships, mailbox scope, and hollow-app capabilities. Evidence includes reconciliations, FIC counts, secret expiry reports, review decisions, alert and incident records, declarative changes, safe test results, revocation proofs, and next review dates.