How it works
- A user requests access in Infisical to an environment and secret path.
- The request matches an access policy that sends its requests to ServiceNow.
- Infisical creates an Infisical Access Request record on your ServiceNow instance over the ServiceNow connection. The record includes a callback token that Infisical issued for this request alone.
- The Infisical - Default Approval flow, or a flow you build, asks your approvers to approve or reject the record.
- When the flow reaches a decision, its final step runs the Infisical - Notify Decision action. The action records the decision on the record, then sends the callback token to Infisical to say the record has a decision.
- Infisical reads the decision from the record over the ServiceNow connection, then grants the access on approval or closes the request on rejection.
Prerequisites
- A Secrets Management project on Infisical with Access Requests available
- A ServiceNow instance where you can install a scoped application, create users, edit groups, and activate flows in Flow Designer (the
flow_designerrole) - A ServiceNow instance that Infisical can reach (if your instance restricts inbound traffic, allow Infisical’s IP addresses on its IP access control list)
- Outbound HTTPS access from your ServiceNow instance to your Infisical URL
- If you self-host Infisical, a
SITE_URLthat starts withhttps://, because ServiceNow notifies Infisical at that address
Step 1: Install the Infisical application
- Access Requests: every request Infisical has sent
- Pending Requests: requests waiting for a decision
- Admin Console (admins only): every request, with a Resend to Infisical button for a decision that didn’t reach Infisical
- Allowed Callback Hosts: the Infisical URLs that the application is allowed to send decisions to
x_infis_approvals.admin role, which you need to change the application’s settings. Select your user avatar in the top-right corner, then select Elevate role.
x_infis_approvals.admin, then select Update. The elevation ends when you log out.


-
Infisical Cloud (US):
https://app.infisical.com/ -
Infisical Cloud (EU):
https://eu.infisical.com/ -
Self-hosted Infisical: your
SITE_URL
Step 2: Connect Infisical to ServiceNow
Create a ServiceNow integration user, then create a ServiceNow connection in Infisical with that user’s credentials. Follow the ServiceNow connection guide. Infisical uses this connection to create each record and to read each decision back. If the connection’s credentials stop working, Infisical can’t complete the requests waiting in ServiceNow.Step 3: Set up the approval flow
The Infisical application includes an approval flow, Infisical - Default Approval, and a group of approvers, Infisical Approvers. The flow asks the members of the group to approve each new request, so the first member who approves or rejects the request decides it. In the final step, the flow then notifies Infisical of the decision. When you install the application, the group has no members and the flow is inactive. Add your approvers to the group, then activate the flow. If the Infisical Approvers group doesn’t exist on your instance, see The Infisical Approvers group is missing.Add your approvers to the group

Infisical Approvers and open the group.


x_infis_approvals.approver role. Add other roles on the Roles tab if you need them.Activate the flow



Use your own flow instead
To route requests with a flow of your own, such as one with different approvers for each environment:Environment is prod or Secret Path contains /payments.x_infis_approvals.approver role, which members of the Infisical Approvers group already have.Notify Infisical of the decision
The Infisical - Notify Decision action records the decision on the record, updates the record’s State, and notifies Infisical. It takes two inputs:Step 4: Enable ServiceNow approvals on an access policy


- Provider: ServiceNow
- App Connection: the connection you created in Step 2


- Nobody can approve its requests in Infisical, so the policy has no approvers, bypassers, or self approval
- You can’t edit the policy while it has pending requests (cancel them first: open each request in Infisical and select Cancel Request)
Request access
Requesting access under a ServiceNow policy works like any other access request:


INFAR1000043, so you can find the record in ServiceNow.
Auditing
Both sides keep their own record:- In ServiceNow, the access request record carries the full approval history, including who approved at each step and when, through the standard approval and audit tables
- In Infisical, the project’s audit log records the request, the decision received from ServiceNow (
access-approval-request-delegated-decision), and the resulting access grant
Troubleshooting
The Infisical Approvers group is missing
The Infisical Approvers group is missing

Infisical Approvers Group, then select Submit.


x_infis_approvals.approver from Collection to Roles List, then select Save.






An approver doesn't see the request under My Approvals
An approver doesn't see the request under My Approvals
<servicenow-instance> with the host of your ServiceNow instance, such as
example.service-now.com:A request shows Not Submitted in Infisical
A request shows Not Submitted in Infisical
SITE_URL. Fix the cause, then
select Retry. For connection problems, see ServiceNow connection
troubleshooting.A request shows Submitting for a long time
A request shows Submitting for a long time
Record created but nothing happens
Record created but nothing happens
Approvers see duplicate approvals
Approvers see duplicate approvals
State stuck at Notifying Infisical
State stuck at Notifying Infisical
Callback Failed with HTTP 403
Callback Failed with HTTP 403
Callback Failed with a connection error
Callback Failed with a connection error
x_infis_approvals.admin
first). If the URL itself is wrong, cancel the current request, correct
SITE_URL and create the request again.Callback Failed with an invalid decision
Callback Failed with an invalid decision
approved or rejected to Infisical -
Notify Decision. Resend to Infisical can’t help, because no decision
was recorded. Fix the flow, then cancel the request in Infisical and create
it again.Callback Failed on a record that has no callback URL, event, or callback token
Callback Failed on a record that has no callback URL, event, or callback token
Request expired before approval
Request expired before approval
Infisical says the request couldn't be completed in ServiceNow
Infisical says the request couldn't be completed in ServiceNow
Requests closed by Infisical
Infisical closes a request without granting access in any of these cases, and shows the reason under the request’s Status:- Someone changed the Permissions field on the record
- Someone deleted the record from ServiceNow
- ServiceNow rejected the integration user’s credentials when Infisical read the decision
- The requester’s user was deleted, or the requester is no longer a member of the project
- The decision arrived after the request expired or was cancelled in Infisical
- ServiceNow notified Infisical about the request more than five times
- Infisical couldn’t create the record after about an hour of trying