- 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.
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
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. 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.
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.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.
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 keyPAY-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)
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
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.