Skip to content
Status

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.

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
AICPA SOC for Service Organizations badgeISO 27001 Information Security Management Certified badge

Speakeasy is affiliated with The Linux Foundation, the Cloud Security Alliance, and the Agentic AI Foundation.

The Linux Foundation logoCloud Security Alliance logoAgentic AI Foundation logo

The diagram below shows the full stack and how traffic moves between clients, the platform, and external services.

AI Control Plane architecture in three zones. Clients: the dashboard and CLI over REST, agent clients such as Claude Code, Cursor, and Codex over MCP with HTTP and SSE, and agent hooks sending prompts, tool calls, and events. Speakeasy cloud, multi-tenant: the API server, which checks scopes before any data access, and Temporal workflows for deploys, cleanup, and usage; the MCP gateway, which accepts platform-issued tokens bound to one organization and sends traffic to Guardian for prompt injection, PII, secret, and egress allow-list checks; function runners with one app and private network per deployment; and telemetry ingest for hook events and OTLP. Data stores, encrypted at rest: PostgreSQL, Redis, ClickHouse, and object storage. External: identity providers (WorkOS and the organization identity provider, with SSO, SCIM, and ID-JAG), remote MCP servers reached through the egress allow-list, SaaS APIs authenticated with OAuth or API keys, and customer collectors receiving data exports that are redacted unless sensitive data is enabled.

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.

  • 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.
  • 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.

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.

  • 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
  • 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

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:

Tenant isolation layers. A request from an agent, a member, or an API key passes four layers. Authenticate: a token or session bound to exactly one organization, through SSO, Directory Sync, or API keys stored as SHA-256 hashes. Authorize: scopes checked before data access; chat and log are in no default role. Scope: every query filters by organization or project ID, with tenant-qualified foreign keys, and other tenants' IDs return not found. Protect: customer content and credentials sealed under the organization's own key, on top of storage-level encryption on every data store. The result is only the caller's organization's data. Alongside: custom function code runs on dedicated machines with one app and one private network per deployment and no persisted root filesystem, and other members' sessions and raw logs need scopes no default role includes, with every transcript open audit logged and support sessions blocked from sensitive content.

  • 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.

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.

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.

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:read and log:read scopes, 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.

All traffic to and from the platform uses TLS. HTTPS is the standard protocol for all MCP servers hosted by the platform.

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:

Encryption by kind of data. In transit: TLS on every connection to the platform and on every hosted MCP server. Organization keys, AES-256-GCM sealed under the organization's own key: OAuth tokens and client secrets, environment secrets and secret headers, agent session transcripts, AI provider and integration credentials, guardrail evidence, and function runner and assistant credentials. Hashed, compared and never stored in plain text: API keys (SHA-256), client secrets the platform issues, platform session refresh tokens, invitation and device join tokens, and plugin marketplace tokens. Storage-level, cloud provider encryption at rest: tool-call logs and telemetry, configuration and metadata, and function bundles and assets. Storage-level encryption also covers every value sealed or hashed in the application.

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.

Each organization has its own key hierarchy, built with envelope encryption:

Organization key hierarchy. A key encryption key (KEK) in Cloud KMS, either Speakeasy-managed or customer-managed, possibly Cloud HSM-protected, wraps one data encryption key (DEK) per kind of data: OAuth credentials, environment secrets, agent session transcripts, AI provider keys, integration credentials, guardrail evidence, and runtime credentials. Each DEK seals values with AES-256-GCM, and every ciphertext is bound to its organization, kind of data, and database column. KMS is called only to wrap and unwrap DEKs; unwrapped DEKs are cached in memory for at most five minutes. When the KEK becomes unusable, the organization is suspended and every encrypt and decrypt fails closed, with no fallback to a platform key. An hourly health check probes every KEK.

  • 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.

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.

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.

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:

Credential lifecycle across the MCP client, the Speakeasy MCP gateway, and the upstream service. 1, connect: the client connects without credentials and the gateway answers with an OAuth challenge. 2, sign in: the End User signs in through Speakeasy identity, the organization identity provider, or ID-JAG. 3, consent: the End User approves on the service's consent screen, and the platform never sees the service password. 4, store: access and refresh tokens are returned and sealed under the organization's key before storage. 5, issue: the client receives a platform-issued token, and upstream credentials never reach the client. 6, call: tool calls carry the platform token and are authenticated, authorized, and checked by guardrails. 7, forward: the gateway decrypts the access token in memory for that request and forwards it. 8, refresh: expiring access tokens are refreshed and new tokens are sealed before storage. 9, revoke: revoked sessions stop immediately and an RFC 7009 revocation is sent upstream.

  • 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.

Guardrails need to inspect prompts, tool calls, and responses. What the platform keeps after inspection is controlled by the organization.

The Logs page of the organization dashboard controls each category of stored data separately:

The Logs settings page with storage toggles for logs, skill content, tool I/O, agent session capture, fail-open, and browser sign-in

  • 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.

Agent data flow. Agent hooks send prompts, responses, tool calls, and events. On the Logs page, Enable Logs controls tool-call traces and telemetry, Record Tool I/O controls tool arguments and results, and Agent Session Capture controls prompts and assistant replies; switched off, the category is not stored. Tool-call logs, telemetry, and tool I/O are stored in ClickHouse and retained 90 days, and with Record Tool I/O off, arguments and results are removed before storage. Agent session transcripts are sealed under the organization's key, stored in PostgreSQL and object storage, and retained 90 days. Guardian scans inline before the verdict for prompt injection, PII, and secrets, and guardrail findings keep a masked preview and keyed fingerprint for 90 days, with raw evidence encrypted. Data exports redact sensitive fields by default, and reading other members' sessions requires chat.

  • 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.

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.

  • 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.

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

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.

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.

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.

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.

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.