Security
Security that comes with the code
Every Fractal application is generated with the same baseline: account isolation, standards-based sign-in, role-based permissions, encrypted secrets and privacy tooling. Not a checklist each team implements again, but part of what the generator produces.

The baseline every app gets
Concrete measures, generated from the model, the same in every application.
-
Account isolation
Every request is scoped to the caller's account by the permission layer, based on the claims in their token. Below that, the storage layer watches for queries that do not name an account: by default it logs a warning, and it can be set to refuse them outright. Code that genuinely needs to work across accounts has to say so explicitly.
-
OAuth 2.1 sign-in
Authorization code with PKCE, the device grant for command-line tools and client credentials for integrations. Access tokens are signed with asymmetric keys published at a JWKS endpoint, refresh tokens are rotated with reuse detection, and client secrets are stored as hashes. See the OAuth2 module.
-
Roles and permissions from the model
Roles are defined in Fractal Studio and generated into permission checks on every list, read, create, update, delete, query and command. Tokens can be narrowed further with fine-grained scopes, and an endpoint that cannot be matched to a permission is denied. See Permissions.
-
Hardened sign-in
Passwords hashed with Argon2, throttling of repeated failed sign-ins, two-factor authentication with an authenticator app, and single sign-on that only links provider-verified email addresses. See the Authentication module.
-
Encrypted secrets
Fields marked as encrypted in the model are stored with AES-256-GCM through a keyring that supports rotation. Secret values are masked whenever they leave the application. See the Secret Service.
-
Signed webhooks
Outgoing webhooks can carry a signed token that receivers verify against your app's public keys. Deliveries are scoped per account, personal data is masked, and private network targets are refused. See Webhooks.
-
Privacy tooling
Fields marked as personal data are masked in logs and webhooks. In the event history, personal data is encrypted per record; forgetting a record destroys its key, so the history still replays but the personal data can no longer be read.
-
Safe defaults and health checks
Generated tests check that development conveniences, such as public API documentation, are off by default. Every container ships with a health check, and deployments through Fractal Studio include scheduled database backups.
Security by generation
In most custom software, security depends on every developer remembering every rule in every new endpoint. Miss one filter and one account sees another's data.
Fractal takes that work out of individual hands. Account scoping, permission checks, token validation and masking of sensitive fields are part of the generated code, so a new entity or command gets them the moment it is modelled. Your team writes business rules, not access control boilerplate.
The same mechanism makes improvements travel. When we harden the templates, every application picks up the change on its next regeneration, while the three-way merge keeps your custom code in place. One fix, rolled out everywhere, instead of a patch per project.
AI assistants are no exception. The MCP server holds no credentials of its own and works with the signed-in user's token, so the same rules apply to an assistant as to the person using it.
Security questions
How is one customer's data kept apart from another's?
What happens when a security improvement is needed?
Can we use our existing identity provider?
How do you handle personal data?
Where does our application run?
Do AI assistants get special access?
Want to go through the details?
We are happy to walk your team through how a Fractal application handles accounts, permissions and personal data.