Security

How we protect your agents' traffic

kepalai sits between your agents, so it has to be the most careful part of your stack. This page lists the controls running today, in plain terms, so your security team can check them against their own requirements.

Questions or a questionnaire to fill in: security@kepalai.com

At a glance

  • Hosted on Hetzner in Singapore. HTTPS everywhere.
  • Secrets encrypted with AES-256-GCM. Passwords hashed with scrypt. API keys and tokens stored only as SHA-256 hashes.
  • Every forwarded call carries a short-lived ES256-signed token your agents can verify.
  • Default deny, human approvals and a kill switch. New workspaces start in shadow mode.
  • A hash-chained audit log you can verify from the dashboard.
  • We never run your models and never forward your callers' credentials.

Hosting and data location

  • The hosted service runs on servers we rent from Hetzner in Singapore. The application and its PostgreSQL database are in the same location; the database lives on a dedicated volume attached to the server.
  • A firewall drops all inbound traffic except HTTPS (and HTTP, which only redirects to HTTPS), plus SSH from our administrators' addresses. The application and the database are never exposed directly; the database is reachable only from the application.
  • At startup the server refuses configurations that would be unsafe in production: a missing encryption key or database, a non-HTTPS public address, trusted localhost origins, or the private-address checks turned off.
  • Enterprise customers can run kepalai in their own cloud account or data centre.
  • The companies that process data for us, and where, are listed in our subprocessor list.

Encryption

In transit

All traffic to kepalai.com and app.kepalai.com uses HTTPS. Certificates come from Let's Encrypt and are renewed automatically by Caddy, our web server. HTTP Strict Transport Security (one year, including subdomains) tells browsers never to connect without encryption. The connector, which reaches agents inside your network, opens an outbound encrypted WebSocket to us, so you open no inbound firewall ports.

At rest

Secrets are encrypted in the application with AES-256-GCM before they reach the database: the credentials kepalai uses to call your agents, your Anthropic API key, and the private keys that sign hop tokens. The encryption key is kept outside the database. The API never returns a secret after you save it; the dashboard shows only that one is set, or its last four characters.

Passwords, keys and tokens

  • Passwords are hashed with scrypt and a random salt per user. Ten characters minimum. Changing or resetting your password signs you out everywhere else.
  • Sessions use a random 256-bit token in an HttpOnly, Secure, SameSite=Lax cookie. We store only its SHA-256 hash, so a copy of our database cannot be used to sign in. Sessions last 30 days, and you can sign out of every device at once.
  • API keys for users, services and agents are shown once when created. We keep a SHA-256 hash and a short prefix so you can tell keys apart. Revoking a key takes effect on the next request.
  • Connector tokens are stored the same way and can be rotated, which disconnects the running connector immediately.
  • Coding tool connect commands contain a one-time token that expires after one hour and works once. Each machine then gets its own agent key, stored on that machine in a file only its user can read.
  • Email links for address verification (24 hours), password reset (1 hour) and invitations (7 days) work once and are stored only as hashes. An invitation can only be accepted by an account with the email address it was sent to.

The gateway

  • Default deny. A call goes through only if one of your policies allows it. Deny rules win over approval rules, which win over allow rules.
  • Shadow mode. New workspaces start in shadow mode: kepalai records the decision it would make for each call but blocks nothing, so you can check your rules on real traffic before you enforce them.
  • Signed hop tokens. Every call kepalai forwards carries a JSON Web Token signed with ES256, bound to the receiving agent, the task and the call, and valid for at most five minutes. Public keys are published at https://app.kepalai.com/.well-known/jwks.json, so your agents can check that a call really came through kepalai.
  • Your callers' credentials stop at the gateway. Incoming Authorization headers, cookies and kepalai's own headers are never forwarded to your agents.
  • Limits that travel with the task. Each task has limits on depth, fan-out, number of calls, deadline and budget, and repeated identical calls are stopped as loops. A kill switch stops a whole task or disables an agent at once.
  • Human approvals. Risky calls can wait for a person. An approval nobody answers expires, after one hour by default, and the call is denied.
  • No requests to private networks. kepalai checks the address of every agent endpoint, import URL and health check when you save it, and again each time it opens a connection: host names are resolved and the connection is refused if any address is private, loopback, link-local (including cloud metadata) or reserved. Redirects are checked the same way, and credentials are dropped when a redirect leaves the original site. So the gateway cannot be turned against our own network. Agents inside your network are reached through the connector, which only calls the hosts you list in its allowlist.
  • Size limits. Gateway requests are capped at 10 MB, and dashboard and API requests at 1 MB (5 MB for bulk imports), before any code reads them.
  • We do not run your models. Your agents call their own models with their own keys. With the Anthropic integration, sessions run in your own Anthropic workspace under your key.

Audit log

Every change to configuration (agents, policies, keys, settings, members, plan), every approval decision and every killed task is written to your workspace's audit log. Each entry includes the hash of the one before it, so any entry that is changed or removed breaks the chain. You can verify the whole chain from the dashboard at any time, and on Team plans and above export it as CSV or JSON. Secrets are never written to the audit log. Audit entries are kept for at least 365 days.

Access control

  • Each workspace has three roles. Owners and admins can change configuration, manage members, keys and billing. Members can see the workspace and decide approvals.
  • Every database query for workspace data is scoped to that workspace.
  • Members join only through an invitation from an admin. Inviting members and starting a paid plan both require a verified email address.
  • Agent keys can only call the gateway, not the management API.
  • Dashboard requests that change something are checked against the site they came from, in addition to SameSite cookies, to stop cross-site request forgery.

Rate limits and abuse

  • Sign-in attempts are limited per IP address and failed attempts per email address, so a password cannot be guessed and you are not locked out by your own correct sign-in.
  • Sign-up, password reset and every action that sends email are rate limited, so nobody can use kepalai to flood an inbox.
  • The gateway limits each caller-to-agent pair to 20 requests a second (bursts up to 40) and answers 429 beyond that.
  • Connector connections that have not authenticated are capped per IP address and in total, and closed after five seconds without a valid handshake.

Browser protections

The dashboard and this site are sent with a strict Content Security Policy: scripts only from our own origin and no inline scripts, no plugins, no framing by other sites, and no connections to other origins. We also send X-Frame-Options: DENY, X-Content-Type-Options: nosniff, a strict Referrer-Policy and a Permissions-Policy that turns off the camera, microphone, location and payment APIs. API responses carry a policy that stops browsers from rendering or framing them as a page. This site loads no third-party scripts, trackers or fonts.

Backups and retention

  • The database is backed up every night. Backups are kept for 14 days and readable only by the backup account, and a copy is kept off-site.
  • Hetzner takes a daily image of the server, and the last 7 are kept.
  • Call traces are deleted automatically after your plan's retention period: 7 days on Free, 14 on Starter, 30 on Team, 180 on Business. Audit entries are kept for at least 365 days.
  • Request and response bodies are stored truncated to 16 KB. Streamed responses are passed through and not stored.

Certifications

kepalai does not hold SOC 2, ISO 27001 or other security certifications today. We would rather tell you that than imply otherwise. If your procurement process needs evidence, email security@kepalai.com: we answer security questionnaires and can walk your team through the controls on this page. Enterprise customers who need full control can run kepalai in their own environment.

Report a vulnerability

If you think you have found a security problem in kepalai, please tell us at security@kepalai.com. Our contact details are also published at /.well-known/security.txt.

What helps us

  • What you found, where, and what an attacker could do with it.
  • Steps to reproduce it, with the requests you sent, and any proof-of-concept code.
  • How we can reach you, and whether you would like to be credited.

What you can expect from us

  • We acknowledge your report within 3 business days and tell you what we think of it within 10 business days.
  • We keep you updated while we fix it, and tell you when it is fixed.
  • We credit you publicly once it is fixed, if you want us to.
  • We do not run a paid bug bounty at the moment.

Rules for testing

  • Test only against workspaces you created yourself. Never access, change or delete other customers' data; if you come across any, stop and tell us.
  • Do not run denial-of-service or load tests, send spam, or test our offices, staff or providers (including social engineering and physical attacks).
  • Do not point the gateway, imports or the connector at systems you do not own or have permission to test.
  • Give us a reasonable time to fix the problem, normally 90 days, before you share details publicly, and agree the date with us.

If you act in good faith and follow these rules, we will not take legal action against you or ask anyone else to, and we will treat your research as authorized.