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. Decisions
  2. CI/CD — GitHub Actions with push-to-main + PR-validation, CPE-owned reusable workflows, shared Terraform modules, WIF-federated Azure deployments

CI/CD — GitHub Actions with push-to-main + PR-validation, CPE-owned reusable workflows, shared Terraform modules, WIF-federated Azure deployments

proposedoperational excellence
decisionsv3v4proposed0024cicdgithub-actionsrunwayterraformtf-modulesoidcwifjfrogartifactoryiacauditcompliance

ADR-0024 — CI/CD: GitHub Actions with push-to-main + PR-validation, CPE-owned reusable workflows, shared Terraform modules, WIF-federated Azure deployments

Context

Every ION service — backend microservice, MFE, BFF, database schema, APIM policy, infrastructure — needs a way to build, test, promote, and deploy through the four ION environments (Alpha apa, Beta bta, Gamma gma, Prod prd) that § 15 locks in as separate management groups + subscriptions. Concretely the pipeline must:

  • Build service artifacts, run unit + integration tests, publish Trilateral-API contracts as consumable packages.
  • Provision service-owned Azure resources via IaC only — no manual portal changes above Alpha (per new § 25).
  • Deploy Azure Functions, Static Web Apps, MFEs, DACPACs, Logic Apps, ACIs — the concrete unit types documented under .github/workflows/ in Anvil.
  • Enforce a uniform merge gate — required checks + CODEOWNERS multi-team approval — across every service in the mono-repo, so quality, security, and compliance posture is consistent regardless of who wrote the code.
  • Route deployments through per-environment approval gates with distinct RBAC and env-scoped identities.
  • Authenticate to Azure and to customer tenants without long-lived credentials (per ADR-0009 / ADR-0013 credential-less posture).
  • Onboard a new service with the whole machinery (Artifactory repos, RBAC, service Entra apps, GitHub environments) as a governed one-shot operation.
  • Produce end-to-end audit evidence for SOC1 and equivalent compliance frameworks — every production change traceable back to a merged PR, its approvals, its required checks, its environment approvals, and the OIDC-issued deployment identity.

This ADR codifies the CI/CD substrate for ION V3. Ontinue’s CPE (Cloud Platform Engineering) team operates the shared CI/CD stack under the codename Runway — GitHub Enterprise + GitHub Actions + JFrog Artifactory + Azure, glued together by a set of CPE-owned reusable workflows that every ION service consumes. The whole stack is live in /Users/shy/code/Anvil (mono-repo, ~600 workflows under .github/workflows/, ~59 shared Azure Terraform modules under tf-modules/azure/).

Forces / Drivers

  • Requirement / Constraint: four-environment promotion (apa/bta/gma/prd per § 15) across independent Azure landing zones (per § 24); IaC-only change model, no manual portal edits above Alpha (per new § 25); credential-less Azure auth (ADR-0013); per-env RBAC
    • approval gates; ability to onboard new services at platform scale (60+ services); Trilateral API contract publication (ADR-0001, ADR-0005) as versioned consumer packages; end-to-end audit traceability for SOC1 and equivalent compliance frameworks.
  • Principle(s) embodied: § 25 Fully automated deployment (IaC-first, no manual changes) (primary — this ADR is the mechanism); § 15 Deploy through the same pipeline; environments are isolated; § 12 Managed Identity for service-to-service authentication (WIF/OIDC = credential-less on GitHub); § 22 Least privilege (env-scoped federated credentials, per-env approvals, per-service CODEOWNERS scope); § 23 Blast-radius containment (env-scoped identities, per-env approvals, PR-time ephemeral environments in Alpha only); § 21 Azure-native managed services first (Azure Storage Terraform state, ACR runtime registry, Azure Automation Account custom protection rules); § 24 Azure Landing Zone architecture best practices (env-per-landing-zone).
  • WAF pillar optimized: operational-excellence (primary — one pipeline substrate, one PR gate, one promotion ceremony across every ION unit); security (credential-less OIDC, env-scoped approvals, mandatory security PR checks); reliability (repeatable IaC-driven promotion, recorded deployments, custom protection rules gating prod).

Decision

ION V3 CI/CD runs on GitHub Enterprise + GitHub Actions, integrated with JFrog Artifactory and Azure, and glued together by CPE-owned reusable workflows that every service is expected to consume. Concretely:

1. Mono-repo + trunk-based development (GitHub Flow)

  • Single mono-repo (Anvil) holds all ION source, IaC, workflows, and docs — per CPE’s repository-structure guidance (see references).
  • GitHub Flow / trunk-based development on main: short-lived feature branches, PR into main, deploy from main.
  • Each service has its own folder (<service>/) with its own workflows (.github/workflows/<service>*.yml) so PRs and deployments are scoped per service; multiple services can be changed in a single PR when needed.

2. Mandatory PR-validation gate (enforced platform-wide)

Every PR into main MUST pass a common set of required checks, implemented as CPE-owned reusable workflows that services call from their <service>-pr.yml:

Required checkCPE reusable workflow(s)Purpose
Secret validationschedule-secret-validation.yml, PR-time hookDetect committed credentials.
PR labellib-validate-linter-pr-checks.yml and semantic-versioning label checkEnforce semver label (Major/minor/patch/re-release) required for artifact publishing.
PR titlevalidate-pr-title.ymlConventional-commit-style PR titles for traceability.
CodeQLlib-validate-codeql.yml, codeql-daily.ymlSAST across changed code.
TFSEClib-validate-tfsec.yml, schedule-tfsec-validation.ymlTerraform security scanning.
OSS License / dependency-reviewGitHub dependency-review actionBlock disallowed licenses / known-vuln deps.
Linterlib-validate-biome-linter.yml, lib-validate-linter-ion.yml, lib-validate-linter-rbac.ymlCode style + ION-specific lint rules (incl. RBAC lint).

Teams that build their own PR-check implementations are not supported by CPE. The reusable workflows are the contract.

3. CODEOWNERS-driven multi-team approval

  • Every service folder has a CODEOWNERS entry pinning the owning Service Delivery Team.
  • A PR touching multiple service folders requires approval from each owning team, enforced by GitHub’s CODEOWNERS mechanism.
  • Combined with the required checks in § 2, this makes the merge gate uniform across the mono-repo: required checks green + all CODEOWNERS approved → mergeable to main.

4. Push-to-main + PR-validation as the enforced pattern

The platform enforces two flavours of pipeline per service:

  • <service>-pr.yml — runs on PR: build, test, required checks (§ 2), and optionally an ephemeral Alpha-only deploy to a short-lived Azure Container Instance (lib-aci-ghpr-create.yml / lib-aci-ghpr-delete.yml) for validation. PR deploys are limited to Alpha.
  • <service>.yml — runs on push to main: builds, tests, publishes artifacts, deploys through apa → bta → gma with env-scoped approvals.
  • <service>-tag.yml / <service>-release.yml — tag or release events promote a versioned artifact to prd. Prod promotion is deliberate: a signed tag, not an implicit push.

Team-internal reusable workflow sets (e.g., the Kronos-prefixed workflows owned by the Kronos team; see kronos-build-test-and-deploy.yml etc.) are allowed and used, but they are team-owned patterns, not platform-wide layers. The platform-wide contract is § 2 + § 3 + § 4 above.

5. Infrastructure as Code — Terraform primary, ARM/Bicep fallback

  • Terraform is the default IaC tool for ION services.
  • ARM / Bicep are sanctioned as fallback where Terraform provider coverage is missing or lagging (e.g., certain Sentinel / Defender / emerging-service scenarios). Choosing ARM/Bicep for a component is a local decision, documented in the service’s infra/ folder.
  • Shared Terraform modules live in tf-modules/:
    • tf-modules/azure/ — 59 Azure resource modules covering the ION resource palette (APIM, App Gateway, Front Door, Cosmos, Service Bus queue/topic/subscription, Function App Linux, Key Vault, Private Endpoint DNS, RBAC assignment, MFE Static Web App, PowerBI Embedded, MSSQL, Redis, Log Analytics, Storage Account, Subnet, NAT Gateway, Synapse, Container Registry, etc.).
    • tf-modules/artifactory/ — JFrog repo / RBAC modules.
    • tf-modules/auth0/ — Auth0 tenant resources.
  • Module authorship is platform-owned; module consumption is service-owned. Modules are versioned and published to Artifactory via the semantic-versioning label mechanism (see § 8).
  • Terraform state lives in Azure Storage, one state per service per environment. State access is via WIF (§ 6), no long-lived keys checked into pipelines.
  • TFSEC runs as a required PR check (§ 2).

6. Credential-less Azure authentication — Workload Identity Federation

  • Pipelines authenticate to Azure using azure/login@v3 with client-id + tenant-id + subscription-id — no client secrets, no service-principal passwords, no PATs stored as long-lived GitHub secrets for Azure auth.
  • The client-id resolves to a per-environment federated credential on an Entra app (e.g., ION_BETA_AZURE_CLIENT_ID, ION_GAMMA_AZURE_CLIENT_ID, ION_PROD_AZURE_CLIENT_ID).
  • Federated credentials are scoped to the specific GitHub environment (§ 7) — a beta OIDC token cannot be used to deploy to prod.
  • This is the CI/CD-side realisation of the credential-less posture in ADR-0013.

7. GitHub environments as approval + secret + OIDC boundary

  • Every service × environment pair maps to a GitHub deployment environment named <service_short>-<env_long> (e.g., bcinc-beta, bcinc-gamma, bcinc-prod).
  • The environment holds env-scoped secrets/vars (Azure CLIENT_ID, TENANT_ID, SUBSCRIPTION_ID, Terraform state resource names) and approval rules for gates that require human approval.
  • Branch protection: beta, gamma, prd environments are restricted to workflows running on the main branch. PR deploys are permitted only into Alpha environments.
  • Environment configuration is declarative in service-map.json (per-service, per-env: reviewers list, approval policy). runway-github-environment-pr-validate.yml / runway-github-environment-update.yml reconcile the live GitHub environment state against service-map.json.

8. Custom Environment Protection Rules — Azure Automation Account

Beyond native GitHub approvals, ION uses custom environment protection rules as a programmable, extensible gate:

  • A GitHub environment configured with a custom protection rule fires a webhook into an Azure Automation Account.
  • The webhook triggers a main runbook, which dispatches to an environment-specific runbook to evaluate policy (e.g., change freeze window, deployment quota, upstream health).
  • The runbook returns Approved / Rejected; only Approved responses release the pipeline job.
  • This is § 21-native (Azure Automation) and extensible: new gating rules land as runbook code, not as ad-hoc pipeline logic.

9. Runners — GitHub-managed, NIC-injected into ION VNets

  • ION uses GitHub-hosted runners (managed by GitHub) whose network interface is injected into an ION-owned subnet (snet-ghrun-<env>-chn-01) per environment.
  • Runner labels: <env>-linux, <env>-windows, plus static-IP variants (<env>-linux-static) for jobs needing a stable egress IP (e.g., IP-allowlisted third-party APIs).
  • Rationale: many deployment targets (Key Vault, Service Bus, Event Hubs, Storage, and other resources with Deny-default firewalls) accept data-plane traffic only from named sources. Resources allow the runner subnet through VNet rules over service endpoints — network-injected runners give that reachability without ION taking on runner compute management.
  • Runner subnets (amended 2026-10-15). The spoke snet-ghrun is the active runner subnet in every environment. A dedicated Luna VNet runner subnet exists in Alpha and Production and is in rollout; resources do not yet allow it. The hub ACI runner subnet is legacy and will be removed. Earlier wording that runners reach “Function Apps behind private endpoints, Cosmos with public access disabled, and APIM with private-endpoint ingress” overstated the deployed posture: ION is in ADR-0025 Phase 1, and private endpoints are the Phase 2 target.
  • No § 21 exception is needed for runners — they are GitHub-managed compute; ION only owns the NIC + subnet. This is the correct read of the CPE runners posture; earlier framings of “self-hosted runners” were inaccurate.

10. Artifact management — JFrog Artifactory (opensystems.jfrog.io)

  • Artifactory is the universal artifact platform for ION — NuGet, npm, PyPI, Docker, ZIP, Terraform modules — plus JFrog X-Ray for vulnerability scanning.
  • Semantic-versioning by PR label: every PR MUST carry exactly one of Major / minor / patch / re-release (or deletetfmodule for TF modules); reusable CPE workflows compute and publish the next version on merge.
  • Promotion pipeline: artifact versions are published in the Alpha registry, promoted to Beta on merge, then to Gamma, then to Prod as environment tests pass. Same bits, promoted — never rebuilt.
  • Docker images are copied from Artifactory into per-env Azure Container Registry at deploy time (lib-docker-acr-copy.yml) to keep runtime pulls Azure-local.
  • Runway workflows manage Artifactory repo + RBAC provisioning (runway-artifactory-repos-cicd-ion.yml, runway-rbac-artifactory-cicd-ion.yml) plus periodic cleanup (runway-ion-jfrog-artifactory-cleanup.yml).
  • Auth to Artifactory: Entra SSO for user access; scoped Artifactory tokens for Actions.

11. Service onboarding — governed one-shot

Per CPE guidance the 5-step onboarding path is:

  1. Register the service in the Service Inventory (canonical source for service-map.json).
  2. Run runway-github-service-onboarding.yml (workflow_dispatch) to provision GitHub team/RBAC, Artifactory repos + RBAC, service Entra app scaffolding, and GitHub environments.
  3. Request CPE whitelist the service’s federated-credential subject pattern for Azure.
  4. Note the emitted CLIENT_ID env variables and wire them into the service’s workflows.
  5. Tune the service’s PR / push / tag workflows against the CPE reusable-workflow contract (§ 2, § 4).

Onboarding is a governed operation, not an ad-hoc PR.

12. End-to-end auditability & compliance

Every production change is traceable through a single evidence chain:

PR opened → required checks (§ 2) green → CODEOWNERS approvals (§ 3) → merged to main → push-to-main pipeline (§ 4) → env-scoped OIDC token issued (§ 6, § 7) → GitHub environment approval (§ 7) → custom protection rule verdict (§ 8) → deployment record.

This chain is the SOC1 evidence surface. Governance workflows (runway-soc1-audit.yml, runway-github-audit-workflow-versions.yml, runway-vulnerability-management.yml, runway-security-dhi-exception.yml, runway-github-backup.yml) turn recurring compliance chores into scheduled pipeline runs against this chain.

13. Blast-radius & concurrency controls

  • PR builds validate against short-lived ACIs (lib-aci-ghpr-create.yml / lib-aci-ghpr-delete.yml) so PR runs don’t touch shared env state.
  • runway-github-cancel-old-workflow.yml cancels superseded runs.
  • Env-scoped federated credentials (§ 6) ensure a beta pipeline cannot deploy to prod even if compromised.

Alternatives Considered

CI/CD Substrate

Option A — GitHub Actions with CPE-owned reusable workflows (selected)

Option B — Azure DevOps Pipelines

Rejected — decisive: ION source is on GitHub Enterprise; a split CI/CD substrate would fragment the developer experience and duplicate the governance surface (CODEOWNERS, required checks, environments, OIDC). Reinforcing: weaker OIDC-federation story at the time V3 posture was set; duplicated compliance evidence surface.

Option C — Jenkins (self-hosted)

Rejected — decisive: violates § 21 Azure-native managed services first without justification (Jenkins is a self-hosted operational burden with no offsetting capability GitHub Actions doesn’t provide). Reinforcing: no first-class OIDC-to-Azure story matching § 12; plugin ecosystem is a supply-chain risk surface.

Option D — GitLab CI

Rejected — decisive: would require migrating source-control off GitHub Enterprise, a change orders of magnitude larger than the CI question warrants. Reinforcing: no strategic advantage over GitHub Actions for ION’s mono-repo + service-fan-out shape.

IaC

Option IAC1 — Terraform primary + ARM/Bicep fallback (selected)

Option IAC2 — Bicep / ARM as primary

Rejected — decisive: Terraform covers Azure plus Auth0 and JFrog Artifactory in one tool, which Bicep/ARM do not. Reinforcing: larger community module ecosystem; portable HCL supports § 20 vendor-lock-in mitigation. ARM/Bicep are retained as fallback where Terraform provider coverage lags.

Option IAC3 — Pulumi

Rejected — decisive: no operational advantage over Terraform at ION’s scale; would fragment IaC skill and tooling. Reinforcing: GA-language IaC increases variance in review; Terraform’s declarative HCL is easier to lint and secure (TFSEC).

Option IAC4 — Azure Deployment Environments / Dev Center

Rejected — decisive: does not model multi-provider (Auth0, JFrog) resources. Reinforcing: less mature than Terraform for ION’s existing module surface.

Authentication

Option AUTH1 — OIDC / Workload Identity Federation (selected)

Option AUTH2 — Long-lived service-principal client secrets in GitHub Secrets

Rejected — decisive: violates ADR-0013 credential-less posture and § 22 Least privilege. Reinforcing: rotation burden, secret-sprawl audit surface, compromise blast radius.

Option AUTH3 — Personal Access Tokens (PATs)

Rejected — decisive: user-bound, non-auditable at the pipeline layer; violates § 22. Reinforcing: PAT theft/leak is a common attack vector; PATs bypass env-scoped approvals.

Runners

Option R1 — GitHub-hosted runners with NIC in ION VNet (selected)

Option R2 — GitHub-hosted runners only (no VNet integration)

Rejected — decisive: cannot reach ION resources sitting behind private endpoints (Cosmos public disabled, APIM private ingress, Function Apps with private-endpoint-only access) per ADR-0016.

Option R3 — Self-hosted runners on Azure VMSS

Rejected — decisive: violates § 21 Azure-native managed services first without justification, given that GitHub-managed runners with VNet NIC injection give ION the reachability it needs without owning runner compute. Reinforcing: patching, scaling, image maintenance, and health monitoring become an ION operational tax with no capability gain.

Artifact management

Option ART1 — JFrog Artifactory (existing Ontinue platform) (selected)

Option ART2 — GitHub Packages

Rejected — decisive: does not cover ION’s multi-format artifact palette (Terraform modules, ZIP, mixed Docker/npm/NuGet/PyPI) with consistent RBAC and X-Ray-equivalent scanning. Reinforcing: Ontinue already operates Artifactory as the enterprise artifact platform; duplicating would fragment RBAC.

Option ART3 — Azure Container Registry only

Rejected — decisive: ACR is a container registry, not a universal artifact platform. ION retains ACR as the runtime image registry but uses Artifactory as the source-of-truth artifact store, with a documented copy/promote flow.

Promotion strategy

Option P1 — Trunk-based on main, tag-driven prod promotion (selected)

Option P2 — GitFlow with release branches

Rejected — decisive: multiplies merge overhead across 60+ services with no offsetting governance gain. Reinforcing: release-branch divergence complicates the audit chain (§ 12).

Option P3 — Continuous deployment straight to prod on green main

Rejected — decisive: eliminates the deliberate signed-tag prod gate that ION’s compliance posture requires. Reinforcing: per-service risk profile varies; forcing continuous prod deploy removes team judgment.

Rationale

GitHub Actions wins as the substrate because ION’s source of truth is already on GitHub Enterprise, and Actions’ workflow_call + composite-action model naturally supports the CPE-owned reusable workflow contract: platform-wide required PR checks in one place, consumed uniformly by every service. Fragmenting to a second CI system would duplicate every governance surface (CODEOWNERS, required checks, environments, OIDC).

The enforced pattern is push-to-main + PR-validation, with CPE owning the mandatory reusable workflows for required checks. Teams may build their own internal reusable workflow sets on top (Kronos being one team’s example), but the platform-wide contract is the CPE workflows — team-owned alternatives are unsupported by CPE, which scales governance without freezing team velocity.

Terraform wins as IaC because it covers Azure plus Auth0 and JFrog Artifactory in one model; shared tf-modules/ (59 Azure modules + Auth0 + Artifactory) are platform-authored and service-consumed, which is what makes IaC scale across 60+ services. ARM/Bicep are retained as sanctioned fallback for Terraform coverage gaps, keeping the IaC-first posture (§ 25) intact without forcing an awkward workaround.

OIDC federation with per-env CLIENT_ID values is the direct GitHub-side realisation of the credential-less posture from ADR-0013. It eliminates standing credentials from the pipeline surface and inherits the approval + audit chain that GitHub environments + Azure Automation Account custom protection rules provide.

GitHub-hosted runners with NIC injection into ION VNets give ION private-endpoint reachability without owning runner compute — this is why no § 21 exception is needed here (earlier framings of self-hosted runners misread the CPE runners posture). Static-IP runner variants cover the narrow case of IP-allowlisted third-party integrations.

JFrog Artifactory is the existing Ontinue artifact platform, universal-format (NuGet, npm, PyPI, Docker, ZIP, Terraform) with X-Ray scanning built in. ACR remains the runtime image registry for Azure services; the copy/promote flow keeps runtime pulls Azure-local without duplicating source-of-truth.

Trunk-based development with tag-driven prod promotion matches ION’s per-service independent-deployment model; GitFlow’s release branches would multiply merge overhead across 60+ services with no offsetting governance gain.

Above all, the ADR is the mechanism for § 25: without this pipeline substrate — IaC-first, uniform PR gate, env-scoped OIDC, custom protection rules, end-to-end audit chain — there is no way to keep ION’s promise that no one clicks around in the Azure portal against bta/gma/prd.

Consequences

Positive

  • One CI substrate across every ION unit (backend service, BFF, MFE, IaC, DB) — uniform onboarding, uniform PR flow, uniform promotion ceremony.
  • Uniform quality/security gate: every service passes the same required checks matrix (Secret Validation, PR Label, PR Title, CodeQL, TFSEC, OSS License, Linter) — no per-team drift.
  • Uniform ownership gate: CODEOWNERS enforce per-file team approvals; cross-team changes require cross-team consent.
  • Credential-less Azure authentication realises § 13 posture end-to-end at the pipeline layer.
  • No runner ops overhead — GitHub-managed compute with VNet NIC injection gives reachability without operational burden.
  • Runway governance workflows (SOC1 audit, vulnerability management, workflow-version audit, DHI exception, backup) turn compliance chores into scheduled pipeline runs.
  • Custom Environment Protection Rules (Azure Automation Account runbooks) give ION programmable gates without leaving § 21.
  • Service onboarding is a governed one-shot operation.
  • Trilateral-API contracts published as versioned Artifactory artifacts formalise § 10 contract discipline.
  • End-to-end audit chain (PR → checks → CODEOWNERS → env approval → OIDC token → deployment record) doubles as SOC1 evidence, generated as a byproduct of doing the work.

Negative

  • 60+ services × 4 environments × N artifact types produces a large workflow surface (ls .github/workflows | wc -l = 602) — workflow-version drift is a real risk, mitigated by runway-github-audit-workflow-versions.yml.
  • CPE reusable-workflow changes ripple to every consumer — a bug in a mandatory PR-check workflow can block every merge. Requires disciplined versioning and staged rollout.
  • JFrog Artifactory is a stateful third-party dependency — its own DR, RBAC, cost, and lifecycle.
  • Terraform state files (one per service per env in Azure Storage) are load-bearing — state loss / corruption is high-severity.
  • service-map.json becomes load-bearing config — schema changes require coordinated migration.
  • ARM/Bicep fallback, while sanctioned, is a heterogeneity tax — the shared-module leverage in tf-modules/ doesn’t apply.

Neutral / follow-ups

  • Publish standards/cicd-standards.md covering workflow naming, CPE reusable-workflow input contracts, GitHub environment naming, approval-gate policy per env, CODEOWNERS conventions.
  • Publish patterns/gh-actions-reusable-workflows.md codifying the CPE-mandatory vs team-owned reusable-workflow distinction.
  • Custom-protection-rule runbook capacity + SLIs into the observability stack (ADR-0021).
  • Contract-test the Trilateral-API artifacts against consuming services.
  • Define a policy for ARM/Bicep fallback — when it’s acceptable, how it’s reviewed, how it’s tracked toward eventual Terraform coverage.

WAF Pillar Impact

  • Primary pillar: operational-excellence — one substrate, uniform PR gate, uniform promotion ceremony, IaC-first mandate (§ 25), end-to-end audit chain.
  • Secondary pillars: security (credential-less OIDC, env-scoped approvals, TFSEC + CodeQL + secret scanning as required gates, Automation-Account custom protection); reliability (repeatable IaC-driven promotion, recorded deployments, deliberate signed-tag prod gate). Cost-optimization: ARM/Bicep fallback where Terraform coverage is missing avoids costly workarounds; Artifactory is a fixed cost line ION accepts as the price of the enterprise-artifact posture.
  • Trade-offs: the CPE-owned reusable-workflow surface is central and needs active governance; workflow surface is large and needs version-audit discipline; ARM/Bicep fallback fragments the IaC module story where used. ION accepts these because the alternatives (split CI, per-team PR gates, secret-based Azure auth, self-hosted runners) each break a load-bearing constraint.

Previous approach (V2)

V2 CI/CD was fragmented: some services on Azure DevOps Pipelines, some on ad-hoc GitHub workflows, PowerBI deployment done partially by hand (per V2 § PowerBI Dashboard implementation — “we manually create and update each customer workspace”). There was no unified service-onboarding surface, no uniform PR-check contract, and much Azure authentication used long-lived service-principal secrets. V3 consolidated on GitHub Actions + CPE-owned reusable workflows, moved to OIDC / WIF federation, adopted GitHub-hosted runners with VNet NIC injection, and codified the IaC-first mandate (§ 25) that eliminates manual portal changes above Alpha.

References

  • CPE guidance (references/):
    • CPE - GitHub - CI-CD - Overview.md — Runway stack; GitHub Flow; envs; IaC = Terraform primary, ARM/Bicep fallback; SSO + WIF.
    • CPE - GitHub - Development Lifecycle.md — required PR checks matrix + CODEOWNERS gate; CPE reusable-workflow contract.
    • CPE - GitHub - GitHub Environments.md — service-map.json, per-env reviewers, branch protection.
    • CPE - GitHub - Environment Custom Protection Rule.md — Automation Account runbook pattern.
    • CPE - GitHub - On-boarding services to ION.md — 5-step onboarding path.
    • CPE - GitHub - Runners in Azure Private Network.md — GitHub-managed runners with NIC in ION VNets.
    • CPE - GitHub - CI-CD - Semantic Versioning.md — PR-label-driven versioning + Alpha → Beta → Gamma → Prod promotion.
    • CPE - GitHub - Repository Structure Overview.md — mono-repo layout + CODEOWNERS scoping.
  • Verified against code: /Users/shy/code/Anvil/.github/workflows/ (~602 workflows: CPE runway-* governance, lib-* primitives, team-owned reusable workflows including Kronos-prefixed set, per-service <svc>.yml / <svc>-pr.yml / <svc>-tag.yml / <svc>-release.yml).
  • Verified against code: /Users/shy/code/Anvil/tf-modules/ (59 Azure modules; Auth0, JFrog Artifactory modules).
  • External: GitHub Actions OIDC to Azure — https://learn.microsoft.com/en-us/azure/developer/github/connect-from-azure
  • External: Terraform Azure backend — https://learn.microsoft.com/en-us/azure/developer/terraform/store-state-in-azure-storage
  • External: GitHub CODEOWNERS — https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

Related ADRs

  • Depends on: ADR-0009 (Entra apps for per-env federated credentials); ADR-0013 (credential-less posture — WIF is the CI/CD-side realisation); ADR-0016 (VNet NIC-injected runners for private-endpoint reachability); ADR-0015 (lib-afd-cache-purge.yml invalidation).
  • Realises: new § 25 Fully automated deployment (IaC-first, no manual changes).
  • Depended on by: ADR-0021 (alerts Terraform provisions the observability wiring); ADR-0022 (Azure SQL + DACPAC deploy via CPE Kronos-style workflows); ADR-0023 (per-MFE pipelines land through the same CPE contract; MFE Static Web App Terraform module).
  • Related: ADR-0002 (per-service independent deployment is what the pipeline serves).

On this page

  • Context
  • Forces / Drivers
  • Decision
  • 1. Mono-repo + trunk-based development (GitHub Flow)
  • 2. Mandatory PR-validation gate (enforced platform-wide)
  • 3. CODEOWNERS-driven multi-team approval
  • 4. Push-to-main + PR-validation as the enforced pattern
  • 5. Infrastructure as Code — Terraform primary, ARM/Bicep fallback
  • 6. Credential-less Azure authentication — Workload Identity Federation
  • 7. GitHub environments as approval + secret + OIDC boundary
  • 8. Custom Environment Protection Rules — Azure Automation Account
  • 9. Runners — GitHub-managed, NIC-injected into ION VNets
  • 10. Artifact management — JFrog Artifactory (opensystems.jfrog.io)
  • 11. Service onboarding — governed one-shot
  • 12. End-to-end auditability & compliance
  • 13. Blast-radius & concurrency controls
  • Alternatives Considered
  • CI/CD Substrate
  • IaC
  • Authentication
  • Runners
  • Artifact management
  • Promotion strategy
  • Rationale
  • Consequences
  • WAF Pillar Impact
  • Previous approach (V2)
  • References
  • Related ADRs
PreviousMicro-Frontend (MFE) UI architecture — domain MFEs composed via Module Federation, capability-based auth, BFF-per-MFE
NextRemote access and public-endpoint exposure control via Zscaler Private Access (ZPA)
Edit on GitHubSecurity