Skip to main content
Version: 0.60.3

GM-AG-005: Literal Secret in Gemini Remote Agent Auth

Summary​

  • Rule ID: GM-AG-005
  • Severity: MEDIUM
  • Category: Gemini Agents
  • Normative Level: SHOULD
  • Auto-Fix: No
  • Verified On: 2026-10-17

Applicability​

  • Tool: gemini-cli
  • Version Range: unspecified
  • Spec Revision: unspecified

Evidence Sources​

Test Coverage Metadata​

  • Unit tests: true
  • Fixture tests: true
  • E2E tests: false

Examples​

The following examples demonstrate what triggers this rule and how to fix it.

Invalid​

---
kind: remote
name: my-agent
agent_card_url: https://example.com/agent-card
auth:
type: apiKey
key: sk-live-4f9a8b7c6d5e4f3a
---

Valid​

---
kind: remote
name: my-agent
agent_card_url: https://example.com/agent-card
auth:
type: apiKey
key: $MY_API_KEY
---