Azure Container Apps
Azure Container Apps host ION containerized services, including the self-hosted Temporal cluster and its workers (ADR-0019). This page covers the data-protection configuration of Container Apps environments and apps: ingress, secrets, registry access, volumes, and logs.
Data the resource handles
- Requests and gRPC calls between services, including workflow and activity payloads that can contain customer data.
- Secrets and Key Vault references injected into containers.
- Container console and system logs.
- Volumes, where an app mounts storage.
Encryption at rest
- Container Apps hold no authoritative data. Stateful dependencies, such as the Temporal MySQL store, follow their own resource pages.
- Apps SHOULD NOT mount Azure Files volumes that need a storage account key. Where a key-based volume is unavoidable, it needs a recorded exception, and the key MUST be held in Key Vault and rotated.
- Container images MUST NOT contain secrets, certificates with private keys, or customer data.
Encryption in transit
- Ingress MUST set
allowInsecuretofalse, so HTTP is redirected to HTTPS and never served. - The environment MUST enable peer-to-peer traffic encryption, so traffic between apps in the environment is encrypted.
- Traffic that does not go through the environment’s encrypted peer path, such as TCP ingress, MUST use TLS terminated by the application itself.
- Temporal server, worker, and admin-tools connections to the database MUST use TLS with host verification. See Azure Database for MySQL.
- Outbound calls MUST use HTTPS or TLS-encrypted protocols. Clients MUST NOT disable certificate validation.
Identity and access
- Each app MUST use a user-assigned managed identity for Azure dependencies
(ADR-0013).
Containers select it with
AZURE_CLIENT_ID. - Image pulls MUST use a user-assigned identity with
AcrPullon the registry. The registry admin user MUST be disabled, and registry passwords MUST NOT be configured. - HTTP APIs MUST validate Entra tokens. Ingress IP restrictions are defense in depth, not authentication.
Secrets
- Secrets MUST be Key Vault references (
secrets[].keyVaultUrlwithsecrets[].identity) to versionless secret URIs. - Plain secret values (
secrets[].value) MUST NOT be used for credentials. They are stored in the Container App resource and in Terraform state. - Containers MUST read secrets through
secretRefenvironment variables or secret volume mounts, never through plainvalueenvironment variables. - Rotation MUST support overlap. A new revision or restart picks up the new secret version.
Backup and recovery
- Container Apps are stateless. Recovery is a redeploy from IaC and images in Azure Container Registry.
- Environments SHOULD be zone redundant in
gmaandprd(ADR-0017). Zone redundancy needs a custom VNet and can only be set when the environment is created. - Image tags SHOULD be immutable (digest or unique version), so a redeploy restores the exact running version.
Logging and redaction
- The environment log destination SHOULD be
azure-monitor, with diagnostic settings sendingContainerAppConsoleLogsandContainerAppSystemLogsto the Switzerland North Log Analytics workspace. Thelog-analyticsdestination needs a workspace shared key and SHOULD NOT be used. - Applications MUST NOT write request or response bodies, workflow or
activity payloads, tokens, secrets, or connection strings to console logs.
customerShortanduserEmailMAY be logged. - OpenTelemetry and Application Insights collection MUST NOT capture bodies or SQL command text. Application Insights ingestion SHOULD be Entra-authenticated.
- Audit records go to
IonAudit_CL, unsampled and unredacted (ADR-0021).
Network exposure
- Apps that are not called from outside the environment MUST use internal
ingress (
external: false) or no ingress. - Environments that host only internal apps SHOULD be internal (VNet integrated, no public endpoint). This is set when the environment is created.
- External ingress MUST use IP restrictions that allow only APIM, required
ZPA connector IPs, and platform IPs.
0.0.0.0/0MUST NOT be allowed. - Private endpoints are the Phase 2 target (ADR-0016).
Configuration reference
Properties are on Microsoft.App/managedEnvironments and
Microsoft.App/containerApps. Map them to azurerm_container_app* resources
or azapi equivalents.
| Setting | Required value | Basis |
|---|---|---|
containerApps.configuration.ingress.allowInsecure | false | TLS on every hop |
containerApps.configuration.ingress.external | false unless the app is called from outside | ADR-0025 |
containerApps.configuration.ingress.ipSecurityRestrictions | APIM, ZPA connector, and platform IPs only | ADR-0025 |
containerApps.configuration.secrets[].keyVaultUrl / identity | Key Vault reference with the app’s identity | Secrets and Key Vault |
containerApps.configuration.registries[].identity | User-assigned identity with AcrPull | ADR-0013 |
containerApps.identity.type | UserAssigned | ADR-0013 |
managedEnvironments.peerTrafficConfiguration.encryption.enabled | true | TLS on every hop |
managedEnvironments.appLogsConfiguration.destination | azure-monitor (SHOULD) | ADR-0021 |
managedEnvironments.zoneRedundant | true in gma and prd (SHOULD; creation only) | ADR-0017 |
managedEnvironments.vnetConfiguration.internal | true for internal-only environments (SHOULD; creation only) | ADR-0025 |