What is AgentSecrets?
The Zero-Knowledge Difference
How AgentSecrets Works
Installation
Quick Start
Migrating from .env Files
Migrating from Vault / AWS
Migrating from dotenv-vault
Production Checklist
Credential Exposure
What Zero-Knowledge Means
The Proxy Model
The Three-Layer Model
Environments
Agent Identity
Storage Modes
The No get() Principle
Secret-Level Policies
Cloud Overview & Architecture
The Dual-Engine Model
Cloud Resolver Data Plane
Workload & Agent Tokens
Egress Allowlists & Audit Streams
Cloud REST API Reference
Account (init / login)
Server & Self-Hosting (server)
Docs
Shell Autocompletion
Keychain Auth
Secrets
Environments
Credential Proxy
env Injection
Workspaces & Teams
Projects
Agent Identity
Audit & Governance
Integrations Overview
Claude Desktop
Cursor
OpenClaw
HTTP Proxy (Any)
LangChain (Soon)
CrewAI (Soon)
CI/CD Pipeline
SDK Overview
Python SDK
Python API Reference
Python SDK Manual Testing
JavaScript SDK (Soon)
Ecosystem Overview
Zero-Knowledge MCP Server
Server Overview
5-Layer Architecture
Self-Hosting Guide
Authentication & Keys
Workspaces & Teams
Projects & Scope
Environments
Secrets & Sync Protocol
Agent Identity Resolution
Telemetry & Metrics Engine
Audit Log Sync
API Endpoint Reference
Security Overview
Anti-Impersonation & Process Verification
Encryption Model
Zero-Knowledge Sync
Proxy Security Layers
Threat Model
OWASP Top 10 Mitigation
Security FAQ
Third-Party Audit
Reporting Vulnerabilities
Guides Overview
Building on the SDK
Stripe Integration
OpenAI Integration
Multi-Agent Setup
Onboarding Team
CI/CD Pipeline
Publishing ZK MCP
Rotating Credentials
Auditing Team Activity
Dev to Production
Kubernetes Deployment
Monorepo Setup
Production Proxy Hardening
vs .env Files
vs HashiCorp Vault
vs AWS Secrets Manager
vs dotenv-vault
vs Infisical
When Not to Use
Proxy Not Starting
Proxy Not Resolving
Domain Blocked
Sync Conflicts
MCP Not Connecting
Session Token Errors
Proxy Session Authorization
Keychain Storage & Backends
SSRF & Destination Rules
Installation Issues
Error Codes Reference
Frequently Asked Questions
v3.1.x
v3.0.0
v2.1.0
v2.0.0
v1.4.0
v1.3.x
v1.2.0
v1.1.x
v1.0.x
CLI ReferenceFinding Coverage Gaps

Finding Anonymous Coverage Gaps

A security system is only as strong as its weakest link. In AgentSecrets, allowlists protect where your requests can go, but Agent Identity ensures you know who is making them.

An Anonymous Coverage Gap exists whenever a client resolves a secret through the proxy without declaring or proving its identity. Finding and fixing these gaps is a critical part of hardening your agentic security infrastructure.


The --identity anonymous filter

The primary tool for uncovering gaps is the --identity anonymous log filter. This filter screens the audit log to isolate requests that succeeded in resolving a secret but did not provide an agent_id or an agent_token.

To search for gaps in the current workspace, run:

agentsecrets logs list --identity anonymous --last 100

Run this command as part of your weekly security review or integrate it into a CI/CD audit runner. Any output indicates a system or script using credentials without attribution.


What gaps look like

In the audit log, a gap appears as a successful call where the identity metadata is missing:

TIMESTAMP KEY TARGET URL IDENTITY LEVEL STATUS 10:14:02 STRIPE_KEY api.stripe.com/v1/charges null anonymous 200 OK 10:14:15 GITHUB_KEY api.github.com/repos/issue null anonymous 200 OK

These gaps typically stem from three common scenarios:

  1. Legacy Scripts: Older automated scripts that were written before Agent Identity was implemented, which use the default SDK initialization without parameters.
  2. Direct Proxy Bypass: HTTP calls routed through the local proxy endpoint (localhost:8765/proxy) that include target URLs and injection headers but omit the X-AS-Agent-ID or X-AS-Agent-Token headers.
  3. Misconfigured Containers: Background worker tasks deployed in Docker or Kubernetes where the container orchestrator failed to inject the AGENTSECRETS_AGENT_ID or AGENTSECRETS_TOKEN environment variables.

Resolving each gap

Eliminating anonymous gaps follows a structured verification and upgrade process.

1Pinpoint the source

Inspect the anonymous log entry to extract diagnostic details. Look at the timestamp, the target_url, the key accessed, and the calling client's IP address. This metadata allows you to locate the physical machine or application server hosting the anonymous caller.

2Update the implementation

Once the code or service is located, upgrade it to a declared or cryptographically verified identity.

  • For Python scripts, pass the agent parameter:
    # Upgrade from anonymous client client = AgentSecrets(agent_id="my-background-service")
  • For raw HTTP requests, add the headers:
    # Upgrade HTTP request headers curl http://localhost:8765/proxy \ -H "X-AS-Target-URL: https://api.stripe.com/v1/balance" \ -H "X-AS-Inject-Bearer: STRIPE_KEY" \ -H "X-AS-Agent-Token: agt_ws01hxyz_myToken..."
  • For containerized apps, verify your deployment YAML or Dockerfile injects the variables:
    env: - name: AGENTSECRETS_AGENT_ID value: "kubernetes-worker-pod"
Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.