Identity Lifecycle and Operations
Operate V2 identity as an owned, reviewable, and revocable control plane. This runbook covers inventory, access reviews, monitoring, incidents, retirement, and credentials for exceptional non-Azure integrations.
Prerequisites
- Named identity-platform, application, workload, API/resource, security operations, and customer-onboarding owners.
- Read access to Entra audit/sign-in data, Azure Activity Logs, APIM authorization telemetry, application 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;
- managed identity, attached Azure resources, and token audiences;
- application role definition and assignment;
- Azure RBAC assignment and resource scope;
- customer tenant allowlist entry and Teams relationship;
- customer-environment permission; and
- approved exceptional non-Azure credential.
For every item record purpose, accountable team, operational contact, environment, stable non-secret reference, callers/targets, customer scope, approval, source declaration, last use, last review, next review, and revocation procedure.
- Reconcile declared inventory against Entra, Azure, APIM, and customer onboarding state on a schedule and after material deployments.
- Alert on undeclared applications, owners, credentials, redirect URIs, consents, role/RBAC assignments, identities, or customer tenants.
- Treat production portal changes as drift. Investigate them and reconcile approved emergency changes into automation before closing the change or incident.
- Remove orphaned, stale, excessive, duplicate, expired, or unused access after owner confirmation and negative testing.
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/scope, Azure RBAC resource scope, and customer scope.
- Review last-used evidence and failed-access patterns without inspecting or storing token bodies.
- Confirm Portal/Alya user tokens still terminate at the BFF and no service, message, storage, telemetry, Azure API, or Graph path receives them.
- Confirm every Azure workload uses managed identity and has no client-secret/certificate fallback.
- 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 scope failures;
- cross-customer or resource-authorization denials;
- new consent, application credential, app-role assignment, Azure RBAC assignment, redirect URI, or owner change;
- managed-identity attachment/removal or unusual target audiences;
- inactive customer tenants attempting access;
- authorization-policy drift and direct domain-service ingress; and
- secrets, private keys, authorization headers, or token-like values detected in telemetry.
Logs contain timestamps, safe tenant/application/workload references, route/resource, authorization decision/reason category, and correlation ID. They never contain bearer/refresh tokens, authorization codes, client assertions, secrets, private keys, or complete authorization headers.
Positive validation
- Reconciliation reports no undeclared identity object or assignment, and every item has an active owner and review date.
- An approved Portal/Alya path succeeds through APIM and the BFF, while the downstream call uses the BFF managed identity.
- An approved workload can perform its assigned API/Azure-resource 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/scope, inactive tenant, customer, or resource;
- an undeclared app-role/RBAC assignment or production portal change;
- a Portal/Alya user token presented to a downstream domain service;
- an Azure workload configured with a secret or certificate fallback;
- stale or ownerless access after its review deadline; and
- token-like values or complete authorization headers entering telemetry.
Incident revocation
- Open an incident, identify the suspected identity, environment, tenants, targets, assignments, and exposure window, and preserve audit logs.
- Contain the narrowest safe boundary: disable the customer allowlist entry or route, detach/stop a workload, disable an application, or remove assignments.
- Revoke application-role assignments, Azure RBAC, consents, sessions, Teams relationships, and customer-environment access as applicable. Do not rely solely on token expiry.
- If an exceptional credential is exposed, revoke it before issuing a replacement. An Azure workload remains on managed identity and does not receive a temporary secret/certificate.
- Search logs and code for propagation without copying token values into the incident. Determine whether a user token reached a downstream service, queue, storage, telemetry, Azure API, or Graph.
- Validate negatively that old access fails after relevant caches expire or are invalidated; validate positively that unaffected required access remains available.
- Restore through reviewed declarative changes, monitor closely, and record root cause, scope, evidence, and preventive actions.
Exceptional non-Azure credentials
This exception applies only when a non-Azure workload or external provider cannot use managed identity. It never applies to an Azure workload or browser.
- Document why the non-Azure integration requires an application credential. Managed identity, Federated Identity Credentials, and workload identity federation are not available as V2 mechanisms for this path.
- Obtain application owner, security, and resource owner approval with an expiry date.
- Create a dedicated least-privilege application boundary. Do not reuse a Portal, Alya, BFF, API, 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, pipeline variables visible to users, documentation, or telemetry.
- Configure expiry, automated rotation warning, usage monitoring, and a tested revoke/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 an approved credentialless design.
Planned retirement
- Disable new assignments and onboarding to the retiring identity or role.
- Discover callers, consents, assignments, attached resources, active customers, and cached dependencies.
- Migrate callers additively and run positive/negative tests.
- Disable the old path, monitor, then remove role/RBAC assignments, consent, Teams/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.
Rollback
Restore the last approved declarative revision only when it does not restore compromised or excessive access. Otherwise deploy a corrected least-privilege revision. In both cases, retest intended and denied paths and document the decision.
Ownership and evidence
The identity platform owner owns inventory and reconciliation. Application/workload and API/resource owners attest purpose and least privilege. Security operations owns monitoring and incident coordination. Customer/Teams owners attest tenant-specific relationships. Evidence includes reconciliations, review decisions, alert/incident records, declarative changes, safe test results, revocation proofs, and next review dates.