Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42289

DuckDB: disable remote access by default

    XMLWordPrintable

Details

    Description

      Extension autoinstall/autoload (httpfs etc.) was always enabled when the shared DuckDB instance is created. Per Roman's request, remote access is now off unless the user explicitly enables it.

      New read-only global variable duckdb_allow_remote_access, default OFF (startup option, like duckdb_use_direct_io).
      OFF: autoinstall_known_extensions and autoload_known_extensions are set to false. ON: previous behavior.
      docs/security-model.md updated.
      Not changed: enable_external_access (local file access) stays at its default, and an explicit INSTALL httpfs through run_in_duckdb() (needs duckdb_allow_run_in_duckdb=ON plus SUPER) is not blocked.

      Tests: duckdb.remote_access_off (default OFF, settings read false, SET GLOBAL rejected) and duckdb.remote_access_on (started with ON, settings read true) pass on a release build. Rest of the duckdb suite (replication tests and one debug-only test skipped): the only differences are the "Can't find corresponding duckdb time_zone" warning of my machine.

      Attachments

        Activity

          People

            drrtuy Roman
            gkodinov Georgi Kodinov
            Roman Roman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.