Skip to content
InfraChallenge Docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

With more time

What comes next, in priority order.

Fix Blocker 1

Add a database module outside app/internal/, plus migrations, so that more than one task is correct. See Blocker 1.

Account-level security services

Add CloudTrail (an organisation trail), GuardDuty, AWS Config and Security Hub, in a separate security account.

Access logs

Add access logs for the ALB, CloudFront and WAF. ALB logs need an SSE-S3 bucket, because ALB log delivery cannot write to a bucket encrypted with a customer-managed key.

Measure capacity

The server counts in-flight suggestions (suggestions.in_flight). Send it to CloudWatch, run the load test, and scale on it. Then replace the starting values for task counts and scaling targets with measured ones.

Tighten ALB ingress

Restrict ALB ingress to the CloudFront-VPCOrigins-Service-SG group.

Narrow the Terraform roles

Narrow the plan role below ReadOnlyAccess, and add a permissions boundary to the apply role.

IAM database authentication

Have the application connect with IAM database authentication from the task role. This closes the password-rotation gap.

Backups and headers

Add AWS Backup with cross-account copies, and a Content-Security-Policy header.

A US stack

Add a us-east-1 stack for US customers: a copy of an envs/ directory with a new region and domain, and its own data. In us-east-1, CloudFront VPC origins exclude AZ use1-az3.

More infrastructure checks

tflint already runs in CI. Add a Trivy configuration scan of infrastructure/ (the image scan exists), and commit the mocked plan tests.

Was this page helpful?