V3 Security Guidelines
This page states the cross-cutting security rules for the ION V3 platform. The terms MUST, MUST NOT, SHOULD, and MAY are requirements as defined by RFC 2119.
It does not restate capability standards. Where a capability owns a rule, this page links to it. A rule on this page never weakens a capability standard.
| Area | Normative standard |
|---|---|
| Identity and authorization | Identity standard |
| API ingress | API management guidelines |
| Data protection | Data protection guidelines |
| Network security | Network security guidelines |
| Customer environment access | Integrations standard |
| Edge behavior | Front Door and Application Gateway |
| Network structure | Landing zone guidelines |
Open gaps are non-conformances. They do not relax a MUST. Accepted exceptions are listed in the architecture.
Identity and authorization
- Every endpoint MUST require authentication and authorization (API-1, API-2). Network location MUST NOT grant access.
- Every layer MUST enforce its own controls. A layer MUST NOT assume that an upstream layer has already authorized the request, except for the validated caller context that the identity standard defines.
- JWT audience and scope or role claims MUST be validated at every API boundary (API-3).
- User tokens MUST terminate at the receiving BFF. They MUST NOT be forwarded to a domain service, queue, topic, event, storage service, database, Azure endpoint, or Microsoft Graph, and on-behalf-of exchange MUST NOT be used.
- Authorization failures MUST fail closed and MUST NOT disclose validation internals or customer data.
- Hidden UI controls and Teams membership MUST NOT be treated as authorization.
Permissions
- ION workloads MUST use application permissions or managed identity. They MUST NOT use delegated Entra permissions for calls to Microsoft Graph, Defender, customer tenants, ION APIs, or Azure.
- Delegated scopes MAY be used only for end-user sign-in to a shell: standard OpenID Connect scopes and the sign-in scope exposed by the ION API application. They identify the user, the user token terminates at the BFF, and they MUST NOT be used to reach Graph or Azure on the user’s behalf.
- A delegated permission MUST NOT substitute for a workload’s application
role.
rolesandscpMUST NOT be treated as interchangeable. - Human access to customer environments MUST be granted as user permissions through an approved mechanism: GDAP and URBAC, Azure Lighthouse, B2B guest access, or Teams membership. It MUST NOT be built from workload delegated permissions or shared user credentials.
- The resource owner password credentials (ROPC) grant MUST NOT be used, except for the recorded Pigeon Teams publishing path in ADR-0013 § 4. A new ROPC or delegated workload path MUST be approved as a new ADR exception before it ships.
- Documentation and reviews MUST distinguish delegated administration (GDAP, Lighthouse) from Entra delegated permissions. They are different concepts.
Credentials and secrets
- Workloads MUST use managed identity. Every microservice MUST have its own user-assigned managed identity, and system-assigned identities MUST NOT be used for ION microservices.
- New Entra applications MUST be created with federated credentials only. New client secrets MUST NOT be created for Ontinue-controlled callers.
- A credential that an external system requires, and that cannot be federated, MUST be security-approved, stored in Key Vault, owned, expiring, rotated, monitored, and revoked at retirement.
- Shared keys, access keys, and connection strings MUST NOT be used where managed-identity access is supported. Local authentication SHOULD be disabled on every service that allows it.
- Secrets, tokens, authorization headers, and private keys MUST NOT appear in source, images, logs, traces, exception text, or support artifacts.
The detailed rules are in the identity standard and the data protection guidelines.
Segmentation and tenant isolation
- Customer data MUST be partitioned by tenant, and tenant context MUST be validated at each boundary that handles it (SEC-2, DATA-4).
- Environments MUST be isolated. Production registrations, credentials, and permissions MUST NOT be shared with other environments, and a resource MUST NOT allow network access from another environment.
- Customer-tenant access MUST use the application that matches its surface. The existence of a service principal or consent MUST NOT be treated as a capability.
- Each microservice, application, and customer-access surface SHOULD have the narrowest scope that allows it to do its job, so a compromise stays contained.
Edge and API exposure
- Public HTTP traffic MUST reach the platform through Azure Front Door with the WAF enabled (SEC-4), except for the recorded exceptions.
- The Application Gateway WAF MUST stay disabled while SEC-5 stands, and its public IP MUST be protected by DDoS protection.
- Every API MUST be published through APIM, and every protected operation
MUST validate the required
Ion.*application role or, for end-user sign-in tokens, the user role or delegated sign-in scope that the route defines. - A new public endpoint, route, or webhook MUST go through the edge and APIM guidelines. A new bypass of the global JWT policy MUST be a reviewed, recorded exception with provider-specific validation.
- A new route MUST NOT use the legacy direct-to-Application-Gateway origin pattern. The two permitted direct paths are the recorded SignalR exception and the human-approved Front Door outage bypass.
- Callers that skip Front Door and reach the APIM gateway directly are a known non-conformance (APIM-02).
Network and remote access
- Every ION resource MUST have an appropriate network configuration for its
role (SEC-6). Rules MUST NOT allow
0.0.0.0/0unless a recorded exception covers it. - ZPA MUST be used only for human engineer access to platform resources. The platform runtime MUST NOT depend on ZPA.
- Network rules MUST NOT be the only control on a resource. Identity-based access MUST apply even when the network rule is broad.
- Network structure changes MUST follow the landing zone guidelines. Resource-level rules MUST follow the network security guidelines.
Data protection and residency
- Data MUST be protected in transit and at rest (SEC-3), as defined in the data protection guidelines.
- Core data stores, which are the event stores, relational databases, Service Bus, and Event Hubs, MUST be deployed in Switzerland North.
- A resource type MAY be deployed outside Switzerland only if it is on the ADR-0034 exclusion list, and only in an allowed region. Adding a type MUST be an ADR-0034 amendment approved by Security and Legal.
- Retention, deletion, and audit logging MUST support the tenant-aware obligations in SEC-9.
- Direct human access to production data MUST be prohibited except through an audited, approved, time-bounded break-glass procedure.
Monitoring and audit
- Unauthenticated and unauthorized access attempts MUST be identified and logged (SEC-1), without recording tokens or credentials.
- Diagnostic settings MUST be enabled for every resource that supports them. Azure Policy deploys them, so a resource MUST NOT opt out.
- Request and trace logging MUST NOT record bearer tokens, capability tokens, or full request bodies that can contain customer data or identity claims. The known deviations are APIM-03 and the SignalR query-string token.
- Authentication, authorization, consent, role, federated-credential, and credential events SHOULD be monitored by the owning team.
- Suspected token or credential exposure MUST trigger containment, revocation, a log-preserving investigation, and a check that the old access fails.
Secure delivery
- Infrastructure, identity, and network configuration MUST be declared in version-controlled code and deployed by pipeline. Portal changes MUST NOT be the system of record.
- Pipelines MUST authenticate with GitHub OIDC federation and MUST NOT hold stored deployment secrets (ADR-0024).
- Identity and permission changes MUST include positive and negative authorization tests before production activation.
- Threat modelling, vulnerability scanning, fuzz testing, and security review MUST be applied throughout delivery (SEC-7). Their procedures are documented separately.
Administrative access
- Engineer access to platform resources MUST use ZPA.
- Privileged operator access to customer environments MUST be held through governed Entra groups, PIM-protected where nested into Lighthouse groups and role-assignable for GDAP, and MUST be revocable by the customer.
- Infrastructure changes MUST follow the reviewed IaC path. An emergency change MUST be reconciled into code before the change record closes.
- SRE MUST handle first-line incidents and escalate to the owning team.
Customer-tenant access
- Access mechanisms MUST be selected and operated as defined in the integrations standard and ADR-0033.
- Customers MUST retain the ability to scope and revoke access. ION MUST degrade gracefully when access is missing.
- Customer offboarding MUST follow the identity standard.
Exceptions and gaps
An exception is an approved, intentional deviation. A gap is unfinished work. They are tracked differently.
To add an exception:
- Record it in an ADR or an amendment to the ADR that sets the rule.
- State why the standard control is not possible, and which compensating controls apply.
- Name an owner and an exit or review condition.
- Link the record from the recorded exceptions table, and from the capability page that owns the control.
To record a gap, add it to the register of the capability that owns it: NET, LZ, APIM, or the edge pages. A gap MUST have an owner and a disposition. A gap MUST NOT be described as an accepted exception until an ADR records it.