AIGenLab
EN

UPDATEgoogle-gemini-cli v0.71.1

Gemini CLI v0.71.1 Secures Local Agent Server Access

Version & typev0.71.1 · Feature
In short

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.

Read the original announcement

On this page
  1. Release inventory
  2. Local server access now b…
  3. Server startup binds a to…
  4. Loopback checks reject in…
  5. Server-side workspace tru…
  6. The agent card advertises…
  7. Acceptance testing covers…
  8. Comparable stacks place a…
  9. v0.71.1 turns separate se…
  10. Release analysis
  11. Sources & method

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.

v0.71.1 groups the patch around authentication, entry, workspace, discovery, and acceptance, all serving one server-side boundary.
Where the 20 grouped changes landWhere the 20 grouped changes landAuthentication and startup4Request entry and validation4Workspace and restore4Capability discovery4Acceptance and handoff4
AIGenLab original

Server startup binds a token that every request must present

  1. The server reads GEMINI_IPC_SECRET, falling back to CODER_AGENT_AUTH_TOKEN.
  2. The token is read at startup and compared safely; restart after configuring it.
  3. Missing tokens return 401; no token configuration returns 500; model credentials remain required.

Loopback checks reject invalid requests before business routes

  1. Host must be localhost, 127.0.0.1, or [::1]; a supplied Origin must also be loopback, otherwise 403.
  2. Both checks run before body parsing and cover A2A-added routes.
  3. Test an authenticated request with an external Host and confirm 403 before task creation.

Server-side workspace trust and restore paths replace client claims

  1. Task creation validates workspacePath and ignores client isTrusted; the server decides trust.
  2. Settings without kind default to agent-settings, matching execution and reconstruction.
  3. 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

  1. The card advertises only bearer, matching server acceptance and removing conflicting declarations.
  2. README documents both token variables; send Authorization on every request, including card retrieval.

Acceptance testing covers the normal path and three rejection outcomes

  1. Configure a token, restart, and call listCommands with Authorization to confirm 200.
  2. Test no-token and external-Host requests, expecting 401 and 403 respectively.
  3. 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.

UpdateGoogle ADK Python v2.15.1A2A Python SDK v1.3.1Google Gemini CLI v0.71.1
Authentication and startupto_a2a() wraps an agent; Uvicorn hosts the appOptional FastAPI/Starlette HTTP serversReads an environment bearer token; every request needs it
Request entry and validationExample uses --host localhost and mounts A2A routesJSON-RPC, REST, and gRPC; fixes invalid-parameter codesChecks token and loopback Host/Origin before parsing
Capability discoveryGenerates a card or accepts an AgentCard/JSON pathA2A 1.0 plus 0.3 compatibility; fixes card parsingCard advertises bearer and also requires authentication
Acceptance and handoffQuickstart gives startup and well-known card URLExamples run agent and client; notes list validation fixesREADME 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.

Featurev0.71.0v0.71.1
Authentication methodapp.ts used placeholder checksEnvironment bearer token: GEMINI_IPC_SECRET, falling back to CODER_AGENT_AUTH_TOKEN
Placement and timingChecks sat in app.tsMoved 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 tested

Agent-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

Dates beside sources indicate when we consulted them, not when the vendor released the update. Procedures are editorial guidance, not independently tested.