Skip to content

High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.

docs: add trusted-environment warnings for agent session management API

Bosch45b5aaea6558
diff --git a/docs/guides/agent-identity.md b/docs/guides/agent-identity.md
index bb4fc5fa..3eda5813 100644
--- a/docs/guides/agent-identity.md
+++ b/docs/guides/agent-identity.md
@@ -44,6 +44,8 @@ The `X-Agent-Id` header is sent with every request. No server-side setup require
## Agent Sessions
+> **⚠️ Security notice:** Agent sessions are designed for **trusted environments** — local machines, private networks, or setups where all agents are under your control. Do not expose the session management API (`/api/sessions`) to the public internet. Any authenticated caller (bearer token or dashboard cookie) can create, list, rotate, and revoke sessions for any agent. There is no per-agent authorization scoping — treat session management endpoints like admin APIs.
+
Sessions are the full identity solution. Each session is a revocable, server-managed token tied to a specific agent ID. Sessions provide:
- **Labels** — human-readable names like "research task" or "daily scrape"
diff --git a/docs/guides/security.md b/docs/guides/security.md
index 3819b492..159e85d8 100644
--- a/docs/guides/security.md
+++ b/docs/guides/security.md
@@ -285,4 +285,6 @@ For automated agents, use **agent sessions** instead of sharing the server beare
- Has configurable idle timeout and max lifetime
- Never exposes the server bearer token to agents
+**Important:** Agent sessions are designed for trusted environments. The session management API (`/api/sessions`) has no per-agent authorization — any bearer-authenticated caller can manage all sessions. Do not expose these endpoints to untrusted networks.
+
See [Reference: Agent Sessions](../reference/sessions.md) for configuration and API details.
diff --git a/docs/reference/sessions.md b/docs/reference/sessions.md
index 11f90479..24662768 100644
--- a/docs/reference/sessions.md
+++ b/docs/reference/sessions.md
@@ -49,6 +49,8 @@ In `config.json`:
- Sessions persisted to `agent-sessions.json` (atomic writes)
- Each session bound to a specific agentId for activity tracking
+> **⚠️ Trusted environment only.** The session management API (`/api/sessions`) has no per-agent authorization scoping. Any caller authenticated with the server bearer token or a valid dashboard cookie can create, list, rotate, and revoke sessions for any agent. Do not expose these endpoints to untrusted networks or the public internet. If you need multi-tenant isolation, run separate PinchTab instances per tenant.
+
## CLI Usage
```bash