Skip to content

Data & secrets

This page describes where sensitive data lives in Crios and how it is protected: credentials, passwords, tokens, project data, and the boundaries between projects and organizations. For the execution boundary around agents, see sandbox isolation.

Credentials in HashiCorp Vault

AI provider API keys and connector credentials (GitHub, Slack, Jira, workflow credentials, and others) are stored in HashiCorp Vault, not in the platform database. Provider keys are stored per organization, since each organization configures its own providers. Credentials are write-only from the UI: you can set, replace, or remove one, but its value is never displayed again after you save it.

Credentials stay out of sandboxes. All LLM traffic is routed through the platform, so agents never receive provider keys, and skills and connector tools run on the platform rather than in the sandbox, so their credentials never reach it either.

Two databases, one boundary

Crios keeps its own records and your projects' data on separate database servers:

  • The control-plane database (PostgreSQL) holds the platform itself: organizations, users, projects, the Knowledge Base, the audit log, and workflow state. Only the platform's own services connect to it.
  • Project databases run on a separate server, or on dedicated per-project instances where the deployment runs them. Every project gets its own database with its own login. This is the project's managed store: the app you build uses it, and so do the platform features that keep data for the project (managed data stores, collectors, workflow memory). Its credentials live in Vault and appear as the project's connections Project database, Project database (sandbox) for the development copy where the deployment keeps a separate one, or Project database: <name> for a named store. A project owner can make their own server the app database instead; it appears as App database (BYO).

The rule between them is absolute: no project, workflow, or sandbox is ever given a credential that reaches the control-plane database. Every database credential Crios issues to a project is scoped to that project's own database. See project databases for how projects use their databases.

Crios also keeps its internal database coordinates out of your repository. A commit that would add internal database names, logins, or hostnames is blocked, and the agent is told to read connections from runtime environment variables such as DATABASE_URL instead. A plain git clone of your project runs anywhere.

Accounts and authentication

  • Passwords are hashed with Argon2id, a modern memory-hard algorithm; plaintext passwords are never stored.
  • MFA uses TOTP (authenticator apps) plus eight single-use backup codes generated at enrollment. Admins can require MFA; see SSO & MFA.
  • Session tokens are signed JWTs with bounded lifetimes, paired with rotating refresh tokens. By default, five failed sign-in attempts lock the account for 15 minutes.
  • SSO via OIDC is available for organizations that centralize identity (SSO & MFA).

Personal access tokens

Tokens for the REST API and MCP are:

  • Shown once. Only a hash is stored, so the token value appears exactly once, at creation. Copy it then.
  • Scoped. A token grants full access or only the resource scopes you pick, and can be bound to a single project. Full access still excludes the admin API and credential management.
  • Pinned to one organization. A token works only in the organization it was created in, and acts with your role there. If you leave that organization, the token stops working.
  • Expiring and revocable. Set an expiry of up to 730 days at creation; revoke any token at any time from your settings, effective immediately.

Connected apps

Where the deployment enables it (self-hosted setup), AI clients such as Claude or ChatGPT can connect to the MCP server by signing in to Crios as you through OAuth, without a personal access token.

  • You approve each app. The sign-in opens a Crios page that says the app wants to connect to Crios. An app your organization registered is named by its registered name; any other app is named by its web address, and the name it gives itself is marked as not verified by Crios. The page shows the Organization the app will work in, your active one, and lets you set its Project access: All projects, or one project. Then choose Approve or Deny. For an app that runs on your own computer, approve only if you just started the sign-in from your AI client: any local program could claim to be it.
  • It acts as you, never as an administrator. The app works with your role in that organization, under the same rules as a full-access personal access token, and whatever your role it never reaches organization or instance administration, your account settings, your API tokens or your connected apps. Limited to one project, it can list that project and run its builds, sessions, previews and publishing, but cannot use Knowledge, Workflows, Agents, Connectors or Skills.
  • Short-lived access. An access token lasts one hour. If the app asks to Stay connected without asking you again (until you revoke it), which the page lists under This app will be able to, approving lets it renew its access on its own until it goes unused for 30 days, or 90 days after you approved it at the latest; then it asks you again. Each renewal replaces the app's refresh token, and if a replaced one is ever presented again, Crios takes it for a stolen copy and revokes the app's access.
  • Revocable. Settings → Connected apps lists the apps signed in as you, with the Project each is limited to and when its access expires. Revoke signs an app out at once. Changing or resetting your password signs every connected app out, and revokes your personal access tokens too.

Organization owners and admins register OAuth clients for apps that bring their own client ID under Organization → Connectors → OAuth clients. Deleting a client revokes every connection made with it.

Project environment variables

Projects carry environment variables that agents and published apps use at runtime: database URLs and third-party API keys for the app being built. Values are stored in Vault, and variables marked Sensitive are write-only: once saved they can be replaced but not read back. They are delivered into a session's sandbox once, at startup, straight from Vault, under a project-specific identity that can read only that project's variables. The values never appear in the sandbox's pod definition, and one project's variables are never visible to another project's sessions. See environment variables.

Per-project isolation

Knowledge and memory are partitioned per project and per organization:

  • A session's memory lookups are pinned to its own project; requests for another project's memory are refused outright, even inside the same organization.
  • Knowledge Base reads (the page, its search, and the workflow Knowledge Search node) only return entries of the organization the project belongs to.
  • Organization-wide Knowledge Base entries are shared, on purpose, with every project in their organization.

Who can see a project at all is governed by the project visibility and sharing model: owners grant access to specific people or groups with defined roles. See sharing and users & roles.

Data export

Organization owners and admins can download their organization's data from Organization → Settings → Data export: a .tar.gz archive of JSON files, one per table, with session event history and LLM call logs as options. Secrets and credentials are never included.

Audit

Administrative actions are recorded in an audit log, which instance admins review on the Audit Log tab of the admin panel; see audit & usage. An action taken with a personal access token or by a connected app records which token or app took it, and whether it came through the MCP server.

Encryption in transit and at rest

  • In transit: all public endpoints (app, API, git, previews) serve TLS with certificates issued and renewed automatically via cert-manager and Let's Encrypt.
  • Vault contents are encrypted by Vault itself; backups capture Vault as an encrypted snapshot.
  • Backups additionally encrypt the exported platform secrets with age before they leave the cluster, and the backup job refuses to export them in cleartext. The nightly backup also includes the projects' PostgreSQL databases; backups lists the project data it leaves out.

Self-hosted note

On Self-Hosted Enterprise, all of the above runs inside your cluster: your databases, your Vault, your backups, your keys. Crios has no access to your data, and license verification happens locally without phoning home (licensing). Reports about your organizations' sessions reach Crios only if an instance admin turns on Send reports for Crios Self Enhance and connects the installation with an enrollment code from Crios; each organization then shares at the level it chooses, or at the installation's default until it chooses, and, whatever the organizations chose, the installation also sends a daily summary: how many organizations share at each level, how many sessions, publications and workflow runs were created in the last 24 hours, and how its report deliveries are going (reports sent, skipped, dropped and rejected, the backlog and its delay, and the last delivery error) (Crios Self Enhance).