Skip to content

Allow a trusted browser origin for SQLNB - #17

Merged
nicosuave merged 1 commit into
mainfrom
sqlnb-trusted-origin
Nov 23, 2026
Merged

nicosuave merged 1 commit into
mainfrom
sqlnb-trusted-origin

Conversation

@nicosuave

Copy link
Copy Markdown
Member

Adds an optional browser_origin argument to sqlnb_start for serving SQLNB through a trusted HTTPS reverse proxy. SQLNB keeps its loopback listener and bearer authentication. The configured origin determines the accepted HTTP host, browser origin, and launch URL. Omitting the option keeps existing loopback behavior.

Validation

  • Passed 110 Rust tests, including configured host, origin, and bearer-token cases.
  • Built and signed the macOS ARM64 extension for DuckDB 2.0.0 and passed the native smoke suite.
  • Verified authenticated bootstrap and a Quack query over Tailscale HTTPS. Verified that a foreign origin and a missing bearer token return HTTP 401.

@nicosuave
nicosuave merged commit 9660866 into main Nov 23, 2026
4 of 5 checks 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