Skip to content

Configure CORS Allowed Origins via ConfigMaps#500

Open
TineoC wants to merge 3 commits intoCodeForPhilly:developfrom
TineoC:CORS-configuration
Open

Configure CORS Allowed Origins via ConfigMaps#500
TineoC wants to merge 3 commits intoCodeForPhilly:developfrom
TineoC:CORS-configuration

Conversation

@TineoC
Copy link
Copy Markdown
Collaborator

@TineoC TineoC commented Apr 18, 2026

Addresses #497

This PR makes CORS allowed origins configurable via environment variables and Kubernetes ConfigMaps.

Changes:

  • Modified server/balancer_backend/settings.py to read CORS_ALLOWED_ORIGINS from environment, defaulting to localhost:3000.
  • Updated base deployment manifest to include envFrom from a ConfigMap named balancer-config.
  • Added an empty configMapGenerator to the base kustomization.yaml.
  • Created sandbox and production overlays with their respective CORS_ALLOWED_ORIGINS configured in a configmap.yaml patch.

Deployment note: Ensure that the balancer-config ConfigMap is created or generated in the target namespace.

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.

1 participant