Policy Engine

Define exactly who can do what, and when

Encode security and compliance requirements that govern every user, server, and agent. Policies are evaluated within secure enclaves.

Access Control

Deny by default. Allow only what you intend.

Deny by Default

Actions are denied unless a policy explicitly allows them, so gaps in your rules fail closed.

All-or-Nothing Allow

Any applicable deny blocks the action, regardless of how many policies allow it.

Built-in Recovery

The root quorum can bypass policies to recover from a faulty policy or lockout.

Diagram showing a central circle with a document and shield icon connected by dotted lines to three smaller squares on the left depicting a user icon, server icon, and microchip icon, and on the right a small circle with a checkmark icon, representing access control policy framework.
Three stacked isometric cubes with minimalist icons: a blue outline of a human head and shoulders on the top cube, a funnel filter icon on the middle cube, and a document with code brackets icon on the bottom cube.
Policy Language

Express rules as readable, auditable conditions

Allow or Deny

Each policy has a single effect, with a name and notes that document its intent.

Defined Approvers

Specify who can act or approve: a single user, a tagged group, or multiple approvers together.

Scoped Conditions

Apply a policy only when conditions are met, like a specific wallet or approved address.

Transaction-Level Rules

Set rules on what a transaction does: the recipient, the amount, the contract function being called. Works across EVM, Solana, Tron, Bitcoin, Tempo and more.

Approvals

Govern sensitive actions and automation

Multi-Party Approval

Require one or more approvers before an activity runs, with every approval attributed and audited.

Scoped Agent Authority

Grant servers and AI agents only the permissions a task requires, such as signing only to allowlisted addresses.

Enclave Enforcement

Policies are evaluated in Turnkey's secure enclaves on every request. Only the root quorum can bypass them.

Diagram showing a central rounded square with a microchip icon connected by lines to four black circles around it; three circles at the top each contain a user icon with a checkmark, and one circle at the bottom contains a checkmark.

Frequently asked questions

Got any other questions?
Connect with our Support team on Slack.

What is the Turnkey Policy Engine?

The policy engine is the foundation for access control in a Turnkey organization. Policies are written in JSON and determine which users can take which actions, and under what conditions.

How do policies apply to root users?

The root quorum bypasses the policy engine once its threshold is met, so you always have a recovery path. Policies still apply to a root user acting alone, and a root user's MFA and session settings still apply. Turnkey recommends reserving root for emergencies, setting the threshold above one (at least 2 of 3), and using scoped, non-root users for daily operations.

How are policies evaluated?

All policies are evaluated on each request. If a quorum of root users takes the action, it is allowed. Otherwise, if any applicable policy denies it, it is denied. If at least one applicable policy allows it, it is allowed. Anything else is denied by default.

What can users do without a policy?

Users have implicit read access within their own organization and its sub-organizations, and can manage their own credentials unless a policy says otherwise. Users included in a consensus requirement can approve that activity without separate permission.

Can policies restrict root users?

No. The root quorum bypasses the policy engine so you always have a recovery path. Turnkey recommends reserving root for emergencies and using scoped, non-root users for daily operations.

Which chains can policies inspect?

Policies can inspect transaction details on Turnkey's supported chains, including EVM chains, Solana, Tron, Bitcoin, and Tempo, and they apply to both sponsored and non-sponsored transactions. Each chain has its own set of fields to write conditions against, such as eth.tx for EVM and solana.tx for Solana. See the policy language reference for the full list.

Get started with Turnkey today

Contact Sales