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

Starred pages

Pages

Page directory · Labels · [ hides this

H-12. Sandbox proofs (Stage 5)

10 manual steps. The rebuild guide explains the columns, the identities and the change-set commands.

# Action Where Identity How Why not code Check
H-12.1 SCP-10 negative tests: peering, Transit Gateway attachment, resource-share accept, cross-account assume-role, public IP, an instance type SCP-07 allows and SCP-10 doesn't (dry runs where the API has them) Sandbox SandboxAdmin sandbox-scp10.sh (a HKB_SANDBOX_PROFILE profile, H-1.7); then, about 15 minutes later, verify/hkb-verify.sh run S5-02 the test is a person making the attempts; the pipeline can't act as SandboxAdmin S5-02
H-12.2 SCP-10's Scp10DenyElasticIps exempts hkb-pipeline-cfn-network, for the NAT instance's stable address (DQ-109, DQ-118); before the first network deploy master MasterAdmin ms hkb-org-scp, review the change set (only SCP-10 changes), then exec DQ-24 INV-03
H-12.3 The platform orchestrator may assume hkb-pipeline-network in Sandbox, Dev and Prod, and hkb-pipeline-cfn-self may pass the network role pair, which CodePipeline checks when SelfUpdate saves the network stage (DQ-110); before the first network deploy Shared Services CT-Exec as H-8.4 the pipeline's own prerequisites S2-01
H-12.4 HKB-ReadOnly reads Image Builder, Scheduler and the Patch Manager association and compliance, for S5-04 and S5-05 master MasterAdmin ms hkb-bootstrap-identity, review (only the HKB-ReadOnly inline policy changes), then exec DQ-24 S5-05 runs without AccessDenied
H-12.5 Delete a pipeline stack left in ROLLBACK_COMPLETE by a failed first create, so the next run can create it again (5.5: hkb-image in Sandbox) Sandbox, Dev or Prod CT-Exec workload-stack.sh sandbox delete-failed hkb-image; it refuses any other state the deploy roles make change sets only, and CloudFormation makes none on a stack in that state the next run creates the stack
H-12.6 Turn the site back on after the DQ-123 cutoff disabled it (the security alert names hkb-site-cutoff and UpdateDistribution). First read the month's CloudFront usage in Cost Explorer for the cause. CloudFormation still records the distribution as enabled, so a plain run changes nothing Prod CT-Exec site-cutoff.sh restore sets Enabled back to true, which matches what hkb-site records (or a SiteOnline PR to false, then one to true, DQ-68); Kyle's go typed in the platform session the cutoff changed the distribution outside CloudFormation, and the budget alerts once per month, so after this the cutoff can't fire again until the next month S4-01 to S4-03
H-12.7 Test the DQ-123 cutoff end to end: publish to hkb-site-cutoff, the path the budget alert takes, and watch the function disable the Prod distribution. The site goes offline until H-12.6 Prod CT-Exec site-cutoff.sh test, then site-cutoff.sh restore; Kyle picks the time only the budget may publish to the topic in code, and the test needs a real disable to prove the role and the alert PASS line; the security alert email arrives; S4-01 to S4-03 after restore
H-12.8 Remove an Image Builder AMI its lifecycle policy doesn't (5.7: an AMI in Sandbox, left by the first failed build) Sandbox, Dev or Prod CT-Exec workload-stack.sh sandbox deregister-ami <ami-id>; it refuses the current NAT AMI, one in use, or one Image Builder didn't make, and deletes the image's snapshots the lifecycle policy only removes images from pipeline runs it tracks the AMI and its snapshot are gone
H-12.9 Run the NAT patch scan once, off schedule (Dev 2026-10-27: the 18:00 UTC run came back Undeliverable, so S5-05 had nothing to read) Sandbox, Dev or Prod CT-Exec workload-stack.sh dev scan-now; it starts hkb-nat-patch-scan (Scan only, installs nothing) and prints the result the association runs daily; a missed run otherwise waits a day hkb-verify.sh run S5-05 passes
H-12.10 The IMDSv2 statements in SCP-03 (step 7.9, DQ-144): test, apply, test again Sandbox, then master SandboxAdmin, MasterAdmin sandbox-imds.sh (expect all ALLOWED), ms hkb-org-scp, review the change set, then sandbox-imds.sh again SCPs are hand-applied (DQ-24) The three -denied attempts DENIED and the three -allowed attempts ALLOWED; INV-03 and INV-11 PASS

Page information

Owner
Platform Engineering
Status
current Current: generated from the templates and records in the repository at this build.
Generated from
docs/runbooks/hand-steps.md
Linked from
Rebuild from zero
Plain markdown
/wiki/rebuild/h-12/index.md