Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

chore(dev): allow duckdb extension cache reads in dev sandbox (#62681)

Vasco de Krijgere62c161a8fb4
diff --git a/bin/dev-sandbox.sb b/bin/dev-sandbox.sb
index 57d8e721e1f3..9faf562046ba 100644
--- a/bin/dev-sandbox.sb
+++ b/bin/dev-sandbox.sb
@@ -60,6 +60,7 @@
(subpath (string-append (param "HOME") "/.local/share/uv")) ; uv-managed Python interpreters (venv links here)
(subpath (string-append (param "HOME") "/.local/share/flox")) ; flox metadata
(subpath (string-append (param "HOME") "/Library/pnpm")) ; pnpm content-addressed store
+ (subpath (string-append (param "HOME") "/.duckdb")) ; duckdb extension cache (ducklake warmup installs/stats extensions here)
;; git global config (read by version-detection / git-aware tooling). Config
;; only, by exact path — credentials (~/.git-credentials, keychain) stay blocked.
(literal (string-append (param "HOME") "/.gitconfig"))
@@ -73,6 +74,11 @@
(literal (string-append (param "HOME") "/.cargo/credentials"))
(literal (string-append (param "HOME") "/.cargo/credentials.toml")))
+;; Keep DuckDB persistent secrets (CREATE PERSISTENT SECRET — unencrypted cloud
+;; credentials) blocked even though ~/.duckdb is allowed above.
+(deny file-read*
+ (subpath (string-append (param "HOME") "/.duckdb/stored_secrets")))
+
;; ── Writes ────────────────────────────────────────────────────────────
;; Writes stay broadly allowed (the stack writes caches, build output, /tmp),
;; but block the obvious persistence vectors so a dependency can't plant a