Folder Trust ships disabled by default — is honoring a cloned repo's .gemini/settings.json (incl. trust:true MCP servers) the intended default posture?
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 18/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
Direzione di ricerca
The question is a design-posture question about whether Trusted Folders should be on by default, not a code change. Start with the Trusted Folders and configuration reference docs the issue quotes, and check how the CLI loads workspace .gemini/settings.json, .env files and mcpServers trust entries when the feature is disabled. Done means a maintainer answers whether the default is intentional, with a pointer to any prior decision, or the settings docs are updated to state the default posture.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
I built RepoGrant, an offline verifier that computes the effective authority a repository's agent configuration grants, per tool, under each tool's documented semantics. Part of the work is a pinned audit of the tools' documented defaults (Claude Code, Codex, Cursor, Copilot, Gemini CLI), and one Gemini CLI entry stands out as worth asking about directly.
Per the docs (Trusted Folders):
"The Trusted Folders feature is disabled by default."
With the feature on, an untrusted folder gets a safe mode:
"Workspace settings are ignored: The CLI will not load the
.gemini/settings.jsonfile from the project."
"Environment variables are ignored: … not load any.envfiles"
But because the feature is off by default, by default a cloned repository's .gemini/settings.json and .env are honored — the safe mode only exists once a user has opted in. This composes with one more documented default: an mcpServers entry in that same settings file can set trust: true, which per the configuration reference "bypasses all tool call confirmations for this server". So on a default install, cloning a repo can mean its committed MCP server runs tool calls with no confirmation, and no trust prompt ever appears, because the trust layer itself is opt-in.
For scale: in a field audit of 120 public repositories carrying agent configs (aggregates published in the RepoGrant repo), 26 carried .gemini/settings.json — every one of them in the honored-by-default class on a default install. Neighbouring tools put repo-carried config behind some form of trust decision (e.g. Codex reviews repo hooks per-hash before they run), which is what made this default read as a possible outlier rather than a convention.
Question: is disabled-by-default the intended posture — i.e., is safe mode meant as an opt-in hardening step, with cloned-repo config honored by default? If this was already discussed and decided, a pointer is enough and I'll update RepoGrant's defaults matrix to cite the decision. If it wasn't a deliberate trade-off, the settings documentation may be the cheapest place to surface it.
The full semantics register behind this (verbatim quotes + citations for all five tools) is in the repo: https://github.com/NagaYu/repogrant/blob/main/SEMANTICS.md — happy to be corrected if any of it misreads the docs.
- Lingua principale
- TypeScript
- Stelle
- 109k
- Fork
- 15k
- Merge medio
- 1g 24m
- PR unite (30g)
- 91
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di google-gemini/gemini-cli
-
npm ci fails with EALLOWREMOTE on npm 12Forse già presa @landry-kapgnep l’ha presa oggi. Apertastatus/need-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
google-gemini/gemini-cli#30525 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
hooks migrate preserves regex SessionStart alternatives that native exact trigger matching never runsForse già presa @ayam04 l’ha presa oggi. Apertastatus/need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
google-gemini/gemini-cli#30514 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
CLI reference documents unsupported bulk skills enable and disable commandsForse già presa @jadelike-wine l’ha presa 1 giorno fa. Apertastatus/need-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
google-gemini/gemini-cli#30505 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Footer ignores custom model displayName and drops Vertex AI model info despite hideModelInfo=falseForse già presa @bitwizard25 l’ha presa 2 giorni fa. Apertastatus/need-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
google-gemini/gemini-cli#30482 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
fix(extensions): allowUnsafeConfigPaths missing in GIT_EXTENSION_OPTIONS causes `extensions update` failureForse già presa @kccrcodes l’ha presa 4 giorni fa. Apertastatus/need-triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
google-gemini/gemini-cli#30416 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di google-gemini/gemini-cli
Issue simili
-
enhancement from-app needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nightly-labs/openbot#19162 ·
I maintainer di solito rispondono entro 1 giorno
-
triage:in-progress
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Cotal-AI/Cotal#11229 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
omdsh-dev/DSH-better-sidebar#1290 ·
I maintainer di solito rispondono entro 1 giorno
-
Suggest a wallet: WalletChanForse già presa @apoorvlathey l’ha presa oggi. Apertaawaiting changes needs triage 📥
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
ethereum/ethereum-org-website#20000 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno