---
title: With more time
description: What comes next, in priority order.
sidebar:
  icon: list-ordered
---

1. **Fix Blocker 1**

    Add a database module outside `app/internal/`, plus migrations, so that more than one task is correct. See [Blocker 1](/assumptions#blocker-1-the-in-memory-database).

2. **Account-level security services**

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

3. **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.

4. **Measure capacity**

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

5. **Tighten ALB ingress**

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

6. **Narrow the Terraform roles**

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

7. **IAM database authentication**

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

8. **Backups and headers**

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

9. **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.

10. **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.
