UPDATEgoogle-gemini-cli v0.71.1
Gemini CLI v0.71.1 Secures Local Agent Server Access
This patch brings authentication, request entry, workspace trust, and checkpoint restore under one boundary for the agent-to-agent server. Operators must configure a token and send it with every request after upgrading.
What changed in this release
20 checkpoints in 5 groups, organized by task from the official notes. Checkpoints do not count separate features or commits.
Authentication and startup
- The server replaces placeholder checks with a bearer token.
- GEMINI_IPC_SECRET takes priority over CODER_AGENT_AUTH_TOKEN.
- The startup-only token read requires a restart after changes.
- Missing tokens return 401; absent configuration returns 500.
Request entry and validation
- Host accepts only localhost, 127.0.0.1, and [::1].
- A supplied Origin must also use a loopback address.
- Other Host or Origin values return 403 before routing.
- Checks cover A2A-added routes and precede body parsing.
Workspace and restore
- Task creation validates workspacePath under server control.
- Client-supplied isTrusted no longer determines workspace trust.
- Settings without kind default to agent-settings.
- Restore rejects resolved targets outside the checkpoint directory.
Capability discovery
- The agent card advertises only bearer authentication.
- The card declaration matches server authentication.
- Agent-card requests also require Authorization.
- README documents both token environment variables.
Acceptance and handoff
- Authenticated listCommands provides the 200 acceptance case.
- No-token requests return 401, confirming active authentication.
- External-Host requests return 403 despite a valid token.
- Auth, endpoint, executor, and restore tests cover changes.
On this page
ContextLocal server access now binds caller identity and file boundaries
This patch targets people running the Gemini CLI agent-to-agent server locally. Even a loopback service must identify callers and limit reachable workspaces and files. Version v0.71.1 moves those answers into the server.
The update adds no external gateway. Token and loopback checks run before body parsing and routing. Task creation stops trusting client claims, and checkpoint restore stays inside its directory.
The patch has five groups: authentication and startup, request entry, workspace and restore, capability discovery, and acceptance and handoff. The chart shows that full view; the sections below explain each change and the upgrade work it creates.
Server startup binds a token that every request must present
- The server reads GEMINI_IPC_SECRET, falling back to CODER_AGENT_AUTH_TOKEN.
- The token is read at startup and compared safely; restart after configuring it.
- Missing tokens return 401; no token configuration returns 500; model credentials remain required.
Loopback checks reject invalid requests before business routes
- Host must be localhost, 127.0.0.1, or [::1]; a supplied Origin must also be loopback, otherwise 403.
- Both checks run before body parsing and cover A2A-added routes.
- Test an authenticated request with an external Host and confirm 403 before task creation.
Server-side workspace trust and restore paths replace client claims
- Task creation validates workspacePath and ignores client isTrusted; the server decides trust.
- Settings without kind default to agent-settings, matching execution and reconstruction.
- Restore resolves the checkpoint path and errors outside the checkpoint directory; record that directory for handoff.
The agent card advertises only the authentication the server accepts
- The card advertises only bearer, matching server acceptance and removing conflicting declarations.
- README documents both token variables; send Authorization on every request, including card retrieval.
Acceptance testing covers the normal path and three rejection outcomes
- Configure a token, restart, and call listCommands with Authorization to confirm 200.
- Test no-token and external-Host requests, expecting 401 and 403 respectively.
- In an isolated environment without a token, confirm 500, then run auth, endpoint, executor, and restore tests.
Comparable stacks place authentication and validation in different layers
These three do not sit on one layer: ADK Python v2.15.1 wraps and hosts, A2A Python SDK v1.3.1 supplies protocol and transport components, and Gemini CLI v0.71.1 constrains a runnable service. This comparison concerns local agent-to-agent service access, not model quality.
ADK starts with to_a2a and Uvicorn and can generate the card. The A2A SDK places transports and parameter validation in components. Gemini CLI puts token, loopback, workspace-trust, and checkpoint checks in one server-side flow.
Do not rank columns by filled cells; choose by integration ownership.
| Update | Google ADK Python v2.15.1 | A2A Python SDK v1.3.1 | Google Gemini CLI v0.71.1 |
|---|---|---|---|
| Authentication and startup | to_a2a() wraps an agent; Uvicorn hosts the app | Optional FastAPI/Starlette HTTP servers | Reads an environment bearer token; every request needs it |
| Request entry and validation | Example uses --host localhost and mounts A2A routes | JSON-RPC, REST, and gRPC; fixes invalid-parameter codes | Checks token and loopback Host/Origin before parsing |
| Capability discovery | Generates a card or accepts an AgentCard/JSON path | A2A 1.0 plus 0.3 compatibility; fixes card parsing | Card advertises bearer and also requires authentication |
| Acceptance and handoff | Quickstart gives startup and well-known card URL | Examples run agent and client; notes list validation fixes | README covers two tokens and 200/401/403/500 outcomes |
v0.71.1 turns separate server checks into a consistent flow
The one confirmed vertical change: v0.71.1 replaces the placeholder authentication checks in app.ts with an environment-provided bearer token. The v0.71.0 notes covered PowerShell parsing and an artifact registry move, and v0.71.1 cherry-picks the security fix into stable, so operators change client configuration and headers.
The table keeps only what the fix states about the earlier state: authentication moved from placeholder checks in app.ts to bearer authentication registered in a new auth module before routing. Update the token, restart, add Authorization to every client, then retest entry and restore boundaries.
| Feature | v0.71.0 | v0.71.1 |
|---|---|---|
| Authentication method | app.ts used placeholder checks | Environment bearer token: GEMINI_IPC_SECRET, falling back to CODER_AGENT_AUTH_TOKEN |
| Placement and timing | Checks sat in app.ts | Moved to src/http/auth.ts, registered before body parsing and every route |
Release analysisAgent-server operators should upgrade first; terminal-only users can wait
AIGenLab view, not independently tested: the biggest impact falls on people maintaining a local agent-to-agent service or handing it to another process. Before upgrading, identify the token source and model credentials, then update every client to send the authentication header. Terminal-only users can follow their normal cadence.
The horizontal difference is where responsibility sits. ADK Python v2.15.1 hosts an existing agent through to_a2a and Uvicorn, while A2A Python SDK v1.3.1 handles transports and parameter validation. Gemini CLI v0.71.1 gives the running service explicit boundaries. Choose according to integration ownership.
Editorial view, not independently tested: complete token, 401, 403, and restore-path regression in an isolated directory before connecting daily work. Do not treat an external Host allowlist as a substitute or carry client-declared trust into the new flow.
For handoff, keep the token source, each client's authentication-header configuration, and acceptance commands with response codes. The tool directory and all-updates page are entry points; change the caller, not the model prompt.
AIGenLab views
Not independently testedAgent-server operators should migrate client authentication headers before connecting daily work.
The PR explicitly requires a token on every request, including agent-card retrieval.
Acceptance should cover the normal path, missing token, external Host, and absent token configuration.
The PR's validation steps map requests to 200, 401, 403, and 500.
People using only the interactive terminal and not running the server can follow their normal upgrade cadence.
The changed mechanisms sit in A2A server authentication, input handling, and restore paths.
Official sources and scope
- Google Gemini CLI v0.71.1 release The target version, publication date, and patch scope
- Gemini CLI PR #30420 Authentication, request entry, workspace, restore, agent-card, and acceptance mechanisms
- Gemini CLI PR #30429 The source relationship showing PR #30420 cherry-picked into stable for v0.71.1
- Google Gemini CLI v0.71.0 release The previous stable release notes and vertical-comparison background
- Google ADK Python v2.15.1 release The ADK version and publication date used in the horizontal comparison
- ADK A2A exposing quickstart ADK's to_a2a, Uvicorn, capability-card, and startup acceptance flow
- A2A Python SDK v1.3.1 release The A2A SDK version, transport-validation fixes, and capability-card parsing fix
- A2A Python SDK v1.3.1 README The SDK's server role, optional HTTP components, and protocol compatibility scope
Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.