# Security

> Secrets, outbound requests and the public surface.

- **Encryption**: tool headers, MCP credentials and Telegram tokens are AES-GCM encrypted and never returned.
- **SSRF guard**: private and reserved addresses are refused for MCP and webhook targets.
- **Public surface**: `/api/public/*` is cookie-less with origin allowlists, in-memory rate limits and webhook secrets.
- **Data plane**: the API calls `/internal/v1/*` with a bearer secret; events come back HMAC-signed.
- **Tenancy**: every query is scoped by organization.
- **Observability**: tracing and JSON logs share `trace_id`; credentials are redacted.
