Skip to content

fix(deploy): allow any HTTPS host on sql.demo.altinity.cloud's connec… - #576

Merged
BorisTyshkevich merged 1 commit into
mainfrom
fix/demo-connect-src-any-host
Jul 30, 2026
Merged

fix(deploy): allow any HTTPS host on sql.demo.altinity.cloud's connec…#576
BorisTyshkevich merged 1 commit into
mainfrom
fix/demo-connect-src-any-host

Conversation

@BorisTyshkevich

Copy link
Copy Markdown
Collaborator

…t-src

The demo release's connect-src was bounded to a fixed 4-origin allowlist (the chart default), so "Advanced — connect to another server" against any other ClickHouse host was silently blocked by CSP and surfaced as a bare "Failed to fetch" with no indication the request never left the browser. This shared instance is used ad hoc against arbitrary clusters, so its values-demo.yaml override now sets connectSrc to the "https:" scheme-source instead of inheriting the fixed list. The chart's own secure-by-default is unchanged for every other install.

Closes-context: #575 (follow-up UX gap, filed separately)

Claude-Session: https://claude.ai/code/session_01KWApnNReVKwis3HdFfeUga

What & why

Checklist

  • npm test passes (the per-file coverage gate is non-negotiable)
  • Tests added/updated in the same change as the code
  • npm run build succeeds (single-file dist/sql.html)
  • Layers kept honest: pure logic in src/core/, network in src/net/ (injected fetch), DOM in src/ui/
  • No new runtime dependency (or it's a deliberate, justified addition — see CONTRIBUTING)
  • README / CHANGELOG.md ([Unreleased]) updated if behavior or the deployed surface changed
  • Reconciled affected tracked work (roadmap Roadmap to 1.0.0 #68, the issue body, ADR/CHANGELOG) if this change reshaped it

…t-src

The demo release's connect-src was bounded to a fixed 4-origin allowlist
(the chart default), so "Advanced — connect to another server" against any
other ClickHouse host was silently blocked by CSP and surfaced as a bare
"Failed to fetch" with no indication the request never left the browser.
This shared instance is used ad hoc against arbitrary clusters, so its
values-demo.yaml override now sets connectSrc to the "https:" scheme-source
instead of inheriting the fixed list. The chart's own secure-by-default is
unchanged for every other install.

Closes-context: #575 (follow-up UX gap, filed separately)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KWApnNReVKwis3HdFfeUga
@BorisTyshkevich
BorisTyshkevich merged commit 464597b into main Jul 30, 2026
1 check passed
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