Customer Azure RBAC Identity Workflow
Some ION add-ons act on resources in a customer’s own Azure subscription:
ingesting dark-web-monitoring incidents into a customer Log Analytics workspace,
updating an IP group used by a firewall, or exchanging SOAR integration messages
through customer-owned Service Bus queues
(ADR-0032).
ION reaches these resources through a hollow multi-tenant application,
azsp-ontinue-ion-access-azure-rbac-prd-01, that requests zero API
permissions (ADR-0011).
Consent only creates a service principal in the customer tenant. Every capability
comes from Azure RBAC that the customer assigns on resources the customer
owns. ION recommends the roles; the customer decides.
Actors and identities
| Concern | Authoritative system | ION responsibility |
|---|---|---|
| Customer administrator | Customer home tenant | Grants admin consent, creates the custom table and DCR from the Ontinue template, and assigns recommended roles. |
| Hollow application | azsp-ontinue-ion-access-azure-rbac-prd-01, multi-tenant | Provides a service principal in the customer tenant; holds no API permissions. |
| Calling workload | ION microservice with its own UAMI | Registered as a federated identity credential on the hollow app; exchanges its token for a customer-tenant token. |
| Customer resources | DCR and custom table, IP group, SOAR outgoing and incoming queues | Enforce Azure RBAC assigned to the hollow app's service principal. |
| Onboarding service | ION onboarding record | Issues consent state, verifies the callback, and records discovered capabilities. |
Tenancy
| Element | Tenant |
|---|---|
| Hollow application registration and its federated credentials | Ontinue platform directory |
| Calling workload UAMI | Ontinue platform directory |
| Hollow app service principal | Customer tenant, created by consent |
| Role assignments and target resources | Customer tenant and subscription |
| Access token for ARM, Logs Ingestion, or Service Bus | Issued by the customer tenant |
Recommended roles
ION recommends the narrowest role at the narrowest scope for each add-on. The customer may choose an equivalent custom role.
| Capability | Scope | Recommended role | Notes |
|---|---|---|---|
| Dark-web monitoring incidents (log ingestion) | Data collection rule (DCR) | Monitoring Metrics Publisher, or a custom role with Microsoft.Insights/Telemetry/Write | deploy.ps1 creates the custom table and DCR in the customer subscription and assigns the role |
| IP group update | IP group | Custom role with Microsoft.Network/ipGroups/read and Microsoft.Network/ipGroups/write | Network Contributor is the fallback when a custom role is not possible |
| SOAR integration: response instructions | Outgoing queue | Azure Service Bus Data Sender | Assign at the queue, not the namespace (ADR-0032) |
| SOAR integration: outcomes | Incoming queue | Azure Service Bus Data Receiver | Assign at the queue, not the namespace |
Subscription-wide or Contributor-level grants are never recommended. The full
SOAR queue setup is in
SOAR Integration customer onboarding.
Onboarding
Send the consent link
Owner: ION onboarding
ION creates an onboarding record with a single-use state value and sends the
customer administrator:
https://login.microsoftonline.com/organizations/adminconsent?client_id={appClientId}&redirect_uri={registeredRedirect}&state={onboardingState}
The authority is always organizations. ION never uses common and never
pre-fills a tenant.
Verify the callback
Owner: ION onboarding
On redirect, ION verifies that the returned tenant and state match the
onboarding record before activation. A mismatch, replayed state, or missing
consent result stops onboarding.
Service principal exists with no permissions
Owner: Customer administrator
Consent creates the hollow app’s service principal in the customer tenant. It has no Graph or API permissions and no Azure access. Nothing is usable yet.
Create resources and assign recommended roles
Owner: Customer administrator
The customer creates the resources for each add-on they enable and assigns the
recommended roles. For dark-web-monitoring incidents,
Anvil/ion-bp/infrastructure-customer/deploy.ps1 runs in the customer
subscription. It creates the data collection endpoint, the DCR, and the
IonDigitalRiskProtection_CL custom table, and assigns
Monitoring Metrics Publisher at DCR scope to the hollow app’s service
principal. For SOAR integration, the customer provisions the namespace and both
queues and assigns the queue-scoped roles. IP group roles are assigned by the
customer when they enable response actions.
Discover capabilities
Owner: ION onboarding
ION reads the service principal’s effective permissions at each recorded resource scope and compares them with each add-on’s required actions and data actions. This needs no extra role. The record stores the scope and role for each capability.
Capability discovery
ION degrades gracefully: each add-on is enabled or disabled independently based
on its own assignment. A missing IP group role does not affect log ingestion. A
runtime 403 from ARM, Logs Ingestion, or Service Bus marks the capability as
unavailable, raises an onboarding alert, and does not retry with a broader
identity. Discovery is repeated periodically and on demand so that customer
changes, in either direction, are reflected.
Runtime token flow
The calling workload’s own UAMI is registered as a federated identity credential on the hollow app. No client secret is used.
| Target | Token scope | Operation |
|---|---|---|
| Azure Resource Manager | https://management.azure.com/.default | Read and update IP groups; read effective permissions for discovery |
| Logs Ingestion API | https://monitor.azure.com/.default | Send records through the DCR to the custom table |
| Service Bus | https://servicebus.azure.net/.default | Send to the SOAR outgoing queue; receive from the SOAR incoming queue |
using Azure.Core;
using Azure.Identity;
var mi = new ManagedIdentityCredential(
ManagedIdentityId.FromUserAssignedClientId(uamiClientId));
var credential = new ClientAssertionCredential(
customerTenantId,
hollowAppClientId,
async ct => (await mi.GetTokenAsync(
new TokenRequestContext(["api://AzureADTokenExchange/.default"]), ct)).Token);
// Pass the credential to the Azure SDK client for ARM, Logs Ingestion, or Service Bus.
The customer tenant ID comes from the verified onboarding record, never from a request. The application client ID and UAMI client ID are deployment configuration. Each application accepts at most 20 federated identity credentials, so the number of calling UAMIs is monitored. See Customer Azure RBAC implementation and Workload Identity Federation.
Validation and authorization
- Onboarding callback: returned
tenantandstatematch the onboarding record. - Token exchange: the customer tenant validates the assertion against the
hollow app’s federated credential (issuer, subject, and audience
api://AzureADTokenExchange). - Resource authorization: Azure RBAC at the target scope decides every operation. ION never infers permission from consent.
- Tenant context: the workload uses the customer tenant recorded for the customer it is acting for, so one customer’s operation cannot target another customer’s tenant.
Offboarding and revocation
- Customer-initiated. The customer removes role assignments; the matching capability fails closed and is reported as not configured on the next discovery or call.
- Add-on removal. For dark-web monitoring,
Anvil/ion-bp/infrastructure-customer/offboarding.ps1removes the DCR, the data collection endpoint, and the related role assignments, and can optionally remove the custom table. It leaves the enterprise application in place because other add-ons may share it. For SOAR integration, the customer removes the queue-scoped role assignments. - Full offboarding. After all add-ons are removed, the customer deletes the enterprise application, which removes the service principal and any remaining assignments.
- Ontinue-side emergency. Remove the workload’s federated credential from the hollow app or disable the calling workload; no customer action is needed to stop ION’s access.
Audit
The customer’s Azure Activity Log records role assignment changes and ARM operations by the hollow app’s service principal; the customer’s Entra sign-in logs record its service principal sign-ins. ION records the onboarding record, consent callback verification, discovered capabilities, federated token exchanges, and per-call decisions with customer, workload, scope, and correlation ID. ION never logs assertions or access tokens.