a2a-server does not load system settings (`system-defaults.json` / system `settings.json`) and reads `adminPolicyPaths` from the user settings file

Aperta
#30,327 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
53/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Read packages/a2a-server/src/config/settings.ts around loadSettings() and compare its settings merge with docs/cli/enterprise.md:19-30; check how the CLI loads system settings and admin policy paths. The issue identifies packages/a2a-server/src/config/config.ts:362-363 as a consumer of the merged settings. Done means the server follows the documented system settings and policy behavior, or the enterprise documentation clearly explains that the A2A server is excluded.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status/need-triage

Package: packages/a2a-server (checked at main 4fa64e7, 2026-11-16)

What happens

  • loadSettings() in packages/a2a-server/src/config/settings.ts merges only two layers: the user file (USER_SETTINGS_PATH, settings.ts:23-24, read at :877) and the workspace file when trusted (:891-898). The merge at :909-915 has no system-defaults or system-override layer.
  • At settings.ts:917-921, policyPaths and adminPolicyPaths are both taken from userSettings.
  • The tool lists used by the server come from that merged result: coreTools: settings.tools?.core and excludeTools: settings.tools?.exclude (packages/a2a-server/src/config/config.ts:362-363).

Expected

docs/cli/enterprise.md:19-30 describes a system settings file (system-defaults.json plus settings.json overrides) that "apply to all users on a machine", with system overrides taking precedence. Tasks run through the A2A server would be expected to see the same system layer and the same admin policy locations as the CLI. If the A2A server is intentionally out of that model, the enterprise page could say so.

Notes

  • packages/a2a-server/README.md:3 marks the package as experimental. This is a consistency report, not a security report.
  • Related docs: docs/cli/enterprise.md:5-6, :19-30.
Lingua principale
TypeScript
Stelle
109k
Fork
15k
Merge medio
1g 1h
PR unite (30g)
106

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di google-gemini/gemini-cli

Tutte le issue di google-gemini/gemini-cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.