Skip to content

Commit 38f3f67

Browse files
committed
# Commit Message
``` Add security controls and AWS domain validation to UI service - Add express-rate-limit for API request rate limiting - Configure ALLOWED_AWS_DOMAINS environment variable for URL validation (supports ELB, VPC Lattice, and AWS service domains) - Add js-yaml dependency for configuration parsing - Document CORS origin controls for production deployments - Remove webpack-dev-server from dependencies - Update UI stack and development configuration
1 parent 06358ce commit 38f3f67

File tree

5 files changed

+437
-71
lines changed

5 files changed

+437
-71
lines changed

application_src/docker-compose.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ services:
216216
- SUPERVISOR_AGENT_ENDPOINT=http://supervisor-agent:9003
217217
- SECRETS_MANAGER_ARN=${SECRETS_MANAGER_ARN}
218218
- NODE_ENV=${NODE_ENV}
219+
# AWS Infrastructure Domain Whitelist (comma-separated, for URL validation)
220+
# Default: .elb.amazonaws.com,.on.aws,.amazonaws.com
221+
# VPC Lattice uses: *.vpc-lattice-svcs.{region}.on.aws
222+
- ALLOWED_AWS_DOMAINS=${ALLOWED_AWS_DOMAINS:-.elb.amazonaws.com,.on.aws,.amazonaws.com}
223+
# CORS Origin Whitelist (PRODUCTION ONLY - ignored in development)
224+
# Development automatically uses: http://localhost:3000,http://localhost:3001
225+
# Production (NODE_ENV=production) requires explicit CloudFront domain
226+
# CDK deployment automatically configures this in production
227+
# - ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-}
219228
- HOST=0.0.0.0
220229
- PORT=3001
221230
- WDS_SOCKET_HOST=0.0.0.0

0 commit comments

Comments
 (0)