Alya Workbench Identity Workflow
Alya is the internal Cyber Defender workbench. It uses a single-tenant Entra application boundary and an Alya BFF. User tokens terminate at the BFF; all calls from the BFF to ION services use the BFF’s managed identity.
Actors and application identities
| Actor or identity | Population | Responsibility |
|---|---|---|
| Cyber Defender Analyst | Internal operator assigned to investigations or cases | Read and update authorized operational data |
| Cyber Defender Lead | Internal operator with lead and scheduling responsibilities | Perform lead operations within assigned permissions |
| Engineering test user | Explicitly approved non-production or support population | Test or diagnose Alya without inheriting production operator access |
| Alya client | Internal, environment-specific single-tenant application | Sign in internal users and request access to the Alya BFF |
| Alya BFF | Azure-hosted workload with its own managed identity | Terminate user tokens, enforce Alya authorization, and aggregate downstream APIs |
| Downstream ION services | APIs and services with workload identities | Authorize Alya BFF application roles and enforce domain operations |
All interactive Alya users authenticate in the Ontinue internal tenant. Access to customer security resources through Sentinel, Defender, or Graph follows the separate Customer Environment Access lifecycle and is not implied by Alya access.
Roles and Permissions
Naming convention: <platform>.<resource>.<operation>
Examples:
- Ion.DefenderWorkbench.*
- Ion.AutomationWorkbench.*
Flow
Token path and termination
- The user authenticates to the internal Alya client through Entra ID.
- The client obtains a user-delegated token whose audience is the Alya BFF.
- APIM or the Alya edge validates the user token and route, obtains a backend
token as the APIM managed identity, and calls the OAuth-protected Alya BFF. The
original validated user token is delivered only to this BFF in the sensitive
X-Authorizationheader. - The Alya BFF authenticates the APIM caller, revalidates the original user token, role, operation, and any required customer or case assignment.
- The user token terminates at the Alya BFF and MUST NOT be propagated to a downstream API, queue, worker, data store, or telemetry.
- For each downstream API call, the BFF obtains a token using its own managed identity for the ION service audience.
- APIM validates the BFF token and required application role, obtains a token as the selected APIM managed identity, and calls the OAuth-protected target. The target authenticates APIM and enforces its domain authorization.
Background work created from an Alya action records the initiating operation and correlation context, but executes under the responsible worker’s managed identity. It does not retain or replay the user’s bearer token.
Token validation
Alya client configuration
The Alya client uses the environment-specific, single-tenant Entra registration for the Ontinue internal directory:
| Setting | Required configuration |
|---|---|
| Authority | The environment’s Ontinue tenant-specific Entra v2.0 authority; Alya does not use /common, /organizations, or a customer tenant authority |
| Client | The environment-specific Alya public-client registration |
| Flow | Authorization Code with PKCE; implicit flow and browser-held credentials are prohibited |
| Redirect URI | An exact, HTTPS Alya URI declared on the registration; approved localhost URIs are limited to local development |
| API scope | The delegated scope exposed by the environment-specific Alya BFF/API registration |
| Token type | An access token for the Alya BFF/API; an ID token is never accepted as API authorization |
Tenant IDs, application IDs, scopes, and redirect URIs are controlled deployment configuration. They are not embedded in this architecture page or shared across environments.
User access-token contract
APIM or the Alya edge validates the token before routing it, and the Alya BFF performs the same security-critical validation before consuming it. Validation is fail-closed and includes:
| Token property | Validation requirement |
|---|---|
| Signature | Validate with the signing keys published by the configured tenant’s OpenID Connect metadata. Accept only the configured Entra algorithms and refresh keys when Entra rotates them. |
Issuer (iss) | Require the exact issuer for the environment’s Ontinue internal tenant and expected v2.0 endpoint. An issuer from a customer or another Ontinue tenant is rejected. |
Tenant (tid) | Require the configured Ontinue internal tenant. The tenant claim must agree with the trusted issuer. |
Audience (aud) | Require the environment-specific Alya BFF/API audience. A token for the Alya frontend, Microsoft Graph, another ION API, or another environment is rejected. |
Validity (nbf, exp) | Require the token to be active and unexpired, allowing only the platform-approved clock skew. The issued-at value is diagnostic and does not replace validity checks. |
Authorized client (azp or appid) | Require the environment-specific Alya client as the authorized caller, using the claim appropriate to the token version. A valid token obtained by an unrelated client is rejected. |
Delegated scope (scp) | For a delegated route, require the exact Alya BFF scope defined by that route. A workload application role cannot replace it. |
User role (roles) | Where the Alya API contract uses user-assigned application roles, require the specific Analyst, Lead, support, or operation role for the route. A delegated scope alone does not grant that role. |
Subject (oid and sub) | Use stable identifiers to resolve the internal user and authorization assignments. Display name, email, or preferred username is not an authorization key. |
Account type (acct), when emitted | Treat as contextual information only. It does not replace issuer, tenant, assignment, or role validation. |
The validator uses the OpenID Connect metadata for the configured tenant rather than trusting discovery information selected from an unvalidated token. It does not accept unsigned tokens, tokens with an unexpected version or algorithm, or tokens whose required claims are missing or ambiguous.
Authorization after token validation
Successful token validation authenticates the user and client; it does not grant the requested operation. The Alya BFF additionally resolves and enforces:
- active Alya access and the assigned Analyst, Lead, engineering, or support capability;
- the route’s required delegated scope or user role;
- customer, case, and investigation assignment where the operation is scoped;
- resource ownership and permitted state transitions; and
- read, write, remediation, scheduling, reporting, coaching, and audit permissions independently rather than inferring them from Workbench access.
Authorization is enforced at several points:
- Entra assignment: limits who can sign in to Alya and which Alya role is assigned.
- APIM or Alya edge: validates the user token, authorized Alya client, and route scope or role, then authenticates to the Alya BFF as the APIM managed identity and supplies the original token only as sensitive BFF context.
- Alya BFF: authenticates APIM, revalidates and terminates the user token, and enforces Analyst, Lead, support, customer, case, resource, and operation policy.
- Downstream APIs: authorize the Alya BFF managed identity for each operation.
- Azure resources: enforce Azure RBAC against the calling workload identity.
The UI may hide unavailable functions, but UI state is never an authorization control. A token is rejected with an unauthenticated response when its signature, issuer, tenant, audience, authorized client, validity, or required authentication claims fail. A valid token receives a forbidden response when the user lacks the required role, scope, customer, case, resource, or operation permission.
Roles, scopes, and RBAC
Alya roles are capability-based. They cover Workbench entry, incident operations, scheduling, reporting, remediation actions, coaching, customer context, and audit access as required by the deployed feature set. Assign read and write capabilities separately and grant only those required by the user’s job function.
The Alya BFF receives application roles only for downstream APIs it actually calls. Its Azure RBAC assignments are separately scoped to required resources. Neither a user’s Alya role nor the BFF’s API role grants customer-tenant resource access by itself.
Onboarding
- Add the user to the approved internal Alya access group through the corporate joiner/mover process.
- Assign the minimum Analyst, Lead, engineering, or support capabilities.
- Record customer or case assignment in the owning operational system where the operation requires it.
- Provision the Alya BFF managed identity and its least-privilege application roles and Azure RBAC through deployment automation.
- Validate token audience, internal tenancy, role enforcement, customer isolation, downstream workload identity, and denied routes.
Engineering access is time-bound and separated from normal production operator membership. Test and demo identities use non-production environments unless an approved production support procedure requires otherwise.
Revocation and offboarding
Removing the internal group or role assignment prevents new Alya sessions. Movers lose obsolete capabilities before new ones are granted. Case and customer assignments are removed when work ends. Urgent revocation disables the user or session at Entra and removes Alya assignments; privileged access is reviewed for active sessions and queued work.
When Alya or a downstream capability is retired, remove the BFF application-role and Azure RBAC assignments before deleting its managed identity. Verify denied access and retain the change record.
Audit and failure behavior
Sign-in, role change, customer or case assignment, denied operation, downstream call, and privileged support access are auditable. Logs correlate the initiating Alya operation with the BFF and downstream workload identities without storing the user token or unnecessary personal data.
Invalid authentication returns an unauthenticated response. A valid user lacking an Alya capability, customer assignment, or case assignment receives a forbidden response. Failure to resolve authorization context fails closed. Downstream token acquisition, APIM validation, or dependency failures return a controlled service error and must not trigger fallback to the original user token.