Security
Reporting a vulnerability
Section titled “Reporting a vulnerability”Email info@lmfoundry.com with a description, the steps to reproduce and the version or commit you tested. Please don’t open a public issue for a vulnerability.
Authentication
Section titled “Authentication”- Users sign in through your identity provider over OpenID Connect (authorization code with PKCE). The local stack ships with Authentik; you can use your own provider.
- Every service validates the bearer token on every request, against the provider’s published keys and the expected issuer.
- A token alone isn’t enough: the caller must be a registered platform user, and a member of the subscription named in the request path.
- Service-to-service calls relay the user’s token, so access checks apply all the way through. System flows such as indexing and crawling use service accounts from an explicit allow-list.
Tenant isolation
Section titled “Tenant isolation”- The subscription is the unit of isolation. One shared filter checks membership before any controller runs; a non-member gets 404, so the API doesn’t reveal what exists.
- Every record carries its tenant and subscription ids, set on the server from the request and never taken from the client. Every query filters on the subscription, and a build-time architecture test fails when code reads a tenant-owned record by id alone.
- Vector search filters on the subscription and the knowledge base; the server names the index, clients never do.
- Files are stored under a per-tenant prefix. Nothing is shared across tenants.
- Knowledge bases and agents are private to their owner by default; sharing is explicit.
Details: Subscriptions and tenants.
Grounded agents
Section titled “Grounded agents”Strict grounding is enforced on the server. For an agent chat the client sends only the agent’s id and the conversation; the prompt, retrieval and tools come from the stored agent, which is loaded with the caller’s own token. Strict agents have no tools, must cite their sources, and refuse when the sources don’t answer.
Server-side request forgery (SSRF)
Section titled “Server-side request forgery (SSRF)”The platform fetches URLs in two places: the website crawler and the fetch-page built-in tool. Both block requests to internal networks.
Blocked addresses (one shared list): loopback, private ranges (RFC 1918), link-local including cloud metadata endpoints, carrier-grade NAT (100.64.0.0/10), 0.0.0.0/8, multicast, and the IPv6 equivalents, including IPv4-mapped forms.
Website crawler
- Crawls only domains the subscription has verified (DNS TXT record, meta tag or well-known file), and stays on the verified hosts.
- The address check runs on the connected socket’s IP, so DNS rebinding and redirects to internal addresses are blocked. Redirects aren’t followed directly: their targets are filtered like any other link.
- Verification checks themselves go through a hardened HTTP client with the same block list and a 512 KB cap.
robots.txtis always honoured, with a delay between requests to the same host, a 10 MB response cap and a 15-second timeout.- The crawler connects before it refuses an internal address, so a production deployment should also restrict the crawler’s network egress (for example with a Kubernetes NetworkPolicy).
Fetch-page tool
- Resolves DNS itself, rejects blocked addresses, and pins the resolved address for the connection; every redirect is checked again.
- Honours
robots.txt, caps responses at 5 MB and is rate-limited.
The development settings that relax these checks for the local fixture site refuse to run outside the local profile. See Configuration.
Secrets
Section titled “Secrets”- Keep secrets out of the repository: services read them from environment variables, and the local
.envfiles are git-ignored. - Tool API credentials are stored with the tool definition today; moving them to a vault is accepted and pending (ADR-0004).
- The local stack’s accounts and keys are public development defaults. Never use them outside your own machine.
Data and models
Section titled “Data and models”When you self-host with local models, prompts, documents and answers stay on your infrastructure. With a hosted model provider, the prompt and the retrieved passages are sent to that provider, under your agreement with them.