V3 Identity Standard
This page is the single normative identity standard for ION V3. The terms MUST, MUST NOT, and SHOULD are requirements as defined by RFC 2119. An implementation that does not meet a MUST or MUST NOT is non-compliant and requires remediation; another identity document cannot weaken these requirements.
Trust boundaries
- Microsoft Entra ID MUST authenticate ION users and Azure workloads.
- Authentication MUST NOT be treated as authorization. Every request MUST be authorized for its caller, tenant, resource, and operation.
- Internal Alya identities, customer identities, workload identities, customer-tenant access applications, Azure-resource permissions, Exchange mailbox scopes, and Teams membership MUST remain separate trust and authorization boundaries.
- Application registrations MUST be separated by environment. Production registrations and permissions MUST NOT be shared with non-production environments.
- Redirect URIs and application ID URIs MUST be explicit, HTTPS except for approved local development, owned, and free of wildcards.
- Browser clients MUST NOT contain or persist a client secret, certificate private key, or other application credential. Shells MUST use Authorization Code with PKCE and MUST NOT use implicit flow.
User-token termination
- User tokens MUST terminate at the receiving BFF. APIM MUST validate the inbound token before routing it, and the BFF MUST be the last boundary that consumes it.
- APIM MUST authenticate to the backend with its own managed-identity token in
Authorizationfor the Platform API audience. - APIM MUST set
X-Authorizationfrom the validated inbound token, or from its own token when no caller context is needed. A client-suppliedX-AuthorizationMUST NOT reach a backend. Not yet enforced: gap APIM-01. Until it is fixed, a backend MUST validate anyX-Authorizationtoken it uses. - A user token MUST NOT be forwarded by a BFF to a domain service, queue, topic, event, storage service, database, telemetry system, Azure endpoint, or Microsoft Graph. BFFs MUST NOT use on-behalf-of exchange to propagate a user token.
- A BFF calling downstream MUST obtain a new token with its own managed identity for the exact target audience.
- User and customer context needed downstream MUST be validated, minimal application data, not a token or authorization header.
- Bearer tokens, capability tokens, authorization headers, refresh tokens, authorization codes, client assertions, secrets, and private keys MUST NOT be logged, traced, placed in exception text, or included in support artifacts.
Capability authorization
- Each shell MUST obtain a capability token from Signet after sign-in. The browser MUST NOT create, modify, or widen a capability token.
- Signet MUST derive shell and persona from the Entra audience and roles and MUST reject a requested shell that does not match.
- Customer-portal capability tokens MUST be scoped to the user’s own tenant. Unrestricted scope MUST be issued only to internal and advisor personas.
- Permissions MUST use
DomainEntity.ReadorDomainEntity.ReadWrite. MFEs MUST gate on permissions andmfe_access, never on role or shell names. - Every MFE request MUST carry the shell’s Entra token and the capability token. MFE BFF APIs MUST be published through the APIM MFE product, which MUST validate capability scope against the request path and fail closed.
- Every MFE BFF route MUST use the shared capability middleware, MUST bind the capability token to the Entra token (
entra_aud,oidequalssub, tenant in scope), and MUST enforce the route’s permission, shell rules, resource tenant, and response fields. - Changes to
Ion.*user roles MUST be accompanied by the matching Signet role-to-permission and role-to-MFE changes. - Hidden UI controls MUST NOT be treated as authorization. Domain services MUST independently enforce tenant isolation and business rules.
Token validation and authorization
- APIM MUST validate token type, signature, issuer, validity time, audience, caller identity, and required role or scope for every token-based route.
- For a multi-tenant user token, APIM and the BFF MUST validate the issuer-to-tenant binding and active membership of the tenant in the onboarded-tenant allowlist. Consent alone is not sufficient.
- Caller validation MUST verify the authorized client application or workload identity. A caller MUST NOT be accepted solely because the audience is valid.
- Application-only calls MUST require an application role. User-delegated calls MUST require the delegated scope or user role defined by the route.
rolesandscpMUST NOT be treated as interchangeable. - Backends MUST accept only the Platform API audience and MUST NOT be directly reachable without APIM’s managed-identity token.
- Domain services MUST authenticate the calling workload and enforce ownership, tenant isolation, operation permission, and business rules.
- Authorization failures MUST fail closed and MUST NOT disclose validation internals or customer data.
- Teams membership MUST NOT substitute for any API, capability, Azure RBAC, or customer-environment authorization.
Azure workload identity
- Every microservice MUST have its own user-assigned managed identity, created in the service’s resource group, and MUST use it for service-to-service and Azure-resource access.
- System-assigned managed identities MUST NOT be used for ION microservices.
- A managed identity MUST NOT be shared by more than one microservice, except the rome auth identity in rule 6.
- An Azure workload MUST NOT use a client secret or certificate as an alternative or fallback to managed identity, except the delegated Teams publishing exception in Delegated Teams publishing.
- Tokens MUST be requested for the exact target audience and MUST NOT be reused across audiences.
- The rome auth identity MUST be used only as the federated credential for App Service authentication against the Platform API application. It MUST NOT hold Azure RBAC or
Ion.*roles and MUST NOT be used to call any service or resource. - App Service authentication MUST use the rome auth identity with
OVERRIDE_USE_MI_FIC_ASSERTION_CLIENTIDfor new services. Existing services that read an Easy Auth secret from Key Vault MUST migrate. - API roles and Azure RBAC MUST be assigned independently at the smallest practical scope. Cross-resource-group RBAC MUST have a security exception.
- A workload identity MUST NOT receive delegated user scopes. The delegated Teams publishing service account is a user identity, not a workload identity, and is governed by Delegated Teams publishing.
Delegated Teams publishing
Microsoft Graph offers only the delegated ChannelMessage.Send permission for posting channel messages. Pigeon therefore posts notifications into Teams channels as a dedicated user service account, using the resource owner password credentials (ROPC) grant (ADR-0013 § 4). This is the only accepted ROPC path in ION.
- ROPC MUST NOT be used outside Pigeon’s Graph Teams calls. A new ROPC path MUST be a new ADR exception.
- The service account MUST be cloud-only in the Ontinue tenant, dedicated to Pigeon, and hold no Entra or Azure administrative role.
- Its delegated Graph scopes MUST be limited to what Pigeon calls: sending channel messages and replies and creating its own meetings. Its channel membership MUST be limited to the channels Pigeon publishes to.
- The account password and the Teams application’s client secret MUST be stored in Pigeon’s Key Vault, MUST have an expiry, and MUST be rotated. SRE MUST monitor their expiry.
- Any Conditional Access exclusion that ROPC requires, such as from MFA, MUST cover only this account. The account SHOULD be restricted to the network locations Pigeon signs in from.
- The owning team MUST monitor the account’s sign-ins and alert on failures and on sign-ins from unexpected locations or clients.
- Tokens obtained through ROPC MUST NOT be logged and MUST NOT be cached beyond their expiry.
- The exception MUST be reviewed whenever Microsoft changes the Teams permission model, and retired if an application-permission or bot-based path can deliver the same messages.
Federated credentials
- Every new Entra application MUST be created with federated credentials only. New client secrets MUST NOT be created for Ontinue-controlled callers.
- A multi-tenant customer-access application MUST trust each calling service’s own user-assigned managed identity as a separate federated credential.
- Applications that still hold client secrets MUST be on the migration list, their secrets MUST be stored in Key Vault, and SRE MUST monitor their expiry until the secret is removed.
- Owners MUST monitor the number of federated credentials per application against the Entra limit of 20.
- CI/CD MUST use GitHub OIDC federation with a subject restricted to the approved repository and environment.
- A non-Azure integration SHOULD use federation when its provider can present an OIDC token; otherwise its credential MUST follow the exceptional-credential rules in this standard.
Customer-tenant access
- Customer-tenant workload access MUST use the application for its surface: the intent-shape applications for Graph and Defender for Endpoint, the phishing application for mailbox analysis, and the hollow application for customer Azure resources.
- Admin consent MUST use the
organizationsauthority with astatevalue. ION MUST verify the returned tenant and state against the onboarding record before activating access. Thecommonauthority MUST NOT be used. - The hollow application MUST NOT declare API permissions. ION MUST recommend least-privilege roles and scopes; the customer MUST remain the party that assigns them.
- ION MUST NOT treat the existence of a service principal or consent as a capability. It MUST check its effective permissions or the validated mailbox scope and degrade gracefully when it is missing.
Mail.ReadMUST be held only by the phishing application. ION MUST NOT read mail for a customer until the customer has scoped the application with Exchange Online RBAC for Applications and the scope has been validated with in-scope and out-of-scope tests.- Application Access Policies MUST NOT be used for new onboarding.
- Human customer-environment access MUST follow Customer Environment Access.
Applications, roles, and RBAC
- Each application registration, enterprise application, managed identity, federated credential, role definition, role assignment, capability mapping, consent grant, Azure RBAC assignment, Exchange scope, and exceptional credential MUST have an accountable owning team.
- Identity configuration MUST be declared in version-controlled automation. Portal changes MUST NOT be the system of record; emergency changes MUST be reconciled before the change record closes.
- Application roles MUST use the
Ion.<Resource>.<Operation>[.<Constraint>]vocabulary, describe a stable business capability, and evolve additively. - Permission grants MUST be least privilege with a documented justification, approval, review interval, and revocation procedure.
- Every identity and assignment MUST be inventoried and periodically reviewed. Stale, unused, excessive, or expired access MUST be revoked.
Lifecycle, evidence, and incidents
- Identity changes MUST include positive and negative authorization tests before production activation.
- Every identity or permission change MUST retain evidence of request, owner, approval, declarative change, deployment, positive test, negative test, and rollback or revocation.
- Owners MUST monitor failed authentication, failed authorization, capability-validation failures, consent, role, federated-credential, RBAC, and credential events without recording tokens.
- Suspected token or credential exposure MUST trigger containment, revocation, log-preserving investigation, and validation that old access fails.
- Customer offboarding MUST disable the allowlist entry first, then revoke consent, role assignments, mailbox scopes, Teams relationships, and residual sessions or caches.
- An exceptional non-Azure integration credential MUST be security-approved, stored in Key Vault, owned, expiring, rotated, monitored, and revoked at retirement.
Implementation
Use the V3 identity implementation guide with the identity architecture, capabilities, identity workflows, and Customer Environment Access.