ADR-0010 — Split multi-tenant access-permission apps by scope
Context
ION Platform requires customer-tenant permissions on Microsoft Graph and the Microsoft Defender for Endpoint (MDE) API to read telemetry and — for customers who authorise it — execute pre-approved response actions (machine isolation, restrict-execution, live response, AIR investigation, user session revocation, marking user as compromised). Sentinel access is delegated separately via Azure Lighthouse; this ADR is scoped to the app-registration-based workload integration path (Graph + MDE). Human Defender XDR portal access is a separate boundary governed by ADR-0033: Tenant Governance/GDAP projects Ontinue groups and the customer assigns Defender URBAC. Neither decision replaces the other.
The V2 baseline used a single multi-tenant Entra app registration that requested all permissions ION might ever need. Two problems surfaced with customers and operations:
- All-or-nothing consent. Customers who wanted ION to read Defender data but not write had no way to grant that shape. Several customers raised this explicitly during onboarding.
- Single point of failure. A credential expiry, a compromise event, or a forced consent revocation on one scope disabled every ION capability in that tenant simultaneously — reads, writes, Graph, MDE, all at once.
Forces / Drivers
- principles/README.md § 22 — customers must be able to grant only the scopes required for the intent shape they chose.
- principles/README.md § 23 — a credential expiry, consent revocation, throttling event, or compromise on one scope must not disable unrelated capability.
- Explicit tenant-topology and identity boundary established in ADR-0009 — apps live in the
ontinue.complatform directory and are consented into customer tenants. - principles/README.md § 21 — solution must live inside what Entra natively supports; no bespoke consent-composition surface.
- Graph throttling ceiling — 2 000 requests/second per app across all tenants (Graph throttling limits); a single app pooling all customers is a shared-fate ceiling under the capacity model growth trajectory.
- Operational simplicity of consent lifecycle — customer-visible names and permission lists must be reviewable by the customer’s security team without a bespoke package generator.
Decision
Split the single monolithic access-permission app into four multi-tenant Entra app registrations, one per intent-shape a customer can choose:
| App registration (prod) | Intent shape | Contains |
|---|---|---|
azsp-ontinue-ion-access-read-all-prd-01 | Read All | MDE read + Graph read scopes |
azsp-ontinue-ion-access-mde-write-prd-01 | Read All + Write MDE | Read-All scopes + MDE action scopes (Machine.Isolate, Machine.RestrictExecution, Machine.LiveResponse, Alert.ReadWrite.All) |
azsp-ontinue-ion-access-graph-write-prd-01 | Read All + Write Graph | Read-All scopes + Graph action scopes (User.RevokeSessions.All, IdentityRiskyUser.ReadWrite.All) |
azsp-ontinue-ion-access-write-all-prd-01 | Read All + Write MDE + Write Graph | Union of all above |
Onboarding presents the customer with a Read-All-by-default consent
choice plus optional Write MDE and/or Write Graph. The corresponding
single app-registration consent URL is sent — the customer consents to
exactly one app whose permission set matches their choice.
Separate purpose app — phishing mailbox analysis. Reading message
bodies needs Microsoft Graph Mail.Read (application), which Entra grants
tenant-wide. It is never added to the four intent-shape apps. It lives in a
fifth, purpose-scoped app that customers consent to only when they opt into
phishing analysis:
| App registration (prod) | Purpose | Contains |
|---|---|---|
azsp-ontinue-ion-access-phishing-write-prd-01 | Phishing mailbox analysis | Mail.Read, Mail.ReadBasic.All, SecurityAnalyzedMessage.Read.All, SecurityAnalyzedMessage.ReadWrite.All, ThreatSubmission.Read.All, ThreatSubmission.ReadWrite.All |
The customer’s Exchange administrator restricts Mail.Read to an agreed
mailbox subset with an Exchange Online RBAC for Applications assignment
(Application Mail.Read role, Management Scope filtered on a mailbox
CustomAttribute, or an Administrative Unit). Without that assignment the
Entra grant reaches every mailbox, so ION does not start processing until the
customer has validated the scope with Test-ServicePrincipalAuthorization.
Application Access Policies are deprecated and are not used for new
onboarding.
Statically defined, four fixed shapes. No dynamic package generation and
no KnownClientApplications linking at runtime — Entra does not support the
composition shape ION would need.
Versioning. When a permission set must expand, publish a new numbered
app (...-prd-02) rather than mutating an existing one. Existing consents
remain valid; migration is a per-customer re-consent flow. Naming pattern is
locked as azsp-ontinue-ion-access-<shape>-<env>-NN.
Ownership. Architecture + Helios engineering own the access apps.
Credentials — Workload Identity Federation. The standard credential for every access app is a Federated Identity Credential that trusts the calling ION workload’s own User-Assigned Managed Identity (the pattern in ADR-0011). Every new access app is created with federated credentials only. Apps created before this standard still hold client secrets in Key Vault; those secrets are transitional while the apps migrate to FIC, and SRE monitors their expiry until migration completes. Each app accepts at most 20 FICs, so the number of calling workloads per app is tracked.
Alternatives Considered
Option A — Keep a single all-scopes multi-tenant app (V2 baseline)
- Rejected. Grounds:
- (decisive) Customer-consent shape. Multiple customers explicitly refused
write scopes they did not want. A single app cannot express
read but not write— Entra consent is per-app, not per-scope-at-runtime. - Blast radius. Any credential, consent, or throttling incident on the app takes down every ION integration path in every consenting tenant simultaneously — reads, writes, Graph, and MDE all at once.
- Shared 2 000 rps Graph throttling ceiling across the entire ION customer base pooled through a single app object.
- (decisive) Customer-consent shape. Multiple customers explicitly refused
write scopes they did not want. A single app cannot express
Option B — Dynamically generate a per-customer bespoke app registration
- Rejected. Grounds:
- (decisive) Not technically feasible on the Entra platform. App
registrations are static objects;
KnownClientApplicationslinking requires statically-defined GUIDs and does not support runtime permission composition. There is no supported Entra shape for “compose permissions at consent time”. - Operational cost of an app-per-customer would be linear in customer count — thousands of app objects, thousands of secret rotations, and an app-registration audit posture that no team could maintain.
- Fails § 21 Azure-native managed services first — inventing a custom provisioning surface on top of Entra where none is offered by the platform.
- (decisive) Not technically feasible on the Entra platform. App
registrations are static objects;
Option C — Per-scope app registration (one app per permission)
- Rejected. Grounds:
- Consent-UX explosion. A customer choosing “Read All + Write MDE” would face 10+ separate consent prompts across separate apps. Every app needs credential rotation, monitoring, and a Key Vault secret.
- Throttling ceiling for read-heavy paths would fragment across several tiny apps instead of pooling a shared Read-All app.
- The four coarse shapes already map 1:1 to the intent-shapes customers actually request during procurement; finer granularity has no customer-facing benefit.
Rationale
The four shapes are the smallest set that expresses every consent choice customers actually request while keeping the operational surface bounded. Read-All is the default because ION’s read paths (telemetry ingestion, enrichment, hunting queries) are what every customer opts into; write paths are opt-in per surface (Graph vs. MDE) because that is the natural boundary customers reason about in their own security review.
Blast radius is contained along the same axis: a Graph credential problem
does not disable MDE reads; an MDE write revocation does not disable Graph
identity actions. The 2 000 rps Graph ceiling now applies per app, so
read-heavy paths (pooled through Read-All) and identity-write paths
(through the smaller Graph-Write app) have independent budgets, and new
customer growth can be sharded onto new app numbers (-02, -03) when a
ceiling is approached.
The static-four-apps design is the only shape that lives inside what Entra natively supports — consistent with § 21.
Consequences
Positive
- Customers get a real consent choice; procurement blockers on write scopes no longer stall onboarding.
- Credential, consent, or throttling failure on one shape isolates to that shape — Graph write failure does not stop Defender reads.
- Graph 2 000 rps ceiling can be scaled horizontally by publishing new app numbers for new customer cohorts.
- Consent surface for each customer is a single, reviewable app manifest whose scope list matches their intent shape.
Negative / Trade-offs
- Four apps to maintain in lockstep. A new read scope must be added to Read-All and to the two writes and to Write-All — a small but real operational tax on every permission expansion.
- Versioning is a re-consent flow. When a shape’s permission set expands, existing customers stay on the old app number until they re-consent to the new one; ION code paths must tolerate both numbers during the transition window.
- Secret rotation multiplied by four while the apps still carry transitional Key Vault secrets. The FIC migration removes the secret; the trade-off becomes the 20-FIC-per-app ceiling on calling workloads.
- A customer wanting an intent shape not in the four (e.g. “Write Graph only, no reads”) cannot be served — they must accept Read-All as the floor. This has been acceptable in every onboarding to date.
WAF Pillar Impact
- Security (primary) — least privilege at the consent boundary; blast radius contained per intent shape; per-app credential rotation.
- Reliability — a single credential or consent problem no longer disables all ION integration surfaces in a tenant.
- Operational Excellence — bounded, well-named app inventory (four apps × env, versioned) that SRE can monitor for secret expiry.
- Performance Efficiency — Graph 2 000 rps ceiling is horizontally shardable via numbered apps as customer count grows.
- Cost Optimization — neutral.
Previous approach (V2)
Single multi-tenant app registration holding every Graph and MDE scope ION might ever need. Customers had to consent to everything or nothing; credential and throttling failures had platform-wide blast radius. See references/Security Architecture- Access Permissions - Service Principals.md § “Currently we use a single Multi-tenant Application Registration”.
Amendments
- 2026-10-14 — Phishing app added. Recorded
azsp-ontinue-ion-access-phishing-write-prd-01as a fifth, purpose-scoped access app forMail.Read-based phishing analysis, constrained by customer-side Exchange RBAC for Applications. - 2026-10-14 — Federated credentials are the standard. Replaced “client credentials remain in Key Vault by design” with Workload Identity Federation as the standard; existing Key Vault secrets are transitional during migration.
References
- references/Identity Management- Email Body Permissions.md — phishing app and mailbox scoping.
- references/Identity Management - Workload Identity Federation.md — managed identity as FIC for multi-tenant apps.
- references/Security Architecture- Access Permissions - Service Principals.md — primary source.
- references/Architecture- Identity Management.md — per-integration IdM matrix.
- Microsoft Graph throttling limits.
- ADR-0009 — Entra ID as identity provider — tenant topology and platform IdP choice.
- principles/README.md §§ 8, 9, 21.
Related ADRs
- ADR-0009 — establishes the
ontinue.complatform directory in which these apps live. - ADR-0011 — workload Azure RBAC in customer tenants; complements this Graph/MDE workload-app decision.
- ADR-0013 — service-to-service authentication; reduces secret-rotation burden for eligible ION callers but does not replace customer-tenant consent.
- ADR-0033 — human Defender XDR portal access through Tenant Governance/GDAP and customer-assigned URBAC; separate from this workload access path.