# Security

> How Sommatic AI binds every operation to an identity and an organization, keeps secrets out of workflow definitions and records what each run did. Identity comes from Veripass; governance is built into the runtime.

Source: https://docs.sommatic.ai/en/security/ (updated 2026-11-26)

Sommatic AI runs processes that touch real systems: mailboxes, CRMs, payments, records of people. Its security model
answers three questions for every action: **who** acted, **in which organization**, and **what exactly happened**.
This page explains how; the next ones cover [credentials](https://docs.sommatic.ai/en/security/credentials.md) and
[audit](https://docs.sommatic.ai/en/security/audit.md).

Diagram: Each action is bound to an identity and an organization, uses a credential resolved on the server and leaves a line in the audit, even when it is rejected.

## Identity with Veripass

Veripass is the identity authority of Sommatic AI. You sign in to the portal with Veripass, and it assigns your
organization. Every sensitive operation is bound to the actor's identity, the organization, the role and the context
of the request.

- **Portal and apps** use the Veripass session of the person who signed in.
- **API calls** send `Authorization: Bearer <token>` with a token that Veripass issues for your organization. See
  [Authentication](https://docs.sommatic.ai/en/api/authentication.md).
- **Webhooks** authenticate per ingress binding, because the caller is an external system. A binding declares its
  mode: `none`, `api-key`, `oauth2`, `veripass-session`, `service-token` or `custom`. See
  [Webhooks](https://docs.sommatic.ai/en/workflows/webhooks.md).

![An aluminium monolith encircled by a ring of crimson frosted glass](https://docs.sommatic.ai/images/docs/security.webp)

## Organization scope

Workflows, runs, tasks, credentials, Git connections and AI resources all belong to an organization
(`organization_id`). A person works inside the organization Veripass assigned, and the API reads records of an
organization with the `organization-id` query selector (see [Conventions](https://docs.sommatic.ai/en/api/conventions.md)).

## Governance principles

These rules are part of the platform's design, not settings you can switch off:

| Principle                                 | What it means for you                                                                                                                            |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **Deterministic runtime**                 | A workflow runs node by node through an explicit graph. The engine only follows the edges that the nodes choose; nothing runs outside the graph. |
| **Versioned artifacts**                   | Production runs a published, immutable version. Changes go through a draft, a review and a publish.                                              |
| **Definition apart from runtime**         | Designing a workflow (control plane) and running it (execution plane) are separate steps with separate records.                                  |
| **Identity on every sensitive operation** | Sensitive operations carry the actor, the organization and the context, so they can be attributed and explained.                                 |
| **Operable without inference**            | Every capability has an explicit command or contract. AI helps route and classify; it is never the only path to a critical action.               |
| **Human in the loop**                     | When a case is risky or ambiguous, a workflow opens a [task](https://docs.sommatic.ai/en/human-in-the-loop.md) for a person instead of guessing. |
| **Bounded execution**                     | One tick runs at most 100 steps, a ceiling against accidental loops.                                                                             |
| **Traceability**                          | Runs, node executions and deployments are recorded, so you can reconstruct what happened.                                                        |

## Secrets

Secrets live in credentials, encrypted at rest, and nodes refer to them by id. They never belong in a node's
configuration, in an expression or in a Git repository. Read [Credentials](https://docs.sommatic.ai/en/security/credentials.md).

> **Warning: Test mode runs the draft**
>
> A webhook called in `test` mode runs the workflow draft. Treat permission to save drafts as permission to change what
> test traffic does, and keep production traffic on `prod` mode, which runs published versions only.

## Next steps

- [Credentials](https://docs.sommatic.ai/en/security/credentials.md): Store secrets once and use them from nodes by id.
- [Audit](https://docs.sommatic.ai/en/security/audit.md): What is recorded for every run and every node.
- [API authentication](https://docs.sommatic.ai/en/api/authentication.md): Call the API with a token for your organization.
