Security model

What SpicaAI does with your provider keys, your prompts and your money — stated plainly.

Provider keys

  • Each key is encrypted with its own data key (AES-256-GCM). Data keys are wrapped by a versioned master key held outside the database.
  • A key is decrypted only in memory for the provider call that needs it. It is never returned by the API, shown in the app or backoffice, written to logs, queued in background jobs or included in receipts.
  • Revoking or rotating a key destroys its wrapped data key, so old ciphertext cannot be decrypted again.

Funding boundaries

  • New workspaces are BYOK only. Requests run on the workspace's own connections that its applications are granted.
  • If no granted connection works, the request is blocked with an explicit error. It is never retried on a key Spicanet pays for.
  • This is checked again at the moment of the provider call, not only when the route is planned.

Applications and API keys

  • API keys are shown once and stored only as a SHA-256 digest. Each key has scopes and an optional expiry and rate limit.
  • Service grants decide which connections, projects, models, profiles and purposes an application may use, and how much a single request may cost.
  • Dashboard users cannot run inference with their session: only application keys can.

Prompts and outputs

  • Synchronous requests are not stored. Receipts keep a digest of the input, never the text.
  • Background jobs keep their payload encrypted and delete it after the retention window.

Audit

  • Changes to connections, keys, grants, budgets, members and workspace settings are recorded with actor, time and request id.
  • Staff actions in the backoffice require a written reason and are audited the same way.

Found a vulnerability? Write to [email protected].