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
AgentSecrets CloudEgress Allowlists & Audit Streams

Egress Allowlists & Audit Streams

AgentSecrets Cloud combines an egress domain firewall with a tamper-evident audit stream, providing containment and complete observability over all credential usage.


Egress Domain Allowlist Firewall

Autonomous AI agents executing multi-step tasks must be bounded to authorized third-party APIs. The Egress Allowlist prevents malicious prompts, hallucinatory outputs, or compromised dependencies from exfiltrating credentials to unauthorized endpoints.

Allowlist Evaluation Rules

  • Exact Domain Match: api.stripe.com permits requests exclusively to https://api.stripe.com/*.
  • Wildcard Subdomain Match: *.openai.com permits api.openai.com and v1.api.openai.com, while rejecting unauthorized-openai.com.
  • Port Stripping: Automatically normalizes hostnames across ports (api.github.com:443 -> api.github.com).
  • SSRF & Private IP Blocking: Outbound calls to non-routable private IP addresses (127.0.0.1, 10.0.0.0/8, 169.254.169.254, 172.16.0.0/12, 192.168.0.0/16) are blocked unconditionally to protect cloud instance metadata services.

Enforcement Behavior on Blocked Requests

If an agent attempts to resolve a credential for a non-allowlisted destination (such as https://attacker-c2.com/collect):

  1. The Cloud Resolver terminates the connection immediately with 403 Forbidden (domain_blocked).
  2. An audit record is logged flagged with the blocked domain and timestamp.
  3. The credential value is never decrypted, unsealed, or transmitted.

Live Audit Streams

Every credential resolution—whether executed through agentsecrets env container boots or POST /v1/resolve agent tool calls—emits a structured, zero-knowledge audit event.

AUDIT INGESTION PIPELINE ┌──────────────┐ │ HTTP Request │ └──────┬───────┘ ┌─────────────────────────────┐ │ Cloud Resolver Data Plane │ │ (Processes & Logs Entry) │ └──────────────┬──────────────┘ │ Lock-Free Push ┌─────────────────────────────┐ │ Bounded Ring Buffer │ │ (10,000 Capacity) │ └──────────────┬──────────────┘ │ Batched Flush (500ms or 100 items) ┌─────────────────────────────┐ │ PostgreSQL Audit Database │ │ & Real-Time Web Stream │ └─────────────────────────────┘

Audit Record Schema

Audit events capture complete execution telemetry without storing credential values:

FieldTypeDescriptionExample
timestampISO-8601High-precision UTC timestamp.2026-08-23T00:15:02.124Z
workspace_idUUIDWorkspace owning the credential.8fa3c012-7b89-...
project_idUUIDProject context.1ab4d982-3c4e-...
agent_token_idstringWorkload token ID used.agt_prod_7f8a...
credential_keystringSecret handle referenced (name only).STRIPE_KEY
target_domainstringDestination hostname.api.stripe.com
target_pathstringHTTP path requested./v1/charges
methodstringHTTP method.POST
status_codeintegerUpstream HTTP response status code.200
duration_msintegerRound-trip latency in milliseconds.142
redactedbooleantrue if reflected credentials were scrubbed.false
resolution_pathstringdirect_resolve or headless_env.direct_resolve

Observation & Management Interfaces

1Web Dashboard Audit Viewer

Navigate to Audit Logs in the AgentSecrets Web App for live log streaming, domain filtering, error inspection, and CSV export.

2CLI Inspection Commands

# View recent audit events agentsecrets logs --limit 50 # Filter audit records by target domain agentsecrets logs --domain api.stripe.com # Stream incoming audit log events in real time agentsecrets logs watch # List active domain allowlist rules agentsecrets allowlist list # Add new domains to the workspace allowlist agentsecrets allowlist add api.stripe.com api.github.com
Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.