Repository scan
data-dashboard-infra
UKHSA-Internal/data-dashboard-infra · branch main · scanned 25 Jun 2026 · 143 resources
Medium 141
Medium Ensure Terraform module sources use a commit hash
Ensure Terraform module sources use a commit hash
Where
- ../../terraform/10-account/acm.account.tf:1
- ../../terraform/10-account/acm.cloud-front.tf:1
- ../../terraform/10-account/acm.cloud-front.tf:20
- ../../terraform/10-account/acm.cloud-front.wke-auth-test-account.tf:1
- ../../terraform/10-account/acm.cloud-front.wke-test-account.tf:1
- ../../terraform/10-account/acm.cloud-front.wke-test-account.tf:22
- ../../terraform/10-account/acm.cloud-front.wke-uat-account.tf:1
- ../../terraform/10-account/acm.wke-auth-test-account.tf:1
- ../../terraform/10-account/acm.wke-test-account.tf:1
- ../../terraform/10-account/acm.wke-test-account.tf:18
- ../../terraform/10-account/acm.wke-uat-account.tf:1
- ../../terraform/10-account/iam.developer-role.tf:1
- ../../terraform/10-account/iam.green-ops-s3-replication-role.tf:1
- ../../terraform/10-account/iam.green-ops-s3-replication-role.tf:23
- ../../terraform/10-account/iam.observability-role.tf:1
- ../../terraform/10-account/iam.observability-role.tf:19
- ../../terraform/10-account/iam.operations-role.tf:1
- ../../terraform/10-account/iam.operations-role.tf:26
- ../../terraform/10-account/iam.report-viewer-role.tf:1
- ../../terraform/10-account/iam.sentinel-role.tf:1
- and 84 more
Medium Ensure Secrets Manager secrets should have automatic rotation enabled
Ensure Secrets Manager secrets should have automatic rotation enabled
Where
- ../../terraform/10-account/secrets-manager.tf:1
- ../../terraform/10-account/secrets-manager.tf:6
- ../../terraform/20-app/secret-manager.tf:5
- ../../terraform/20-app/secret-manager.tf:20
- ../../terraform/20-app/secret-manager.tf:38
- ../../terraform/20-app/secret-manager.tf:56
- ../../terraform/20-app/secret-manager.tf:71
- ../../terraform/20-app/secret-manager.tf:86
- ../../terraform/20-app/secret-manager.tf:97
- ../../terraform/20-app/secret-manager.tf:112
- ../../terraform/20-app/secret-manager.tf:130
- ../../terraform/20-app/secret-manager.tf:147
- ../../terraform/20-app/secret-manager.tf:166
- ../../terraform/20-app/secret-manager.tf:179
- ../../terraform/20-app/secret-manager.tf:197
- ../../terraform/20-app/secret-manager.tf:210
- ../../terraform/20-app/secret-manager.tf:229
Medium Ensure that CloudWatch Log Group is encrypted by KMS
Ensure that CloudWatch Log Group is encrypted by KMS
Where
Medium Ensure CloudWatch log groups retains logs for at least 1 year
Ensure CloudWatch log groups retains logs for at least 1 year
Where
Medium Ensure public API gateway are protected by WAF
Ensure public API gateway are protected by WAF
Where
Medium Ensure API Gateway stage have logging level defined as appropriate
Ensure API Gateway stage have logging level defined as appropriate
Where
Medium Ensure AWS API Gateway endpoints uses client certificate authentication
Ensure AWS API Gateway endpoints uses client certificate authentication
Where
Medium Ensure AWS API gateway request is validated
Ensure AWS API gateway request is validated
Where
Medium Ensure API Gateway caching is enabled
Ensure API Gateway caching is enabled
Where
Medium Ensure Kinesis Stream is encrypted by KMS using a customer managed Key (CMK)
Ensure Kinesis Stream is encrypted by KMS using a customer managed Key (CMK)
Where
Medium Ensure Create before destroy for API Gateway
Ensure Create before destroy for API Gateway
Where
Medium Ensure Kinesis Firehose delivery stream is encrypted
Ensure Kinesis Firehose delivery stream is encrypted
Where
Medium Ensure that Kinesis Firehose Delivery Streams are encrypted with CMK
Ensure that Kinesis Firehose Delivery Streams are encrypted with CMK
Where
Medium Ensure CloudFront response header policy enforces Strict Transport Security
Ensure CloudFront response header policy enforces Strict Transport Security
Where
Medium Ensure all data stored in the SNS topic is encrypted
Ensure all data stored in the SNS topic is encrypted
Where
Medium Ensure AWS Cognito identity pool does not allow unauthenticated guest access
Ensure AWS Cognito identity pool does not allow unauthenticated guest access
Where
Medium Ensure Kinesis Stream is securely encrypted
Ensure Kinesis Stream is securely encrypted
Where
Medium Ensure API Gateway has X-Ray Tracing enabled
Ensure API Gateway has X-Ray Tracing enabled
Where
Medium Ensure API Gateway has Access Logging enabled
Ensure API Gateway has Access Logging enabled
Where
Medium API Gateway REST Instead of HTTP API
aws_api_gateway_rest_api (REST API) costs ~3.5x more per million requests than aws_apigatewayv2_api (HTTP API). Most modern use cases are supported by the HTTP API.
How to fix
Migrate to aws_apigatewayv2_api (HTTP API v2) unless REST-specific features (usage plans, request validation, custom authorizers v1) are required.
Where
- terraform/modules/api-gateway/main.tf:3 $2.50 / mo
Low 2
Low Missing AWS Budget
No AWS budget configured. Budgets help monitor and control spending with alerts.
How to fix
Create AWS budgets with alerts for forecasted and actual costs to avoid unexpected charges.
Where
Grades use InfraScan Cloud's current formula, so they can differ from the ones first shown for this scan. Findings reflect the repository on 25 Jun 2026; it may have changed since.
Scan your own repository
InfraScan Cloud scans your repositories and AWS accounts, keeps the history and shows how to fix each finding.