- 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 linked records through an app connection to their service:Prerequisites
- Accounts that require approval
- An app connection to a supported service, whose user can read the records that requesters will link
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, under Request Form Fields, select Add Field 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, 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, and the checks available depend on the record’s service. If a check takes values, the record passes when it matches any of them. 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.
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 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 from its service at that moment:- Later changes in the service don’t affect the result, so closing a ticket 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
- 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
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.