Skip to content

feat: take the frontend origin and cluster zone from configuration - #31

Merged
vthwang merged 1 commit into
mainfrom
feat/configurable-origins
Aug 19, 2026
Merged

feat: take the frontend origin and cluster zone from configuration#31
vthwang merged 1 commit into
mainfrom
feat/configurable-origins

Conversation

@vthwang

@vthwang vthwang commented Aug 19, 2026

Copy link
Copy Markdown
Member

No description provided.

The CORS allow-list pinned one deployment's frontend origin in the binary, and
the chart defaulted WebAuthn and the tenant zone to our own domain — so another
install would silently inherit it and fail somewhere far from the cause.

- read CORS_ALLOWED_ORIGINS from the environment; the Vite dev ports stay
  hardcoded, they are a local convenience no deployment would configure
- derive the WebAuthn RP ID, its origins and CORS from one frontendHost value
- require frontendHost and cluster.domain rather than defaulting them
- pass FRONTEND_HOST and CLUSTER_DOMAIN through deploy

Signed-off-by: vthwang <vthwang.work@gmail.com>
@vthwang vthwang self-assigned this Aug 19, 2026
@vthwang vthwang added the enhancement New feature or request label Aug 19, 2026
@vthwang
vthwang merged commit 7856402 into main Aug 19, 2026
1 check passed
@vthwang
vthwang deleted the feat/configurable-origins branch August 19, 2026 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant