latest run 54 pass 0 fail 0 skipevidence →
HKB Service Management: queues

Incident INC-001

Sandbox's NAT instance lost its connection when VPC Block Public Access went on

A declared incident, closed after its post-incident review. What’s this ID?

Post-incident review

What happened. Step 7.2 turned on VPC Block Public Access in Sandbox (#264). The design blocked both ways and excluded the two public subnets for outbound traffic only (allow-egress). The block went on at 19:14:16 UTC. The NAT instance in the excluded subnet hkb-public-a stopped reporting to Systems Manager 22 seconds later.

Impact. Sandbox only. The NAT instance lost its own connection. Sandbox's private subnets have outbound access only while a scan job runs (the NAT instance is stopped between scans, DQ-129 C), so any scan due during the window would have failed. Dev and Prod were never switched on. The public site runs on CloudFront and S3 and was not affected. No data was exposed.

Detection. The change's own proof step: after the deploy, check that the NAT instance stays Online in Systems Manager. It went to ConnectionLost.

Response. The block was rolled back by pull request (#268, merged 19:38 UTC). The pipeline deleted the block, and the NAT instance came back Online. The time it came back wasn't recorded.

Root cause. The egress-only exclusion works for NAT gateways. AWS's documentation names NAT gateways for the egress modes and says nothing about a NAT instance, which is an ordinary EC2 instance forwarding traffic. With the block on, the instance's return traffic was dropped. The design assumed a NAT instance would behave like a gateway, and the assumption wasn't tested before the block went on.

What changed. DQ-158 A excludes the two public subnets in both directions (allow-bidirectional). Security groups with no inbound rules guard them, and every other subnet stays blocked both ways. It went on in Sandbox first (#269) and was proved there with workload-stack.sh sandbox scan-now, which returned Success and COMPLIANT, with S5-04 and S5-05 passing. Dev and Prod followed the same way (#276), and the Prod site still returned 200.

Lessons.

  • Sandbox first worked: the fault stayed in the one account built to absorb it.
  • The post-check caught it within a minute. Every network change keeps a post-check.
  • Prove a network change with a real job through the path: scan-now runs a patch scan through the NAT instance. Watching the instance's Systems Manager status alone isn't proof, because the instance is stopped between scans.
  • When AWS documents a feature for a managed resource, don't assume it covers a self-managed equivalent. Prove it in Sandbox.

Linked issues

  • DQ-129 The NAT instance locks up on its first patch scan Ruled
  • DQ-158 VPC Block Public Access with a NAT instance Ruled

Documentation