latest run 54 pass 0 fail 0 skipevidence →
HKB Operations: pages
HKB OperationsKnowledge space

Starred pages

Pages

Page directory · Labels · [ hides this

hkb-pipeline-main

The platform pipeline. It validates every template, updates its own definition, rolls the baselines out to every member account through StackSets, and deploys the Security and network stacks.

Stage flow

hkb-pipeline-main stage flowThe hkb-pipeline-main CodePipeline in the Shared Services account, read from its template. A merge on GitHub reaches CodeConnections, which starts the pipeline. The stages run in order: 1, Source; 2, Validate; 3, Self-update; 4, StackSets; 5, Security; 6, Network Sandbox; 7, Network Dev; 8, Network Prod. Deploy stages assume a role in every member account, Security, Sandbox, Dev, Prod.AWS CloudShared Services · hkb-shared-servicesus-east-1 · home RegionCodePipeline · hkb-pipeline-main1 · Sourcethrough CodeConnections2 · Validateunder the project's service role3 · Self-updateas hkb-pipeline-self; CloudFormation as hkb-pipeline-cfn-self4 · StackSetsas hkb-pipeline-stacksets; CloudFormation as hkb-pipeline-cfn-stacksetsAll member accountsby OU, through StackSets5 · Securityas hkb-pipeline-security; CloudFormation as hkb-pipeline-cfn-securitySecurity6 · Network Sandboxas hkb-pipeline-network; CloudFormation as hkb-pipeline-cfn-networkSandbox7 · Network Devas hkb-pipeline-network; CloudFormation as hkb-pipeline-cfn-networkDev8 · Network Prodas hkb-pipeline-network; CloudFormation as hkb-pipeline-cfn-networkProdGitHubmerged PRsCodeConnectionshkb-githubmain branchhkb-pipeline-validatehkb-pipelinenoopbaseline-accountbaseline-iambaseline-networkbaseline-catalogbaseline-eventsbaseline-site-cutoffbaseline-site-trafficbaseline-detection-testbaseline-scannerhkb-security-eventshkb-security-tools-findingsrole hkb-pipeline-securityhkb-vpchkb-imagehkb-networkrole hkb-pipeline-networkhkb-vpchkb-imagehkb-networkrole hkb-pipeline-networkhkb-vpchkb-imagehkb-networkrole hkb-pipeline-networkLegendRequest / dataDeploy (assumes a role)BlueOpens its pagemerge
hkb-pipeline-main stage flowOpen full sizeClose

The stages run top to bottom and stop at the first failure. Each deploy stage assumes a role in the account it reaches.

Configuration

SettingValue
TypeCodePipeline V2, queued executions
Service rolehkb-pipeline-orchestrator, in Shared Services
TriggerA push to the main branch through CodeConnections, for every change except site/**, workloads/**, docs/**, controls/**, tools/*, tools/*/*
Artifactshkb-pipeline-artifacts-<account>, encrypted with the pipeline's KMS key
Stages8

Stages and actions

Each action assumes the role named for it. A role in another account trusts only this pipeline's service role; trust and policy text as deployed are on the pipeline roles page.

#StageActions
1Source
  • Source: the repository through CodeConnections, as the pipeline's service role
2Validate
  • Validate: CodeBuild project hkb-pipeline-validate, under the project's own service role
3SelfUpdate
  • Pipeline: CloudFormation change set on hkb-pipeline, planned, then executed, as hkb-pipeline-self in Shared Services, CloudFormation as hkb-pipeline-cfn-self
4StackSets

All as hkb-pipeline-stacksets in Shared Services, CloudFormation as hkb-pipeline-cfn-stacksets.

  • NoopStackSet: CloudFormation change set on hkb-stacksets-noop, planned, then executed
  • BaselineAccountStackSet: CloudFormation change set on hkb-stacksets-baseline-account, planned, then executed
  • BaselineIamStackSet: CloudFormation change set on hkb-stacksets-baseline-iam, planned, then executed
  • BaselineNetworkStackSet: CloudFormation change set on hkb-stacksets-baseline-network, planned, then executed
  • BaselineCatalogStackSet: CloudFormation change set on hkb-stacksets-baseline-catalog, planned, then executed
  • BaselineEventsStackSet: CloudFormation change set on hkb-stacksets-baseline-events, planned, then executed
  • BaselineSiteCutoffStackSet: CloudFormation change set on hkb-stacksets-baseline-site-cutoff, planned, then executed
  • BaselineSiteTrafficStackSet: CloudFormation change set on hkb-stacksets-baseline-site-traffic, planned, then executed
  • BaselineDetectionTestStackSet: CloudFormation change set on hkb-stacksets-baseline-detection-test, planned, then executed
  • BaselineScannerStackSet: CloudFormation change set on hkb-stacksets-baseline-scanner, planned, then executed
5Security

All as hkb-pipeline-security in Security, CloudFormation as hkb-pipeline-cfn-security.

  • SecurityEvents: CloudFormation change set on hkb-security-events, planned, then executed
  • SecurityToolsFindings: CloudFormation change set on hkb-security-tools-findings, planned, then executed
6NetworkSandbox

All as hkb-pipeline-network in Sandbox, CloudFormation as hkb-pipeline-cfn-network.

  • Vpc: CloudFormation change set on hkb-vpc, planned, then executed
  • Image: CloudFormation change set on hkb-image, planned, then executed
  • Network: CloudFormation change set on hkb-network, planned, then executed
7NetworkDev

All as hkb-pipeline-network in Dev, CloudFormation as hkb-pipeline-cfn-network.

  • Vpc: CloudFormation change set on hkb-vpc, planned, then executed
  • Image: CloudFormation change set on hkb-image, planned, then executed
  • Network: CloudFormation change set on hkb-network, planned, then executed
8NetworkProd

All as hkb-pipeline-network in Prod, CloudFormation as hkb-pipeline-cfn-network.

  • Vpc: CloudFormation change set on hkb-vpc, planned, then executed
  • Image: CloudFormation change set on hkb-image, planned, then executed
  • Network: CloudFormation change set on hkb-network, planned, then executed

Sources

Page information

Owner
Platform Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
pipeline
Linked from
Shared Services, StackSets, VPC, VPC, VPC