This repository was archived by the owner on Nov 12, 2026. It is now read-only.
Repository navigation
fix(dashboard): configure allowed origins at runtime - #30
Merged
Merged
Conversation
- Validate DASHBOARD_ORIGIN when the server starts - Remove dashboard origin from image build inputs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
Move dashboard host validation from the image build to the
DASHBOARD_ORIGINSruntime environment variable. It accepts comma-separated HTTP(S) origins, such ashttps://dashboard.example,https://admin.example, and trims surrounding whitespace. Empty or invalid entries fail startup. The same image can serve all configured origins; changes require a server restart. Exact same-origin checks still reject writes between different configured origins.Update Docker configuration, release tooling, documentation, and origin validation coverage.
Validation
Type checks, production build, 26 unit/transport tests, release fingerprint tests, Compose configuration checks, and
git diff --checkpassed. Focused production and development tests verify both configured origins and reject cross-origin writes and forged origins. Full browser suites passed for the preceding runtime configuration change. Docker image build was not run because disk space was nearly full.AI assistance
AI assistance contributed to the implementation and tests. The changes were reviewed, and the listed checks were run.