Skip to content

Fix security vulnerabilities across Terraform modules and Docker Compose configs - #3

Merged
enturesting merged 2 commits into
feature/mvpfrom
copilot/fix-security-vulnerabilities
Mar 22, 2026
Merged

Fix security vulnerabilities across Terraform modules and Docker Compose configs#3
enturesting merged 2 commits into
feature/mvpfrom
copilot/fix-security-vulnerabilities

Conversation

Copilot AI commented Mar 22, 2026

Copy link
Copy Markdown
Contributor

Several high-severity security misconfigurations across VPC, API Gateway, IAM, DynamoDB modules, and Docker Compose files. Changes address hardcoded credentials, overly permissive network rules, missing authorization, wildcard IAM resources, and lack of backup configuration.

VPC (modules/vpc/v0.1.0, v0.2.0)

  • Restrict security group ingress from 0.0.0.0/0var.cidr_block (VPC-internal only)
  • Set map_public_ip_on_launch = false on public subnets

API Gateway (modules/api_gateway/v0.1.0, v0.2.0)

  • Replace hardcoded authorization = "NONE" with a configurable var.authorization variable defaulting to "AWS_IAM"

IAM (environments/main.tf)

  • Scope Lambda DynamoDB policy resource from "*"module.dynamodb_table.table_arn
  • Scope CloudWatch Logs resource from "arn:aws:logs:*:*:*" → specific Lambda log group ARN using var.account_id and var.lambda_function_name

DynamoDB (modules/dynamodb/v0.1.0, v0.2.0)

  • Enable point-in-time recovery (point_in_time_recovery { enabled = true })

Docker Compose (docker-compose.enhanced.yml, docker-compose.test.yml)

  • Replace hardcoded per-environment credentials (develop-key, nonprod-key, etc.) with env var references: ${DEVELOP_AWS_ACCESS_KEY_ID:-test}
  • Change DEBUG=1${LOCALSTACK_DEBUG:-0} across all services

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI changed the title [WIP] Fix all security vulnerabilities in the repository Fix security vulnerabilities across Terraform modules and Docker Compose configs Mar 22, 2026
Copilot AI requested a review from enturesting March 22, 2026 03:03
@enturesting
enturesting marked this pull request as ready for review March 22, 2026 03:15
@enturesting
enturesting merged commit ec04ac3 into feature/mvp Mar 22, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants