Skip to content

Add allowed_directories to GUC#1024

Open
adam-lithus wants to merge 1 commit intoduckdb:mainfrom
golithus:feature/allowed-directories-guc
Open

Add allowed_directories to GUC#1024
adam-lithus wants to merge 1 commit intoduckdb:mainfrom
golithus:feature/allowed-directories-guc

Conversation

@adam-lithus
Copy link
Copy Markdown

@adam-lithus adam-lithus commented Mar 11, 2026

Similar to #884 and #699, this adds allowed_directories to the GUC.

Note that DuckDB rejects changes to allowed_directories after external access is disabled. I've therefore moved enable_external_access from DBConfig struct to a SQL SET in Initialize() so allowed_directories can be applied first. Let me know if this is not desirable.

Update: CI is passing on our side

Add duckdb.allowed_directories GUC (PGC_SUSET) for allowlisting
directories and URL prefixes that remain accessible even when
enable_external_access is false.

Move enable_external_access from DBConfig struct to a SQL SET in
Initialize() so allowed_directories can be applied first (DuckDB
rejects changes to allowed_directories after external access is
disabled).
@adam-lithus adam-lithus force-pushed the feature/allowed-directories-guc branch from 3375601 to c990aac Compare March 12, 2026 08:15
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.

2 participants