ALLOWED_ORIGINS: support multiple origins via env for actors stack #4
Labels
No labels
blocked:needs-attention
blocked:needs-decision
bug
feature-request
in-progress
needs-decompose
quickfix
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/easystitch-service#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The service currently sets
ALLOWED_ORIGINSas a single env var. The deployment doc hasALLOWED_ORIGINS=https://threadcraft.markkeers.comfor the wild deploy.The actors-test stack (#20 in Mark/Kimi_Agent_Brother_10_Digitizing_App) will hit the same service image from a different origin (whatever node_hub exposes the frontend under in the actors compose). To avoid forking the service image per environment, allow the allowlist to accept multiple comma-separated origins from a single env var.
Goal
ALLOWED_ORIGINSaccepts comma-separated origins. Wild deploy uses one origin; actors stack uses another; the image is the same.Acceptance
ALLOWED_ORIGINS=a.com,b.com,c.compermits all three; missing entries produce 403 with CORS error, not a startup crash.ALLOWED_ORIGINSkeeps current behaviour (single origin or localhost dev origins, per existing config).Related
docs/deployment.md— env var source of truth.Out of scope
Auto-triage: needs decompose
Marked
triage-approved+needs-decompose. decompose-executor will pick this up and break it into implementable sub-issues.