Security

Secrets that cannot be read back or exfiltrated

Ambient credentials are the single highest-yield target in modern cloud applications. When API tokens live in environment variables or mounted files alongside unrestricted outbound networking, a single coding mistake, diagnostic log dump or poisoned dependency turns into immediate credential theft. Escape's scan of 5,600 prompted applications found more than 400 exposed secrets, each granting an attacker direct authority at the issuing payment, email or model provider.

Ferrite removes ambient credential exposure by construction and by default across every application, with nothing to assemble. Secrets are write-only, stored sealed, absent from files and environment variables, attached at the egress gateway or scoped through execution context, and constrained strictly to the outbound URL prefixes declared in ferrite.json.

Write-only storage with no read-back path

A founder or coding agent writes a secret once by name through the ferrite CLI or hosted MCP tools. Ferrite seals the value at rest immediately. Once written, listing commands return secret names alone, and no CLI command, MCP tool, API endpoint, log stream or dashboard screen ever returns a plaintext value.

Applications on Ferrite have no environment variables and no host file system, closing the secondary leak paths that expose secrets through crash traces, misconfigured debug endpoints, open browser sessions or accidentally committed .env files. Updating a credential writes a fresh sealed value in place of the old one without ever revealing either.

Gateway-attached delivery and scoped runtime access

Credential delivery follows least privilege down to the process boundary. On outbound calls through Ferrite's egress gateway, declared provider credentials attach directly at the gateway boundary on matching requests so third-party tokens stay outside application memory altogether. Where application logic requires direct access to a secret value, such as validating HMAC webhook signatures or brokered session tokens, the platform unseals that application's secrets at deploy time exclusively into its own execution context, isolating them from every other application and account.

Vendored Ferrite packages compile directly into the application binary and execute inside the exact same manifest and egress rules. Adding sign-in, payments or email introduces zero ambient credential access and zero undeclared network paths.

Egress confinement bounds where every credential can travel

Even when application code holds a secret in its runtime context, the process possesses no raw sockets and no independent network route. Every outbound call passes through Ferrite's egress gateway, which enforces literal character-by-character URL-prefix matching against ferrite.json, verifies resolved IP addresses at connect time to refuse loopback, private and cloud-metadata targets, and records every outbound call.

Any request targeting an undeclared URL fails before opening a network connection, regardless of what header or payload it carries. That architectural pairing shrinks credential review to reading the outbound allowlist in ferrite.json (declaration walkthrough). Underneath the gateway, fail-closed kernel containment removes every alternate OS path out of the process, a guarantee engineers can reproduce directly by declaring one destination, calling another and observing connect-time refusal (evidence page).

Rotating and revoking credentials

Secret updates and deletions apply deterministically on the next deployment, which launches a fresh isolated process against the updated sealed secret set while retiring the previous instance.

If an upstream token is exposed outside Ferrite, revoke or replace it at the issuing service, write the new value through the CLI or MCP tools and deploy. Pairing narrow provider-side scopes and revocable tokens with Ferrite's literal-prefix egress allowlist ensures blast radius stays bounded on both sides of the wire.

Containment if platform infrastructure is targeted

Defence in depth extends to the platform's own control plane and storage tier. Secret values remain sealed at rest and unseal strictly for their owning application at deploy time or inside the egress gateway on matching outbound requests. Because no management interface, CLI command or dashboard endpoint exposes a read-back API, an intruder probing control-plane tooling finds no interface to dump plaintext secrets.

Application state rests on encrypted disks inside per-application storage engines reachable only with signed, connection-bound, epoch-revocable capability tokens. On internal links between platform machines, mutual TLS verified against the fleet root certificate authority authenticates every machine before any frame is accepted.

Isolating credentials for AI model providers

Applications calling language models choose between two explicit patterns, both visible in ferrite.json. Routing inference through Ferrite's AI gateway issues the application a revocable Ferrite gateway credential constrained by explicit spending caps, keeping the upstream model-provider credential sealed inside the gateway.

An application can also store its own provider credential as a sealed Ferrite secret and declare the model provider's exact HTTPS prefix in ferrite.json. Under that direct pattern, write-only storage, literal-prefix egress enforcement, gateway logging and kernel containment apply unchanged.

Continuous security review of the credential path

Ferrite's runtime, control plane, egress gateway and package layer are reviewed continuously with automated security-review tooling, multi-vendor security-specialised models and independent internal code reviews outside the authoring team. Every finding is recorded with dated remediation evidence and locked under regression tests, alongside adversarial test suites verifying egress enforcement, secret isolation and fail-closed containment on every release.

Tracing a credential end to end

Every credential follows one deterministic five-step path whose configuration lives in ferrite.json and whose outbound activity is logged centrally:

  1. A founder or coding agent writes the secret once by name via the CLI or MCP tools, and Ferrite stores it sealed with zero read-back path.
  2. ferrite.json declares the required secret name alongside the exact HTTPS URL prefixes the application is permitted to call; the plaintext value never enters source, manifests, files or environment variables.
  3. At deployment, the platform binds the sealed credential either for direct gateway attachment on matching requests or inside the isolated execution context of that single owning application.
  4. When the application invokes a declared external service, the request travels over the application's single outbound path to the egress gateway.
  5. The gateway verifies the destination against declared literal URL prefixes and connect-time IP checks, attaches gateway-managed credentials where configured and logs the call, refusing any undeclared address before opening a socket.