Skip to main content
Auto-approval approves an access request as soon as it’s submitted, if the request passes one of the folder’s rules. A rule can check a record the requester links, such as a Jira ticket or Linear issue, check whether the requester is on call in incident.io, check whether the requester’s device passes device posture checks in SentinelOne, check who the requester is or which groups they’re in, have your organization’s AI model review the request against your instructions, or combine these. For example, a rule can require that the linked Jira ticket is assigned to the requester and approved in Jira. If no rule passes, the request waits for the folder’s approvers, as it would without auto-approval. If the folder has no approvers, the request is rejected as soon as it’s submitted. The requester sees why. Auto-approval has two settings, each managed by a different role:
  • A Product Admin turns on Allow Auto-Approval in an account template, so the accounts that use the template can be auto-approved
  • A Folder Admin adds rules on the folder’s Approvals tab to set the conditions a request has to meet

Supported services

Infisical reads each service through an app connection:

Prerequisites

  • Accounts that require approval
  • If your rules check linked records or the requester’s account outside Infisical, an app connection to a supported service that can read what your rules check, such as Jira tickets, incident.io schedules, or SentinelOne devices
  • If your rules use AI checks, your organization’s AI model

Turn on auto-approval in a template

To let a template’s accounts be auto-approved:
1
In Privileged Access Management, select Account Templates in the sidebar, then open the template.
2
On the General tab, turn on Allow Auto-Approval. The policy only appears while Require Approval is on.
3
Select Save Changes.
If an account’s template doesn’t allow auto-approval, the folder’s rules don’t apply to the account: its request form doesn’t ask for any records, and its requests wait for an approver. If the folder also has no approvers, the account’s requests are refused.

Add rules to a folder

The Auto-Approval card on the folder’s Approvals tab has two parts:
  • Request Form Fields: the optional fields on the request form where requesters link records from other services, such as a Jira ticket
  • Rules: the conditions a request has to meet to be approved without an approver
A request is approved if every condition in at least one rule passes. To add rules:
1
On the Accounts page, select the folder’s three dot menu, select Configure, then open the Approvals tab.
2
In the Auto-Approval card, if the rules check a linked record, select Add Field under Request Form Fields and choose the record to ask for, such as Jira ticket for your Jira connection.
3
Under Rules, select Add Rule, then replace the rule’s default name with one that describes what the rule checks, such as Approved change ticket. Approvers see this name on every request the rule approves. A new rule starts with the hasn’t been used before and is assigned to the requester checks on each record the folder asks for.
4
Select Add Condition and choose a check, such as Jira ticket has status or Requester is on call in incident.io schedule, then choose its values if it takes any.
5
Repeat the previous step for each check the rule needs, then select Save Changes.

Checks

Each condition runs one check on a linked record or on the requester, and the checks available depend on the service. If a check takes values, the check passes when any of the values matches.
If a record has an is assigned to the requester check, add that check to every rule that checks the record. Without it, a requester can link a record that belongs to someone else and still pass the rule. Keep the hasn’t been used before check too. Without it, one approved record can grant access any number of times.
Every linked record also has a hasn’t been used before check. It passes only if no earlier approved request in the folder linked the same record. Use it when one approval in the other service should grant access only once.

Jira ticket

To require sign-off in Jira, use is approved in Jira rather than has status. Only the approvers on a Jira Service Management request can decide its approval, while the requester might be able to change the ticket’s status.

Linear issue

Rules store each status’s ID, so renaming a status in Linear doesn’t change which status a rule checks. Rules store team keys and label names, so update them if you rename a team’s key or a label in Linear. Infisical rejects issues that are archived or in the trash. To require sign-off in Linear, combine has status with had its status set by. For example, a rule with has status Approved and had its status set by your security leads passes only after one of them moves the issue to Approved.
Linear has no approvals, and anyone on a team can usually create an issue, assign it to themselves, and change its status and labels. Without had its status set by, Linear checks don’t show that someone else signed off. An AI check that reads the issue’s comments can also look for sign-off. Name the people who can approve by email address in its instructions, since Linear users can change their own names. Infisical reads the issue’s latest 50 history entries, so on a very busy issue the check fails if the status change is older than that. Rules match labels by name, so in the Linear team’s Access and permissions settings, limit Label management to team owners if your rules check labels.

Requester in incident.io

Infisical only checks the schedule when the request is submitted, so the access lasts for the full duration the requester asked for, even after their shift ends.

Requester in Infisical

This check doesn’t need an app connection. To let engineers access the folder’s accounts without waiting for an approver, add a rule with a single Requester is condition and select your Engineering group.

Device posture

The Device passes the posture checks condition passes if the requester’s device passes the checks in the account template’s Require Device Posture policy. The condition has no settings of its own. A rule can have one device condition. To add it, select Add Condition and choose Device passes the posture checks. An account whose template requires device posture only accepts requests from a device that passes its checks, so the requester checks their device when they submit the request. The CLI checks it automatically, and in the browser the requester selects Verify Device on the request form. The condition then passes, and the request is approved if the rule’s other conditions pass too. For an account whose template doesn’t require device posture, the condition never passes, and the request goes to the approvers. If a rule with a device condition approves a request, the access is limited to the serial number of the device that was checked, and each session and credential reveal needs a new device check that reports that serial number. If the requester has another active grant for the account that no device rule approved, that grant allows any device. The serial number is reported by the computer, so see Device identification for what the check proves.
Infisical trusts the serial number the requester’s computer sends, and serial numbers are often printed on the device. A requester who knows the serial number of another company device that passes the checks can send it and get their request approved without an approver. Combine the device condition with a condition the requester can’t control, such as Requester is, or keep device-only rules off folders whose accounts need an approver.

AI checks

An AI check has your organization’s AI model review a request against instructions you write. Use it for criteria the other checks can’t express, such as whether a linked ticket describes an open incident.

Set up the AI model

To set up the model, you need permission to edit organization settings:
1
In your organization, go to Organization Settings > General.
2
In the AI Features card, choose an organization-level Anthropic connection under Anthropic Connection, then choose a Model.
3
Select Save Changes.

Add an AI check to a rule

1
In a rule, select Add Condition, then select AI approves the request.
2
Under Instructions, describe when to approve, such as Approve if the linked Jira ticket is an open incident assigned to the requester.
3
Under Additional Context, choose any connections the AI can read from beyond the ones your request form fields use, then select Save Changes.
The AI reads the requester’s reason, the request details, and the linked records. Through a Jira connection, from a request form field or Additional Context, it can also read a ticket, read a ticket’s Jira Service Management approvals, find users by email, and search tickets with JQL (up to 10 results), but it can’t change anything in Jira. Through a Linear connection, it can read an issue with its latest 20 comments, find users by email, and search issues by text (up to 10 results), but it can’t change anything in Linear. A rule can have one AI check, and Infisical runs it only after the rule’s other checks pass. The AI check passes only if the model approves. If the model declines or errors, the check fails like any other check. Infisical allows 30 seconds for all of a request’s AI checks together: a check that hasn’t decided by then fails, and AI checks in later rules aren’t run.
The requester writes the reason and the linked tickets, so they can try to give the AI instructions. Keep the is assigned to the requester and hasn’t been used before checks in every rule with an AI check.
Approvers see the model’s reasoning and the tickets it looked up under Auto-approval status. The requester isn’t told why the AI didn’t approve, only that the request wasn’t auto-approved.

Request access with a linked record

If an account’s template allows auto-approval and its folder has rules, the account’s request form has an optional field for each record the folder asks for, such as Jira ticket. Enter the record’s ID, such as the ticket key PAY-123, or a link to the record. If the link points to a different site or Linear workspace from the one the folder’s connection uses, Infisical shows an error and doesn’t submit the request. After you submit the request, the confirmation message shows whether a rule approved it:
  • If a rule approved it, the access you asked for starts right away
  • If no rule approved it, the request waits for an approver, and the message shows why the rule that came closest didn’t pass
  • If no rule approved it and the folder has no approvers, the request is rejected (the message shows why the rule that came closest didn’t pass)
If the closest rule failed only on its AI check, the message doesn’t give a reason. If you turn on Break glass in the form, the record fields disappear, because break-glass requests skip the rules.

Review auto-approval results

The outcome of the rules shows up in these places:
  • Approval Requests: for each request waiting on your approval, the Auto-approval status section shows the linked records and why each rule failed (select a rule to see all of its conditions)
  • Notifications: approvers get an email and an in-app notification when a rule approves a request
  • The folder’s Approvals tab: under Access Requests, auto-approved requests have the Auto-approved status. Hover over it to see the rule that approved the request. A Folder Admin can revoke the access from an auto-approved request, as with any other approved request
  • The audit log: each auto-approval adds a PAM Access Request Auto-Approved event with the rule, its conditions, the linked records, the account, and the folder

How Infisical checks the rules

Infisical checks the rules once, when the request is submitted, by reading each linked record and on-call schedule from its service at that moment:
  • Later changes don’t affect the result, so closing a ticket, going off call, or leaving a group doesn’t revoke access that a rule granted, and a pending request isn’t approved when its record passes later
  • If no record was linked, or Infisical can’t read the record (the service doesn’t respond or rejects the connection’s credentials, the record doesn’t exist, or the connection’s user can’t see it), every condition on that record fails
  • If Infisical can’t read a schedule from incident.io, the requester doesn’t count as on call in that schedule
  • A record can be linked to any number of requests, and each request passes as long as the record still passes the rule (unless the rule also requires that the record hasn’t been used before)
  • Rules only apply to requests from users. A machine identity’s request waits for the folder’s approvers, or is rejected if the folder has none
  • A Device passes the posture checks condition reads the device check the requester ran with the Infisical CLI when they submitted the request. Without a check from the last 5 minutes, the condition fails
Infisical trusts what each service reports. It can’t tell whether a requester approved their own ticket, assigned another person’s ticket to themselves before linking it, or added themselves to an incident.io schedule. Prevent these in the service itself. For example, in Jira Service Management, exclude the reporter and assignee from approving requests, and limit who can assign tickets. In incident.io, limit who can edit the schedules your rules name and add overrides to them.

Next steps

Access requests

Gate accounts behind approval and seat the folder’s approvers.

App connections

Connect Infisical to the services that auto-approval reads records from.