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
TroubleshootingSSRF & Destination Rules

Troubleshooting SSRF and Loopback Block Errors

The AgentSecrets credential proxy enforces strict zero-trust boundaries to prevent malicious LLM agents, prompt injection payloads, or compromised packages from targeting internal network infrastructure or leaking credentials. If your requests are blocked with non_https_blocked or ssrf_blocked status codes, read this guide to resolve it safely.


Security Protections Enforced

By default, the credential proxy enforces two non-negotiable security layers:

  • HTTPS Enforcement: All external API calls must use the secure https scheme. Plain unencrypted http:// traffic is strictly blocked to prevent credential sniffing on local networks.
  • SSRF & Loopback Block: Outbound connections targeting private IP ranges (RFC 1918 subnets: 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), cloud metadata endpoints (169.254.169.254), or local loopback interfaces (127.0.0.1, localhost, ::1) are blocked. This prevents an agent from targeting local management ports, internal databases, or cloud instance metadata credentials.

Diagnose and Fix

1DNS Resolution and Anti-Rebinding Defense

The proxy dialer resolves the target host's IP address before establishing an outbound connection and dials the resolved IP directly. This prevents DNS Rebinding attacks where a malicious domain's DNS record rotates mid-connection to point to an internal IP address.

  • If your local proxy fails with SSRF prevention: DNS lookup failed, verify that your host machine has an active internet connection and can resolve public DNS hostnames.
  • Check if a corporate firewall, VPN client, or local DNS filter is interfering with resolution.

2Testing Local & Mock Services Safely

Because AgentSecrets enforces strict zero-trust security across all execution contexts, raw loopback HTTP bypasses are blocked by default.

To test with local mock servers or staging APIs:

  1. Use HTTPS Reverse Proxies / Tunnels: Run your local mock server behind a local TLS reverse proxy (such as caddy, mkcert, ngrok, or localtonet) that provides a valid HTTPS endpoint.
  2. Add Domain to Allowlist: Add the tunnel domain to your workspace allowlist:
    agentsecrets workspace allowlist add test-api.yourtunnel.dev
  3. Target the HTTPS Endpoint: Route your agent calls to the secure HTTPS URL.

3Check Domain Allowlist Authorization

Even if a destination is a public HTTPS URL, the proxy returns 403 Forbidden (domain_not_allowed) if the domain is not explicitly registered in your workspace allowlist:

# Add domain to workspace allowlist agentsecrets workspace allowlist add api.stripe.com
Was this helpful?
Thanks for your feedback!
Your feedback helps us improve the platform.