ION DocsV3
  • Architecture
    • ION Architecture V2
      • ION V2 — Architecture Overview
      • V2 context
        • V2 capacity model
        • V2 constraints
        • V2 integration boundaries
        • V2 requirements
        • V2 solution strategy
      • V2 Structural Design
        • ION V2 Landscape
        • ION V2 Platform Views
          • ION V2 Delivery and Runway
          • ION V2 Incident-Processing Pipelines
          • ION V2 Platform Networking
          • ION V2 Platform Observability
          • ION V2 Platform Security
        • ION V2 System Context
        • ION V2 Systems
          • Alya System Topology
          • Cogs System Topology
          • Ion IQ System Topology
          • Kingsman System Topology
          • Pigeon System Topology
          • Veritas System Topology
          • Watchtower System Topology
      • V2 evolution and platform lineage
        • Tiberium Origins
          • Tiberium Architecture Overview
          • Tiberium Components Architecture Overview
        • Voyager and the V2 Merge
          • Voyager Architecture Overview
          • Voyager Identity Architecture Overview
          • Voyager Services Architecture Overview
      • V2 Platform Architecture
        • Alya Workbench
          • Mission Brief: Alya (Workbench for Cyber Defenders)
        • Asset Discovery
        • Automation
        • Customer Communications
          • Notification and Escalation Design
        • Reporting and Dashboards
        • Vulnerability Mitigations
      • V2 Well-Architected
        • V2 Reliability
          • Availability Architecture
        • V2 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V2 Security Architecture
          • Teams Notification Security
          • Customer Data and PII
          • V2 Identity
            • Applications and Authorization
            • V2 Identity Architecture
            • Microsoft Entra ID
            • V2 Identity Standard
            • V2 Identity Implementation
              • Application Registration
              • Application Roles
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Managed Identity
            • V2 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Portal Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Customer Environment Access Architecture
            • Customer Environment Access Guidelines
            • Customer Environment Access How-to
    • ION Architecture V3
      • ION V3 Architecture Overview
      • V3 context
        • V3 capacity model
        • V3 constraints
        • V3 integration boundaries
        • V3 requirements
        • V3 solution strategy
      • V3 Structural Design
        • Data and events
          • Archival and retention
          • Event model
          • Event sourcing
          • Event store
          • Micro-frontend interaction
          • Recovery and disaster recovery
          • Replay and reconstruction
          • Reporting and customer analytics
          • Event-sourcing requirements
          • Snapshots
          • UI interaction
        • ION v3 domains
          • Assets domain
            • Assets domain flows
            • Assets domain implementation
            • Assets domain model
          • Customer Collaboration domain
            • Customer Collaboration domain flows
            • Customer Collaboration domain implementation
            • Customer Collaboration domain model
          • Incident domain
            • Incident domain flows
            • Incident domain implementation
            • Incident domain model
          • Investigation domain
            • Investigation domain flows
            • Investigation domain implementation
            • Investigation domain model
          • Remediation domain
            • Remediation domain implementation
            • Remediation domain model
          • Ticket domain
            • Ticket domain flows
            • Ticket domain implementation
            • Ticket domain model
        • ION V3 Landscape
        • ION V3 Platform Views
          • Internal API
            • Internal API architecture
            • Internal API consumer guide
            • Internal API identity and access
            • Internal API implementation
          • Micro-Frontends
            • Micro-Frontends architecture
            • Micro-Frontends capability service (Signet)
            • Micro-Frontends composition
            • Micro-Frontends identity and access
            • Micro-Frontends implementation
            • Micro-Frontends real-time (SignalR)
            • Micro-Frontends routing and ingress
            • Shells and MFEs
          • SOAR Integration
            • SOAR Integration architecture
            • SOAR Integration customer onboarding
            • SOAR Integration Identity and Access Design
            • SOAR Integration implementation
            • SOAR Integration operations
        • ION V3 System Context
        • ION V3 systems
          • Alya
          • Cogs
          • ION IQ
          • Kingsman
          • Pigeon
          • Veritas
          • Watchtower
      • V2 to V3 evolution
        • V2 to V3 architecture delta
        • V2 to V3 decision changes
        • V2 to V3 migration guidance
        • V2 to V3 service impact
      • Well-Architected
        • Cost Optimization
          • Cost Governance
            • Cost Governance Architecture
            • Cost Governance Guidelines
            • Cost Governance Implementation
          • SKU Strategy
            • SKU Strategy Architecture
            • SKU Strategy Guidelines
            • SKU Strategy Implementation
        • Operational excellence
          • Audit Logs
            • Audit Logs Architecture
            • Audit Logs Guidelines
            • Audit Logs Implementation
          • CI/CD Runway
            • CI/CD Runway Architecture
            • CI/CD Runway Guidelines
            • CI/CD Runway Implementation
          • Feature Flags
            • Feature Flags Architecture
            • Feature Flags Guidelines
            • Feature Flags Implementation
          • Incident management
            • Incident management architecture
            • Incident management guidelines
            • Incident management implementation
          • Azure Landing Zone
            • Azure Landing Zone Architecture
            • Azure Landing Zone Guidelines
            • Azure Landing Zone Implementation
          • Notifications
            • Notifications Architecture
            • Notifications Guidelines
            • Notifications Implementation
          • Observability
            • Observability Architecture
            • Observability Guidelines
            • Observability Implementation
        • Performance efficiency
          • Capacity, sizing, and scaling
            • Capacity, sizing, and scaling architecture
            • Capacity, sizing, and scaling guidelines
            • Implement capacity, sizing, and scaling
          • UI responsiveness
            • UI responsiveness architecture
            • UI responsiveness guidelines
            • Implement UI responsiveness
        • V3 reliability
          • Application resilience patterns
          • Critical flows
          • Customer reliability assurance
            • ION Platform reliability and service continuity
            • Customer reliability slides
          • Disaster recovery
            • Disaster recovery architecture
            • Disaster recovery guidelines
            • Disaster recovery implementation
              • DR implementation: API Management
              • DR implementation: App Configuration
              • DR implementation: Application Gateway
              • DR implementation: Azure SQL Database
              • DR implementation: Container Apps
              • DR implementation: Container Registry
              • DR implementation: Cosmos DB
              • DR implementation: Event Hubs
              • DR implementation: Azure Front Door
              • DR implementation: Function Apps
              • DR implementation: Key Vault
              • DR implementation: Log Analytics and Application Insights
              • DR implementation: MySQL Flexible Server (Temporal)
              • DR implementation: PostgreSQL Flexible Server
              • DR implementation: Azure Managed Redis
              • DR implementation: Service Bus
              • DR implementation: SignalR
              • DR implementation: Storage accounts
            • Operational-data replication
            • Disaster recovery operations
          • Edge and routing
            • Azure Application Gateway
              • Azure Application Gateway architecture
              • Azure Application Gateway guidelines
              • Azure Application Gateway implementation
              • Azure Application Gateway resiliency
              • Azure Application Gateway security
            • Azure Front Door
              • Azure Front Door architecture
              • Azure Front Door guidelines
              • Azure Front Door implementation
              • Azure Front Door resiliency
              • Azure Front Door security
          • Event-store disaster recovery (moved)
          • Failure mode analysis
          • Graceful degradation
            • Graceful degradation architecture
            • Graceful degradation guidelines
            • Graceful degradation implementation
          • V3 reliability maturity model
            • V3 reliability maturity assessment
            • Maturity level 2: self-preservation
            • Maturity level 3: recovery readiness
            • Maturity level 4: maintain stability
            • Maturity level 5: stay resilient
          • Multi-region replication
            • Multi-region replication architecture
            • Multi-region replication guidelines
            • Multi-region replication implementation assessment
          • Reliability testing
          • Scaling and headroom
          • Targets and health model
          • Trade-offs and accepted risks
        • V3 Security
          • API Management
            • API Management Architecture
            • API Management Guidelines
            • API Management Implementation
              • API Contracts and Asynchronous Operations
              • APIM Deployment and Debugging
              • APIM Global Policy Implementation
              • APIM Platform Provisioning
              • APIM Policy Authoring
              • APIM Service Onboarding
              • APIM Webhook Flow Implementation
            • API Management Policy Model
          • V3 Security Architecture
          • Data protection
            • Data protection architecture
            • Data protection guidelines
            • Data protection implementation guidelines
              • API Management
              • Application Gateway
              • Azure SQL Database
              • Azure Container Apps
              • Azure Cosmos DB
              • Azure Front Door
              • Azure Function Apps
              • Azure Database for MySQL
              • Azure Database for PostgreSQL
              • Data protection procedures
          • V3 Security Guidelines
          • V3 Identity
            • Applications and Authorization in ION V3
            • V3 Identity Architecture
            • Capabilities
            • Microsoft Entra ID for ION V3
            • V3 Identity Standard
            • V3 Identity Implementation
              • App Service Authentication
              • Application Registration
              • Application Roles
              • Customer Azure RBAC
              • Customer Identity Onboarding
              • Identity Lifecycle and Operations
              • Mailbox-Scoped Access
              • Managed Identity
              • Workload Identity Federation
            • V3 Identity Workflows
              • Alya Workbench Identity Workflow
              • Customer Azure RBAC Identity Workflow
              • Customer Portal Identity Workflow
              • Mailbox Access Identity Workflow
              • Microservices Identity Workflow
              • ServiceNow Inbound Identity Workflow
              • Shell and MFE Identity Workflow
              • Microsoft Teams Identity Workflow
          • Customer Environment Access
            • Azure Lighthouse
              • Azure Lighthouse implementation
            • GDAP and Tenant Governance
              • Access Packages (legacy)
              • GDAP human access implementation
            • Customer environment access guidelines
            • Multi-tenant Entra apps
              • Multi-tenant Entra apps implementation
            • Teams B2B Direct Connect
              • Teams B2B Direct Connect implementation
          • Network Security
            • Network Security Architecture
            • Network Security Guidelines
            • Network Security Implementation
              • Egress and Static IPs
              • Resource Access Restrictions
          • V3 Security Patterns
    • ION Architecture V4
      • How V4 evolves from V3
  • Principles
  • Patterns
    • Application Permissions Only
    • Async REST
    • Audit Logs (Pattern)
    • Auth / AuthZ
    • Dead Letter Queue (DLQ)
    • Dual Writes (and how to avoid them)
    • ECST — Event-Carried State Transfer
    • Event Hubs Throttling
    • Feature Flags (Pattern)
    • Idempotent Write
    • MFE UI Interaction
    • Notifications (Pattern)
    • Private Data Store Access
    • Schema Evolution
    • Service Bus Topic Throttling
    • UI Interaction with an Event-Sourced Backend
  • Standards
    • API Standard
    • API Standards
    • Coding Standard
    • Coding Standards
    • Documentation Standard
    • Documentation Standards
    • Microservice Standard
    • Microservice Checklist
    • Operational Readiness Standard
    • ORR — Operational Readiness Review Checklist
  • Decisions
    • ADR-0001
    • ADR-0002
    • ADR-0003
    • ADR-0004
    • ADR-0005
    • ADR-0006
    • ADR-0007
    • ADR-0008
    • ADR-0009
    • ADR-0010
    • ADR-0011
    • ADR-0012
    • ADR-0013
    • ADR-0014
    • ADR-0015
    • ADR-0016
    • ADR-0017
    • ADR-0018
    • ADR-0019
    • ADR-0020
    • ADR-0021
    • ADR-0022
    • ADR-0023
    • ADR-0024
    • ADR-0025
    • ADR-0026
    • ADR-0027
    • ADR-0028
    • ADR-0029
    • ADR-0030
    • ADR-0031
    • ADR-0032
    • ADR-0033
    • ADR-0034
  • Services
  • Governance
    • Assumptions
    • Discrepancies
    • V3 reference coverage and conflict matrix
OntinueION Docs
  1. Architecture
  2. ION Architecture V3
  3. Well-Architected
  4. V3 Security
  5. Data protection
  6. Data protection implementation guidelines
  7. Azure Database for MySQL

Azure Database for MySQL

architecturev3

Azure Database for MySQL

Azure Database for MySQL Flexible Server is the persistence and visibility store for the self-hosted Temporal cluster (ADR-0019). This page covers the data-protection configuration of the server, the bounded password exception that Temporal needs, and the Temporal connection settings.

Data the resource handles

  • Temporal workflow history, mutable state, task queues, and timers. History includes workflow and activity inputs and outputs, which can contain customer data.
  • Temporal visibility records: search attributes and memos used to list and filter workflows.

The Temporal store is a customer-data store. Workflow and activity payloads SHOULD carry identifiers and references rather than bulk customer data. Search attributes and memos MUST NOT contain secrets or tokens, and SHOULD NOT contain personal data beyond identifiers such as customerShort.

Encryption at rest

  • Storage, backups, and logs are encrypted at rest by the service.
  • Microsoft-managed keys are the default. Customer-managed keys MUST NOT be used without a documented compliance driver, key lifecycle, outage impact, and recovery design. Customer-managed keys can only be chosen when the server is created.

Encryption in transit

  • require_secure_transport MUST be ON.

  • tls_version MUST allow only TLSv1.2 or higher. TLSv1.3 SHOULD be included where the server version supports it.

  • Temporal MUST connect with TLS and host verification for both the persistence and the visibility datastores:

    Temporal settingValue
    SQL_TLS_ENABLEDtrue
    SQL_HOST_VERIFICATIONtrue
    SQL_HOST_NAMEThe server FQDN that matches the certificate
    SQL_CAPath to the CA bundle Microsoft publishes for Azure Database for MySQL

    The CA bundle MUST include the current and announced replacement root certificates so a certificate rotation does not break connections.

Identity and access

Temporal’s SQL plugin does not support Entra access tokens. Temporal therefore uses a MySQL password. This is the only password exception for ION data stores, and it is bounded by these rules:

  • Temporal MUST use a dedicated non-admin runtime user with DML privileges (SELECT, INSERT, UPDATE, DELETE) on the Temporal persistence and visibility databases only.
  • Schema setup and upgrades with Temporal’s SQL tool (for example from the admin-tools container) MAY use a separate migration user with DDL on the same databases. It MUST NOT be used by the Temporal server at runtime.
  • The server administrator login is break-glass only. Its password MUST be held in Key Vault and MUST NOT be passed to Temporal, admin tools, or any other workload.
  • An Entra administrator group MUST be configured. Human operators MUST use Entra authentication, not the runtime, migration, or administrator passwords.
  • aad_auth_only stays OFF only because of this exception. If Temporal gains Entra token support, the exception ends and the server MUST move to Entra-only authentication.

Other workloads MUST NOT use this server. A new MySQL store for another purpose MUST use Entra-only authentication.

Secrets

  • The runtime and migration passwords MUST be generated, stored in Key Vault, and never written to source, pipeline logs, or plain Terraform variables.
  • Container Apps MUST inject them as Key Vault references (secrets[].keyVaultUrl with identity), not as plain secret values. Plain values are stored in the Container App resource and in Terraform state. See Azure Container Apps.
  • Rotation MUST support overlap so Temporal keeps working while the new password rolls out. MySQL dual passwords (ALTER USER ... RETAIN CURRENT PASSWORD) or two alternating runtime users SHOULD be used. The old password is discarded only after every Temporal replica uses the new one.

Backup and recovery

  • Backup retention MUST be at least 7 days and SHOULD be 35 days in prd.
  • Geo-redundant backup SHOULD be enabled in prd, so a backup copy is held in Switzerland West. This is a backup copy, not a DR capability. It can only be enabled when the server is created.
  • Multi-region Temporal is part of the planned warm spare (ADR-0017, ADR-0019) and MUST NOT be described as available until it is deployed and tested.
  • High availability MUST be zone redundant in gma and prd. apa and bta MAY run without HA, including on Burstable compute.
  • prd servers MUST have a CanNotDelete resource lock or Terraform prevent_destroy.
  • Restores MUST be tested together with Temporal, with drills in gma. A restored persistence store and visibility store MUST come from a consistent point in time.

Logging and redaction

  • Diagnostic settings MUST send MySqlAuditLogs to the Switzerland North Log Analytics workspace.
  • Audit logging MUST be enabled for connections and DDL: audit_log_enabled set to ON and audit_log_events set to CONNECTION,DDL. DML and GENERAL events MUST NOT be audited by default.
  • The slow query log SHOULD be OFF because it records statement literals. Query analysis SHOULD use normalized statement digests.
  • Full statement or slow-query capture MAY be enabled for a bounded period when analysis needs it, for example for high-volume Temporal queries. Record it as an exception and turn it off when the analysis is done.
  • Temporal server logs MUST NOT include the SQL password or connection strings with credentials.

Network exposure

  • VNet integration (a delegated subnet with private DNS) SHOULD be used. Temporal is internal, so the server has no public client. It can only be chosen when the server is created.
  • If public access is used, the ZPA configuration in ADR-0025 applies:
    • Firewall rules allow only ZPA connector IPs and platform IPs.
    • 0.0.0.0/0 MUST NOT be allowed.
    • The Azure-services rule SHOULD NOT be created without a recorded exception.
  • Private endpoints are the Phase 2 target (ADR-0016).

Configuration reference

Properties are on Microsoft.DBforMySQL/flexibleServers and its configurations child resources. Map them to azurerm_mysql_flexible_server* resources or azapi equivalents.

SettingRequired valueBasis
require_secure_transportONTLS on every hop
tls_versionTLSv1.2 or higherTLS on every hop
aad_auth_onlyOFF only for the Temporal exceptionThis page
administratorsEntra group configuredADR-0013
backup.backupRetentionDaysAt least 7; 35 in prd (SHOULD) (backup_retention_days in azurerm)Residency and recovery
backup.geoRedundantBackupEnabled in prd (SHOULD; creation only) (geo_redundant_backup_enabled in azurerm)Residency and recovery
highAvailability.modeZoneRedundant in gma and prdADR-0017
network.delegatedSubnetResourceIdDelegated subnet (SHOULD; creation only)ADR-0025
audit_log_enabled / audit_log_eventsON / CONNECTION,DDLADR-0021
slow_query_logOFF by default (SHOULD)ADR-0021
Temporal SQL_TLS_ENABLED / SQL_HOST_VERIFICATIONtrue / trueTLS on every hop
Resource lockCanNotDelete in prdResidency and recovery

Related ADRs and pages

  • ADR-0017 — DR posture
  • ADR-0019 — Temporal workflow substrate
  • ADR-0021 — observability stack
  • ADR-0025 — remote access with ZPA
  • Azure Container Apps
  • Azure Database for PostgreSQL
  • Implementation guidelines index

On this page

  • Data the resource handles
  • Encryption at rest
  • Encryption in transit
  • Identity and access
  • Secrets
  • Backup and recovery
  • Logging and redaction
  • Network exposure
  • Configuration reference
  • Related ADRs and pages
PreviousAzure Function Apps
NextAzure Database for PostgreSQL
Edit on GitHubSecurity