Skip to content

Security and privacy

Your keys, your infrastructure, your audit trail

The self-hosted edition runs inside your network. Provider credentials can be read from your secret manager at runtime, request logs stay in your database, and no telemetry is sent to us.

Controls

What ships in the gateway

AreaControls
Supply chain
  • Releases are published only from a release tag signed by a maintainer
  • The gateway ships only as compiled container images, and a release stops if any Spanway source file remains in an image
  • Every container image, Helm chart and client package is signed with cosign and carries an SPDX SBOM
  • Releases are signed with a key that never leaves a cloud key management service, and its public key is attached to every release
  • New Python dependency versions wait at least 7 days and npm versions at least 3 days before we take them
  • Every gateway image (proxy, gateway, backend, migrations and Admin Assistant) ships compiled code on a root filesystem with no shell or package manager, runs as an unprivileged user and supports a read-only root filesystem
  • Pinned base images and dependency lockfiles
Identity
  • A gateway without a master key refuses every request instead of letting callers in, unless the local test override is set
  • SSO through OIDC and SAML providers
  • JWT authentication for service-to-service traffic
  • Role-based access with custom roles from a permission catalogue
  • SCIM provisioning and deprovisioning of users and teams
  • IP allow-lists with IPv4 and IPv6 CIDR ranges for the whole gateway and for each key, team and organization, with Enterprise
  • Route allow-lists per key
  • Password rules, sign-in lockout and two-factor sign-in with an authenticator app for local users
  • Admin UI sessions live in an HttpOnly cookie that page scripts cannot read, and an expired session is reported as expired instead of as a malformed key
  • Two-factor sign-in required by organization, organization SSO and the key hygiene report, with Enterprise
  • A leaked virtual key reported to the gateway is blocked at once and its owner is emailed, and with Enterprise every key can have a maximum lifetime
Audit
  • Every management change is recorded with who made it and the values before and after
  • Rows are hash-chained, and GET /audit/verify reports the first row that was edited, removed or inserted
  • Secrets are redacted before a row is written
  • Every request inspector dry run writes a row without the messages, and every admin MCP tool call writes one that names the client behind it
  • Rows stream to Microsoft Sentinel, S3, Azure Storage or any HTTPS endpoint, with an optional HMAC signature on the webhook
Guardrails
  • PII detection and masking on requests and responses
  • Prompt injection screening before the request reaches a model
  • Secret detection to stop credentials leaving in prompts, with Enterprise
  • Guardrail policies attached by team, key, model or tag in every tier, and guardrails set directly on keys and teams with Enterprise
  • Calls to unregistered MCP servers blocked, and outbound MCP calls signed with a gateway JWT
  • Audit mode runs a new policy on live traffic without blocking anything, and replay counts what it would have done to recent requests
Evals and red teaming
  • Datasets of prompts with expected answers and retrieval context
  • Datasets sampled from production logs, rerun on a schedule with regression alerts
  • Run every item across the models you serve and see pass rate, latency and cost per model
  • Run a dataset through a specific version of a managed prompt before it ships
  • Deterministic checks and LLM-judged metrics for relevancy, faithfulness and safety
  • Shadow eval verdicts on live traffic, read next to offline runs
  • Conversation and agent evals, your own scorers, run comparisons and pull request gating
  • Online scoring of a sample of live traffic, and human review that calibrates the judge
  • Red-team runs that probe a model for injection, leakage and bias before it ships, with a CVSS severity for every finding
Secrets
  • Provider credentials read from your secret manager at runtime. Google Secret Manager, HashiCorp Vault and CyberArk need Enterprise
  • Stored credentials encrypted with a salt key
  • Virtual keys are hashed at rest, and with Enterprise can be regenerated without losing their settings
Residency
  • Runs entirely inside your network and your cloud accounts
  • A residency policy for EU, UK, Switzerland, US, Canada or APAC that reports any deployment or end user outside the allowed region
  • No telemetry and no phone-home
  • Air-gapped mode turns off optional fetches such as the price map refresh and uses bundled copies
  • An egress allowlist refuses connections to hosts you did not list. It checks hostname lookups, so direct IP connections are not covered
Compliance
  • A control catalogue mapped to GDPR, UK GDPR, CCPA/CPRA, HIPAA, EU AI Act, SOC 2 and ISO 27001 control families, and more
  • Data subject export, and erasure that deletes the person's stored credentials, memories, MCP secrets and SSO identity
  • Erased ids in spend logs are replaced with a stable pseudonym, so usage totals stay correct
  • Retention periods for spend logs, audit logs, health checks, router sessions and memory, with scheduled purges
  • A data map of every database table that says what it holds, whether it can hold prompts or personal data and how to purge it
  • Checksummed evidence bundles mapped to ISO/IEC 42001 clauses and SOC 2 criteria for your auditors. They are input for your own assessment and certify nothing on their own
  • Audit rows are hash-chained, checked with GET /audit/verify and delivered to your SIEM over a webhook that can be HMAC-signed. Audit logs
  • With Enterprise, IP allow-lists with CIDR ranges apply to the whole gateway and to each key, team and organization, and a request must pass every list that applies. Route allow-lists limit what each key can reach. IP and route allow-lists
  • Password rules, sign-in lockout, two-factor sign-in with an authenticator app and recovery codes, and the reverse proxies trusted for client addresses. Requiring two-factor sign-in for an organization needs Enterprise. Security settings
  • Every gateway image (proxy, gateway, backend, migrations and Admin Assistant) ships the gateway code compiled into native modules on a root filesystem with no shell and no package manager, runs as an unprivileged user and supports a read-only root filesystem with tmpfs scratch mounts. Container images
  • For teams that must use FIPS validated cryptography, the spanway-ai-fips image runs all encryption, hashing and TLS through the OpenSSL FIPS provider 3.1.2 (FIPS 140-3 certificate #4985), refuses algorithms the FIPS policy does not approve, and proves it with a built-in self-check. FIPS 140-3 image
  • Read credentials from AWS, Google Cloud, Azure, HashiCorp Vault or CyberArk. Google Secret Manager, HashiCorp Vault and CyberArk need an Enterprise license. Secret managers
  • Retention, residency reporting and enforcement, and data subject export and erasure. Compliance
  • Evidence bundles map gateway settings to ISO/IEC 42001 clauses and SOC 2 criteria for your auditors, with a SHA-256 checksum. They are input for your own assessment and do not certify anything. Compliance evidence export
  • With Enterprise, the key hygiene report finds keys nobody has used, keys that never expire and other risks, and can give unused keys an expiry date. A maximum key lifetime gives every key an end date, an organization can set a stricter one, and owners get an email 30 days and 1 day before a key stops working. Admins set the policy on the Key hygiene page of the Admin UI, and an organization's lifetime in its settings. Key hygiene
  • Anyone who finds a leaked virtual key, a secret scanner included, can report it to a public endpoint, and the gateway blocks the key at once, logs who reported it and from where, alerts your team and emails the owner. With audit logging on, the block is also kept as an audit row. The answer is the same whether or not the key existed, so the endpoint cannot be used to test keys. Leaked keys and key expiry
  • The database tables page lists every table the gateway keeps, what it holds, whether it can hold prompts or personal data, how long rows are kept and how to purge them, so a privacy review does not need the schema. Database tables
  • Each organization can bring its own OIDC or SAML identity provider, picked by verified email domain, with its own SCIM token. Organization SSO
  • Requests from coding tools can be kept on deployments that keep nothing or run on your own servers. Code traffic
  • One switch turns off the optional update fetches listed in the docs. Air-gapped deployment
  • List the hosts the gateway may reach in general_settings.egress_allowlist, and it refuses to connect anywhere else. The check runs when a hostname is looked up, so a connection made straight to an IP address is not covered. Keep a firewall or network policy as the outer boundary. Egress allowlist
  • The gateway will not start without a master key, with an empty one or with a publicly known example key. If it ever runs without one, it refuses every request instead of letting callers in. The only exception is a local development override, which accepts every request and is meant for throwaway tests only. Master key
  • The interactive API docs, the OpenAPI document and the route list answer 404 to anyone who has not signed in, so a scanner cannot tell what runs on the address. No answer an anonymous caller sees carries a stack trace, the exact version or a server name, and the Admin UI ships without source maps. API docs and build details
  • Public pages such as the model catalogue, the price list and the status page answer 429 once one address asks for them too often, 120 times a minute by default, so nobody can copy them in bulk. The compiled code carries no debug symbols, build paths or embedded notes, and every Enterprise license carries a fingerprint that traces a leaked copy back to its deployment. Copy protection

Verifiable releases

Check that what you install is what we built

A release is only published from a release tag signed with a maintainer's signing key. The release workflow checks the signature against the list of release signers before it builds anything, and only repository administrators can create or move a release tag. The gateway ships only as container images with its code compiled inside, the same image for Starter, for Enterprise and for Spanway Cloud. Before an image is tagged or signed, the release exports its filesystem and stops if any Spanway source file remains, and no gateway package is ever published to a package index.

Every container image, Helm chart and client we ship is signed with cosign and comes with an SPDX SBOM that lists what is inside it. The signing key is held in a cloud key management service and never leaves it, and its public key is attached to every release, so your team pins that key once and verifies every release against it. New versions of the Python packages we depend on wait at least 7 days and npm packages at least 3 days before we take them, which gives the wider community time to catch a bad release first.

The container images docs have the commands your team runs to check signatures, SBOMs and the attached public key, and the release cycle docs describe how the signing key is held and checked. All of this comes with the free Starter tier.

Data handling

Where your data lives

Self-hosted

The gateway, its Postgres database and its optional Redis all run in your own accounts. Prompts, responses and spend records stay in your environment, apart from the requests you send to the model providers you configure and the logging destinations you turn on yourself. By default the gateway and Lens keep only metadata such as model, tokens, cost and timing. Prompts and responses are kept only when you turn on prompt storage, and never for a key, team or organization that requires zero data retention.

No telemetry

There is no usage reporting, no crash reporting and no phone-home. By default the gateway fetches a few optional updates, such as the model price map. Setting SPANWAY_AIRGAPPED=true turns off the fetches listed in the air-gapped docs, including the breached-password lookup for new passwords, serves the bundled copies and reports the mode on /health/readiness. A connected gateway can turn the breached-password lookup off on its own with password_policy_check_breached_passwords: false.

Retention and erasure

With Enterprise, retention periods for spend logs, audit logs, health checks, router sessions and memory purge on a schedule you set. Erasure deletes a person's stored credentials, memories, MCP secrets and SSO identity, and replaces their id in spend logs with a stable pseudonym so usage totals stay correct. It also deletes the copies Lens keeps, and a request Lens could not finish is recorded as partial instead of complete. Every data subject request, including refusals, is recorded.

Spanway Cloud

On the hosted edition each workspace is its own organization, with its own teams, keys and budgets. Provider keys you bring are encrypted at rest and only ever shown masked, and changes to your workspace are written to the audit log. Passwords and verification links are stored only as hashes, new passwords are checked against known breaches, and sign-up is rate limited. Payments are handled by Stripe, so card numbers never reach us. When a workspace closes, its sign-up email, company and billing address are blanked 90 days later, unless a sanctions hold requires keeping them.

This website

The site is plain static files. It sets no cookies and loads nothing from other domains. A strict content security policy allows only scripts whose hashes are known at build time, and every page is served over HTTPS with HSTS. Regions under comprehensive sanctions get an HTTP 451 notice instead.

Responsible disclosure

Reporting a vulnerability

If you believe you have found a security issue in Spanway or this website, email technology@spanway.ai with the affected version, steps to reproduce and any proof of concept. We acknowledge reports within two business days and keep you informed while we work on a fix.

Once we confirm a report, our target is a fix within 7 days for critical issues, 30 days for high and 90 days for medium, counted from the day we confirm it. These are targets and not a guarantee, and if a fix will take longer we tell you why.

Please give us reasonable time to address the issue before disclosing it publicly, and do not access data that is not yours or degrade the service of others while testing. Test only against your own self-hosted gateway or your own Cloud workspace, and do not run load tests or automated scans against Spanway Cloud. We will not take legal action against research done in good faith within these rules.

Our contact details are also published in machine-readable form at /.well-known/security.txt.

Licensing

How Spanway is licensed

Spanway is licensed commercially. The Starter tier is free to self-host and needs no license key. Enterprise features are part of the same distribution and are enabled by a license key issued under your agreement with Spanway.

Third-party components included in the product and their licenses are listed in the product's license notices, which ship with every release. The End User License Agreement and the Master Subscription and License Agreement set out the terms.

Run it yourself. Start today.

Start the gateway, track and cap spend on every request, and add SSO, audit logs and custom SLAs when it goes org-wide.

Request the free install guide

Starter is free with no license key. A short form emails hello@spanway.ai from your mail app and we reply with the install guide for your setup.

Contact sales

Opens a short form that emails sales@spanway.ai from your mail app. No commitment.