Technical Reference / Platform security
Platform security
The security posture, architecture, and data handling practices of the AI Control Plane.
Terminology
In this document, “Customer” refers to the user of the platform. “End User” refers to a user of an MCP server hosted by the platform on behalf of the Customer.
Trust center
For a security and compliance review, visit the Speakeasy Trust Center for audit reports, certifications, and compliance documentation.
The AI Control Plane is designed as a high-performance, security-first, agent governance platform. It connects to your agents, provides an MCP gateway, and enforces fine-grained permissions, threat detection, and full observability.
Certifications
Section titled “Certifications”The platform maintains the following security certifications and compliance standards:
- SOC 2 Type II - Independently audited controls for security, availability, and confidentiality
- ISO 27001 - International standard for information security management
- GDPR compliant - Data processing agreements available with privacy by design
- CCPA compliant - User data deletion on request


Industry affiliations
Section titled “Industry affiliations”Speakeasy is affiliated with The Linux Foundation, the Cloud Security Alliance, and the Agentic AI Foundation.
Architecture overview
Section titled “Architecture overview”The diagram below shows the full stack and how traffic moves between clients, the platform, and external services.

The platform is hosted on Speakeasy-managed cloud infrastructure. It runs as a shared multi-tenant service, with every organization isolated by the controls described in Tenant isolation, and consists of the following components.
Control plane
Section titled “Control plane”- API server - A Go service built with the Goa design-first framework. One API design generates the REST API, its OpenAPI spec, and the TypeScript SDK, and service handlers check permissions before reading or writing data.
- Dashboard - The web interface for managing the platform, built in React on the generated TypeScript SDK.
- CLI - A Go binary that talks to the same REST API as the dashboard.
Data plane
Section titled “Data plane”- MCP gateway - The ingress for agent traffic. Agents connect over HTTP and SSE with platform-issued tokens scoped to an organization; the gateway resolves the MCP server’s tool selection for each tool call and dispatches to tool connectors or sandboxed function runners.
- Guardian - Inline scanners on requests and responses through the gateway: prompt-injection detection, PII and secret scanning, and an egress allow-list.
- Function runners - Isolated machines that execute custom MCP function code. Each function deployment gets its own application and its own private network, root filesystems are not persisted between runs, and every call into a runner carries a short-lived token bound to that invocation and tool.
- Tool connectors - Turn sources into tools. Supported source types include OpenAPI 3.0 and 3.1 documents, TypeScript functions, third-party catalog servers, custom remote MCP servers, and tunneled MCP servers.
- Telemetry ingest - Hook and OTLP endpoints receive events and telemetry from instrumented agents. Events land in ClickHouse, power the Observe pages, and can follow project-scoped routes to external collectors through data exports.
Some catalog servers can be distributed unproxied. Agents then connect directly to the vendor, and that traffic never reaches the platform. Unproxied servers do not get gateway-side features such as gateway guardrails and managed authentication.
Asynchronous processing
Section titled “Asynchronous processing”Deployments, cleanup, key health checks, and usage jobs run as Temporal workflows. Deploying a source enqueues a workflow that builds and deploys the function runner, fetching the bundle from encrypted object storage; a reaper workflow cleans up idle runners.
Data stores
Section titled “Data stores”- PostgreSQL - The primary metadata store, with schema managed through Atlas migrations
- Redis - Caching and rate limits
- ClickHouse - The audit and usage store; the gateway records every tool call here
- Object storage - Function bundles, assets, and captured session content
External dependencies
Section titled “External dependencies”- WorkOS - The identity layer behind dashboard sign-in, SSO (OIDC and SAML), and directory sync
- Remote MCP servers - Customer-supplied servers, reached only through the egress allow-list
- Customer SaaS APIs - Third-party APIs behind tool connectors, authenticated with OAuth or API keys
Tenant isolation
Section titled “Tenant isolation”The platform is multi-tenant. Organizations share infrastructure, and isolation is enforced in the application and the data model rather than by separate deployments. Every request passes four checks, each bound to the caller’s organization:

- Scoped queries - Every database query that reads or writes customer data filters by the organization or project that owns it, and resource lookups by ID include the owner. A request that names another tenant’s resource gets a not-found response. Automated code review flags new or changed queries that are not scoped, and packages carry tests that assert another project’s records are unreadable.
- Tenant-qualified keys - Foreign keys between sensitive tables include the organization, so a record such as an encryption configuration can never reference another organization’s key.
- Authorization on every request - Requests carry an authenticated principal bound to one organization. Handlers check that principal’s grants before touching data. See Authorization.
- Per-organization encryption - Customer content and credentials are sealed under keys that belong to one organization, and every ciphertext is bound to its organization, so a value copied into another tenant’s records fails to decrypt. See Organization encryption keys.
- Isolated function execution - Custom function code runs on dedicated machines per deployment, never inside the shared API or gateway processes.
Authentication
Section titled “Authentication”Dashboard and API
Section titled “Dashboard and API”People sign in to the dashboard through the Speakeasy identity layer with Google, Microsoft, or email sign-in. Unauthenticated sessions are not supported.
Organizations on plans that include them can set up Single Sign-On and Directory Sync themselves from the dashboard. SSO requires a verified domain and federates sign-in to the organization’s identity provider over SAML or OIDC, so MFA, device trust, and conditional access policies apply. Directory Sync provisions and deprovisions members over SCIM and assigns roles from identity provider group and attribute mappings. Under Directory Sync, members cannot be invited or assigned roles by hand. See Directory sync and roles.
Programmatic access uses API keys. The platform stores only a SHA-256 hash and a short prefix of each key, never the key itself. Assistants authenticate with their own agent identity and workload assertions instead of API keys.
MCP clients and end users
Section titled “MCP clients and end users”The platform is the OAuth authorization server for the MCP servers it hosts. When an MCP client connects without credentials, the gateway challenges it, and the End User signs in before any tool call runs:
- Speakeasy identity - By default, End Users sign in through the same identity layer as the dashboard, including the organization’s SSO connection.
- Organization identity provider - An organization can trust its own OIDC provider for End User sign-in. The platform verifies the identity token and maps the user to an existing directory member. It does not create accounts on the fly and rejects tokens that report an unverified email.
- Enterprise Managed Auth - With Enterprise Managed Auth, the organization’s identity provider issues identity assertion grants (ID-JAG) that the platform exchanges for access, so agent access follows the identity provider’s own policy.
MCP clients receive platform-issued tokens. They never receive the upstream credentials the platform holds for third-party services. Authorization Servers control which MCP clients may register, including admission of clients identified by a Client ID Metadata Document. The consent screen is always shown before a new client gains access.
Authorization
Section titled “Authorization”Access is governed by roles and scopes. Handlers check the caller’s scopes before reading or writing data, and list endpoints filter results to what the caller may see.
Reading other people’s content is deliberately separate from administering the organization:
- The
chat:readandlog:readscopes, which unlock other members’ agent session transcripts and raw logs, are not part of any default role, including Admin. They must be granted through a custom role. - Every transcript open is recorded in Audit Logs.
- Speakeasy support sessions that act on behalf of an organization are blocked from sensitive content regardless of the grants involved.
The Check access view on each MCP server answers whether a specific member can connect to, view, or manage it, and which rules decide that. It uses the same evaluation as runtime enforcement.
Encryption
Section titled “Encryption”In transit
Section titled “In transit”All traffic to and from the platform uses TLS. HTTPS is the standard protocol for all MCP servers hosted by the platform.
At rest
Section titled “At rest”Stored data is protected in three layers. Customer content and credentials are sealed under keys that belong to the organization, secrets that only need to be compared are stored as hashes, and every data store uses the storage-level encryption at rest of the underlying cloud providers:

The platform seals customer content and credentials with AES-256-GCM under the organization’s own key before writing them to the database, using a fresh random nonce for every value. Organization keys protect:
- OAuth credentials - Upstream access and refresh tokens from managed OAuth flows, tokens from identity chaining and Enterprise Managed Auth, trusted issuer session material, and the client secrets the platform uses with upstream authorization servers
- Environment secrets - Values marked secret in Environments, which is the default, secret headers on remote MCP servers and authorization clients, and authentication headers on data export destinations
- Agent session transcripts - Prompts, assistant responses, raw provider messages, tool calls and their arguments, and tool call summaries captured in Agent Sessions
- AI provider and integration credentials - Model provider keys, AI integration API keys and signing secrets, provisioned OpenRouter keys, Slack workspace tokens, device management and compliance integration credentials, and private network OAuth clients
- Guardrail evidence - The raw values matched by detections on MCP traffic, chat, and hooks, and the tool payloads those detections scanned
- Runtime credentials - The per-deployment keys that authenticate calls into function runners, and the OAuth client secrets and gateway tokens assistants use
OAuth clients that the platform shares across every organization are not owned by any one organization, so they stay under a platform key.
Secrets that only need to be compared, such as API keys, client secrets the platform issues, invitation tokens, and plugin marketplace tokens, are stored as hashes rather than encrypted. Management APIs and the dashboard never return any part of a stored secret: secret environment values and headers come back as a fixed mask, with a flag that says whether a value is set.
Tool-call logs and telemetry are protected by storage-level encryption, and reading them is controlled by the log:read scope.
Organization encryption keys
Section titled “Organization encryption keys”Each organization has its own key hierarchy, built with envelope encryption:

- Key encryption key (KEK) - Each organization has one symmetric key in Google Cloud KMS. Speakeasy creates a dedicated key for the organization, or the organization supplies its own.
- Data encryption keys (DEKs) - The KEK wraps a separate DEK for each kind of data, and the DEK encrypts the data. Rotating or compromising one kind of data’s key leaves the others untouched.
- Bound ciphertexts - Every value is sealed with associated data naming its organization, the kind of data, and the database column it lives in. A value copied anywhere else fails to decrypt.
KMS is called only to wrap and unwrap DEKs, so customer data never travels to KMS. Unwrapped DEKs are held in memory for at most five minutes, so a change to a key takes effect across the platform within minutes.
Organization encryption fails closed. When the KEK becomes unusable, because it was disabled, destroyed, or its access grant was removed, the organization is suspended and every encrypt and decrypt for it stops. There is no fallback to a platform key. An hourly health check probes every organization’s KEK, suspends organizations whose key stopped working, and resumes them once it works again. Key changes, switches, and suspensions are recorded in Audit Logs.
Customer-managed encryption keys
Section titled “Customer-managed encryption keys”An organization can replace the Speakeasy-managed KEK with a symmetric key in its own Google Cloud KMS, including a key protected by Cloud HSM. Speakeasy then cannot read the organization’s protected data without the organization’s key:
- Keyless access - The platform reaches the key by impersonating a service account the organization nominates. No long-lived cloud credentials are stored.
- Verification first - Before a key is used, the platform proves it can encrypt and decrypt a probe payload with it. Verification is rate limited and recorded in the key owner’s cloud audit log.
- Safe switching - Switching to a customer key wraps every DEK under the new key while the previous key keeps data readable. The switch completes after a seven-day grace period, or earlier on request, and rolls back automatically if the new key fails while the previous key still works.
- Rotation - Cloud KMS rotates key versions on the organization’s schedule, and the health check re-wraps DEKs under the new primary version. Individual DEKs can also be rotated; values encrypted earlier stay readable and are re-encrypted under the new key when next written.
- Revocation - Disabling the key or removing Speakeasy’s access suspends the organization. Stored credentials, transcripts, and evidence become unreadable to Speakeasy, and MCP servers that depend on those credentials stop until access is restored.
Customer-managed encryption keys are enabled per organization. Contact Speakeasy to turn them on.
Customer-managed signing keys
Section titled “Customer-managed signing keys”Organizations can also keep the keys the platform signs tokens with in their own Google Cloud KMS. The private key never leaves the KMS. The platform reaches it by impersonating a service account the organization nominates, holds no long-lived cloud credentials, and signs a test payload with the key before publishing it. See External Services and Encryption Keys.
Credential lifecycle
Section titled “Credential lifecycle”When an MCP server connects to a third-party service on behalf of End Users, the platform brokers the OAuth flow. The diagram shows the full lifecycle:

- Consent - After signing in, the End User authorizes the upstream service through its own OAuth consent screen. The platform never sees the End User’s password for that service.
- Storage - The platform receives the upstream access and refresh tokens and seals them under the organization’s own key before storing them, as described in Organization encryption keys.
- Use - Tokens are decrypted in memory only when needed: to attach the access token to a request the gateway forwards to the upstream service, to refresh an expiring access token, to check whether a session must reconnect, or to revoke the grant upstream.
- Revocation - Revoking a session stops the platform from presenting its tokens immediately, and the platform sends an RFC 7009 revocation request to the upstream authorization server’s revocation endpoint.
See User sessions and Upstream credentials for how to configure them.
Agent data handling
Section titled “Agent data handling”Guardrails need to inspect prompts, tool calls, and responses. What the platform keeps after inspection is controlled by the organization.
What is captured
Section titled “What is captured”The Logs page of the organization dashboard controls each category of stored data separately:

- With Enable Logs off, hook events are not stored as tool-call logs, and stored logs cannot be read.
- With Record Tool I/O off, tool-call arguments and results are removed before storage.
- With Agent Session Capture off, prompts and assistant responses are not stored.
See Logging Settings for the full reference.
Where it goes
Section titled “Where it goes”
- Tool-call logs and telemetry are written to ClickHouse.
- Captured agent sessions are stored in PostgreSQL and object storage so they can be shown in Agent Sessions.
- Event notifications between platform services pass through an internal queue that carries identifiers, not prompt or response content.
- Redis holds short-lived data, such as which user an agent session belongs to, with expiries measured in minutes to hours. It is not a long-term store for prompt or response content.
- Data exports forward events to the organization’s own collectors. Prompts, messages, tool arguments and results, and user identifiers are redacted unless the destination is configured to include sensitive data.
Guardrail findings
Section titled “Guardrail findings”When a guardrail detects a secret, PII, or a prompt injection, the finding records the location, length, a partially masked preview, and a keyed fingerprint, not the raw matched value. Raw evidence from MCP traffic, which lets authorized reviewers confirm a finding, is encrypted at the application level and deleted after 90 days.
Secure development
Section titled “Secure development”- Public source code - The platform is developed in a public repository, so its implementation, including the encryption and authorization code described here, is open to review.
- Security review in every change - Pull requests go through human review and automated review against written security rules, including that database queries are scoped to their tenant and that handlers check authorization before touching data.
- Penetration testing - Independent third parties penetration test the platform. Reports are available on request through the Speakeasy Trust Center.
- Retiring unused surface - Code that is no longer part of the product is removed rather than left reachable.
Business continuity and disaster recovery
Section titled “Business continuity and disaster recovery”If the platform experiences downtime, there is no impact to the Customer’s API uptime. MCP servers hosted by the platform will become unavailable, meaning requests from MCP clients to those specific servers will not be processed. For agent hooks, the Fail Open During Outages setting decides whether tool calls proceed or block while the platform is unreachable.
Metadata on customer MCP servers and their tools is stored in Google Cloud SQL with:
- Multi-region replication
- Failover redundancy
- Encrypted connections
Data storage FAQ
Section titled “Data storage FAQ”Does the platform store API or customer data?
Section titled “Does the platform store API or customer data?”By default, the platform processes tool-call traffic in transit and stores only metadata about it.
Customers opt in to storing agent session transcripts, tool call telemetry, and tool call inputs and outputs, each with its own toggle on the Logs page. See Agent data handling.
Can the platform store API secrets?
Section titled “Can the platform store API secrets?”By default, the platform does not store API secrets.
Customers have the option to store API secrets if they choose to use platform-managed authentication and API keys. Stored secrets live in Environments, which are secure, encrypted stores of key-value pairs scoped to the project. When an MCP server uses a managed OAuth flow, End User access and refresh tokens are encrypted before being stored so the platform can complete the flow on the End User’s behalf. See Credential lifecycle.
Which data is encrypted?
Section titled “Which data is encrypted?”All stored data is encrypted at rest by the storage layer. Customer content and credentials, including OAuth tokens, environment secrets, agent session transcripts, and guardrail evidence, are also sealed under the organization’s own key. See At rest for the full list.
Can we hold the encryption key ourselves?
Section titled “Can we hold the encryption key ourselves?”Yes. With customer-managed encryption keys, the organization’s key encryption key lives in its own Google Cloud KMS, optionally protected by Cloud HSM. Revoking Speakeasy’s access to that key makes the organization’s protected data unreadable to Speakeasy.
Can Speakeasy employees read agent sessions?
Section titled “Can Speakeasy employees read agent sessions?”Session transcripts are sealed under the organization’s own key and are readable only by their owner and by members granted chat:read through a custom role. Speakeasy support sessions acting within an organization are blocked from sensitive content, and every transcript open is audit logged.
How long is log data retained?
Section titled “How long is log data retained?”Agent session transcripts, tool-call logs, telemetry, and guardrail findings are retained for 90 days, then age out automatically. Which categories are stored at all is controlled by the Logs page toggles; see Logging Settings.