Gemini CLI PR hardens sandbox: blocks host credentials, mounts sanitized read-only config
diegogodinezr · ghdev · 2026-09-05
A community PR (#29214) against google-gemini/gemini-cli hardens sandbox isolation across Docker, Podman, runsc, LXC and macOS Seatbelt:
- Mount isolation: isSensitiveHostPath() blocks mounting /.gemini, home directory roots, .env files and credential stores into containers, raising FatalSandboxError on violations.
- Settings sanitization: sanitizeSettingsForSandbox() strips hooks, custom tool commands and API keys, mounting only a sanitized read-only settings. inside the container.
- Runtime redirection: new Storage.isSandbox() / getGlobalRuntimeDir() APIs route chat logs, session history and scratch files to an ephemeral tmpdir instead of host config folders.
A useful reference for anyone building sandboxed agent runtimes.
More from coding & agent
- Vibe coding a feature store in a week: duckdb + S3 tables is all you need — generativist · 2026-12-05
- The underrated alpha: an AI agent that tracks local events and nudges you to attend — mimi10v3 · 2026-12-05
- Dev open-sources Cred after saying Anthropic 'shipped my startup' — agent access without sharing credentials — sull · 2026-12-05
- Microsoft paper: LLMs solving 97% of math still can't tell which answers are wrong — rohanpaul_ai · 2026-12-05
- Free Full AEO Course Drops: Winning Traffic in the Age of AI Search — jia_seed · 2026-12-05
- A personal agent's tidy-looking plan had its steps in the wrong order — the_crooked_badger · 2026-12-05