Skip to main content
Security settings are the tenant-wide controls that apply to everyone in your organization, regardless of their role or team. They decide how long-lived and how numerous user API tokens can be, who hears about security events, where the TrueFoundry UI can be reached from, and how to cut off every user token at once if one leaks. They live under Settings > Organisation > Security & Access, next to the identity settings that decide how people sign in:
Organisation settings with the Security & Access section selected, showing the Security card with its edit button, the SSO card for a configured Okta SAML connection, and the Provisioning card with SCIM and Just-in-time toggles

Security & Access groups tenant security policy with sign-in and provisioning settings

Changing security settings requires the Tenant Admin role, or a custom role with the Manage Settings (settings:ManageSettings) permission.

How the Security settings apply

The Security card holds a single policy for the tenant. Its Enabled switch is a master switch: while it is off, none of the limits below are enforced and the card shows Disabled. Turn it on to enforce the policy you configure.
Configure Settings for Security form with Enabled checked, a 365-day maximum PAT expiry, a limit of 20 PATs per user, Optional team assignment selected, PAT retrieval disabled, security notifications sent to security@example.com, and UI logins restricted to 203.0.113.0/24

The Security policy: PAT limits, team assignment, notifications, and UI IP allowlisting

Start from this baseline and adjust to your organization’s policy. It keeps user tokens short-lived and few, makes sure someone hears about security events, and keeps the dashboard off the open internet. Production workloads should not use PATs at all — give them a virtual account with auto-rotation instead. As a manifest:
security.yaml

Personal Access Token controls

Personal Access Tokens (PATs) act with the full permissions of the user who created them, so they are the most sensitive credential most users hold. These settings bound how much damage a single token can do and how long it stays useful. Limits apply when a token is created. Tightening the maximum expiry does not shorten tokens that already exist — to cut those off, use Revoke all Personal Access Tokens.
Turn on PAT retrieval only when a workflow genuinely depends on it. A token that can be read back can also be leaked again, and anyone holding it acts as its owner.

Team assignment modes

Attaching a team to a PAT decides which team its AI Gateway usage is billed to. It does not change what the token can access — a PAT always carries its owner’s permissions. Choose Required when chargeback to a single team matters, for example when budget limits are set per team.

Security notifications

Send security updates to lists the email addresses that receive security-related notifications for the tenant. Use a monitored group address, such as security@example.com, so notices still reach someone when people change roles or leave.

Restrict UI logins by IP

Restrict UI Logins by IP limits browser access to the TrueFoundry UI to the IP addresses and CIDR ranges listed under Allowed IPs and CIDRs. Use it to keep the dashboard reachable only from your corporate network, VPN egress, or approved administrator locations. The restriction applies to UI logins only. API calls and AI Gateway traffic are authenticated by tokens and are not affected — to control those, scope tokens with roles and gateway access control.
Include the public IP you are configuring from. TrueFoundry refuses to save an allowlist that would lock out your current session.
UI login IP allowlisting is available on TrueFoundry SaaS. On a self-hosted control plane, restrict access at the network layer instead — see Self-Hosted Security.

Manage the policy as code

The same policy can be kept in Git and applied with tfy apply. Apply using YAML on the form generates the manifest for your current values:
security.yaml
The manifest expresses PAT expiry in minutes, while the form uses days. Multiply days by 1440.

Revoke all Personal Access Tokens

Settings > Organisation > Account Management > Revoke all PAT immediately revokes the Personal Access Tokens of every user in the tenant. It is the emergency control for a suspected credential leak, when you cannot tell which tokens were exposed.
Revoke all PAT card under Account Management explaining that it revokes all personal access tokens for every user in the organization account immediately, with a Revoke all PAT button

Revoke all PAT under Account Management

Every script, CI job, and local tool that authenticates with a PAT stops working at once, and each user has to create a new token. This is one more reason to run production workloads on virtual accounts instead of PATs. Virtual account tokens are managed separately — rotate them from Access > Virtual Accounts.
To cut off a single person rather than everyone, deactivate the user — their PATs stop working too.

SaaS security checklist

The full set of controls to review during onboarding and quarterly.

API keys

Create, use, and rotate Personal Access Tokens and virtual account tokens.

Disable password login

Require SSO for everyone once it is verified.

Delete tenant

Permanently delete the organization and its data.