67 Commits

Author SHA1 Message Date
eric e11686f4a0 feat(http): implement origin and referer validation for HTTP requests
Build linux_amd64 extension and upload to Packages / build-linux-amd64 (push) Failing after 25m14s
Added helper functions to validate request origins and referers, allowing for configurable local URLs and support for environments where the UI is exposed externally. Introduced environment variable `ui_allow_any_origin` for bypassing origin checks. Updated request handling methods to utilize these validations, enhancing security for HTTP interactions.
2025-09-13 19:02:04 +00:00
eric bd809a759e Merge PR #25 patch: add ui_local_host setting, pass host to HttpServer, and integrate HTTPParams for client initialization; update URLs and server listen to use configured host
Main Extension Distribution Pipeline / Build main extension binaries (pull_request) Failing after 0s
Main Extension Distribution Pipeline / Build next patch extension binaries (pull_request) Failing after 0s
Main Extension Distribution Pipeline / Build stable extension binaries (pull_request) Failing after 1s
Main Extension Distribution Pipeline / Deploy stable extension binaries (pull_request) Has been skipped
2025-09-13 04:07:20 +00:00
Y. bba41c82c5 Add support for latest DuckDB (#22) 2025-09-10 12:16:45 +02:00
Y. 96dfa0d32b Terminate watcher if database changes (#20)
* Terminate watcher if database changes

* Format

* Update watcher.cpp

* Revert "Format"

This reverts commit 72d82f4bce.
2025-08-14 15:47:15 -07:00
Jeff Raymakers 291c1c4af5 fix errors_as_json option to only apply when set (#17) 2025-07-01 08:44:27 -07:00
Jeff Raymakers 2a8db10c6a support additional run options, including result table and chunk limit (#14)
* result table

* db, schema, & result tbl chunk limit

* support schema, change db to search path; also errors_as_json

* add comment about appender connection
2025-06-25 12:09:22 -07:00
Yves ccaf92e99d Update ui_extension.cpp 2025-06-11 10:07:01 +02:00
Yves 22721d7edd Add support for new extension loader 2025-06-11 09:10:41 +02:00
Jeff Raymakers 0d72926508 Merge pull request #156 from duckdb/jray/support-pivot
add support for pivot
2025-06-03 15:42:46 -07:00
Jeff Raymakers bffad99acc convert pending result to string 2025-06-03 09:07:53 -07:00
Jeff Raymakers c7d73dcb8d minor tweaks 2025-06-03 09:04:39 -07:00
Jeff Raymakers 6145a1b4a9 add support for pivot 2025-06-02 17:57:56 -07:00
Yves c9d93eee2e Add support for http_proxy from DuckDB 2025-05-26 11:24:03 +02:00
Jeff Raymakers 07ed1ea806 forward cookie header 2025-03-27 13:22:45 -07:00
Yves ce248aae64 Send error when fetching remote assets fails 2025-03-26 09:21:22 +01:00
Yves e578a37c8e Don't duplicate Content-Length 2025-03-18 09:08:12 +01:00
Y. b53cae9421 Merge branch 'main' into yl/add-get-url-tf 2025-03-13 06:52:56 -04:00
Y. 65b45f96ab Merge pull request #39 from duckdb/yl/fix-typo
Fix typo
2025-03-13 06:52:37 -04:00
Yves 2236a0c60b Add get_ui_url function 2025-03-13 11:10:57 +01:00
Yves 65d40e2407 Fix typo 2025-03-13 11:00:07 +01:00
Yves 8df6ff3728 Enable server certs verification by default 2025-03-12 15:14:58 +01:00
Jeff Raymakers 3a5cde3607 check origin header 2025-03-11 11:48:55 -07:00
Yves f6a4077188 Return early 2025-03-11 12:44:49 +01:00
Yves 644d2d4d9e Simplify code 2025-03-11 12:44:39 +01:00
Yves 215ee05ef1 Fix initialization order 2025-03-11 12:44:24 +01:00
Jeff Raymakers 8c1f36c9cf check for running on machine before starting 2025-03-09 10:59:38 -07:00
Jeff Raymakers bc60637266 block cross-site requests 2025-03-08 13:37:04 -08:00
Jeff Raymakers fbd5f7559a fix null watcher error 2025-03-08 11:32:21 -08:00
Jeff Raymakers 21ca02b7c4 Merge pull request #14 from duckdb/jray/require-allow-unsigned-for-remote-url-setting
require allow_unsigned for ui_remote_url setting
2025-03-07 16:00:50 -08:00
Jeff Raymakers 5c9cda1dab require allow_unsigned for ui_remote_url setting 2025-03-07 15:02:14 -08:00
Jeff Raymakers cf75094273 create extension_data/ui directory 2025-03-07 12:33:19 -08:00
Y. efc40852cd Merge pull request #1 from motherduckdb/yl/update-remote-url
Update remote URL to be `ui.duckdb.org`
2025-03-03 15:27:08 -05:00
Yves 35f1bb9942 Move MD logic in its own file 2025-03-03 15:14:10 +01:00
Yves be8166e342 Update remote URL to be ui.duckdb.org 2025-03-03 15:13:37 +01:00
Jeff Raymakers 68281378a2 add info endpoint 2025-02-25 10:27:46 -08:00
Jeff Raymakers 1c120ebf88 remove md headers 2025-02-24 15:24:03 -08:00
Jeff Raymakers d2d3d0b2c1 add seq num to version; change header names; multi-param support 2025-02-24 13:00:17 -08:00
Yves 6a98d2eb7d Fix headers 2025-02-21 14:57:25 +01:00
Yves f1cc3c667d Split server in smaller modules 2025-02-21 12:46:41 +01:00
Yves ae104f697a Make polling interval configurable 2025-02-21 11:44:53 +01:00
Yves 0b1a017c2e Cleanup and simplify server API 2025-02-21 11:44:53 +01:00
Yves 9f0b18b4ef Move helper 2025-02-21 11:44:53 +01:00
Yves 312e630f5b Add GetEnvOrDefaultInt 2025-02-21 11:44:52 +01:00
Yves f1bb58e6c7 Add settings helpers 2025-02-21 11:44:52 +01:00
Yves 642988fa94 Watch for MD connection 2025-02-21 10:50:03 +01:00
Yves f206212575 Inline settings description 2025-02-21 10:49:00 +01:00
Yves 4408269681 Remove obsolete functions 2025-02-21 10:26:59 +01:00
Yves 86d061a605 Don't throw if not connected 2025-02-21 10:14:41 +01:00
Jeff Raymakers c7a84307c2 remove MotherDuck from result strings 2025-02-20 15:30:24 -08:00
Jeff Raymakers f2c44f9a84 add ddb version to user agent 2025-02-20 14:17:45 -08:00