<timestamp>Thursday, Aug 6, 2026, 10:40 AM (UTC+2)</timestamp> in a worktree in the…
- User
Thursday, Aug 6, 2026, 10:40 AM (UTC+2)
in a worktree
in the @chat/cli/nao_core/config/databases/duckdb.py deactivate the file reading capabilities and all the external capabilities so nothing can leak / be read
- Assistant
I'll inspect the DuckDB config and set up a worktree so we can disable file reading and other external capabilities safely.
- Assistant
Looking for existing DuckDB lockdown patterns and how connections are configured elsewhere.
- Assistant
The backend already locks DuckDB down — I'll mirror that in the CLI config inside a fresh worktree.
- Assistant
Checking DuckDB lockdown options and whether agent SQL uses the CLI DuckDB config path.
- Assistant
Creating a worktree and applying the same lockdown the backend uses.
- Assistant
The original file uses spaces — I'll match that and drop the inline comments.
- Assistant
Fixing type-checker complaints about
raw_sqlonBaseBackend. - Assistant
Done in worktree
/Users/blef/Work/naolabs/chat-duckdb-lockdownon branchfix/duckdb-disable-external-access.DuckDBConfig.connect()now mirrors the backend lockdown:SET enable_external_access = false— blocksread_csv/read_parquet/read_json,COPY,ATTACH, httpfs, etc.SET lock_configuration = true— prevents the session from turning access back on
Tables inside the configured
.duckdbfile still query normally. Added tests covering local file reads, network reads,ATTACH, and config lock. Lint + duckdb tests pass.Say if you want this committed or opened as a PR.
- User
in a worktree
in the @chat/cli/nao_core/config/databases/duckdb.py deactivate the file reading capabilities and all the external capabilities so nothing can leak / be read
- User
Thursday, Aug 6, 2026, 10:45 AM (UTC+2)
push a PR
- Assistant
I'll commit the lockdown changes in the worktree, push the branch, and open the PR.
- Assistant
PR is up: https://github.com/getnao/nao/pull/1357