Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge remote-tracking branch 'origin/main' into PLATFOR-792

Andrey088598173491
diff --cc docs/docs.json
index 16da6489e1,b614089eea..9050cc89cd
--- a/docs/docs.json
+++ b/docs/docs.json
@@@ -630,31 -622,57 +622,58 @@@
"documentation/platform/pam/accounts/windows",
"documentation/platform/pam/accounts/windows-ad"
]
- },
- {
- "group": "Access requests",
- "pages": [
- "documentation/platform/pam/access-requests/overview",
- "documentation/platform/pam/access-requests/auto-approval"
- ]
- },
+ }
+ ]
+ },
+ {
+ "group": "Access control",
+ "pages": [
+ "documentation/platform/pam/concepts/access-control",
+ "documentation/platform/pam/folders/overview",
+ "documentation/platform/pam/templates/overview",
+ "documentation/platform/pam/access-requests/overview",
++ "documentation/platform/pam/access-requests/auto-approval",
+ "documentation/platform/pam/access-requests/break-glass"
+ ]
+ },
+ {
+ "group": "AI agents",
+ "pages": [
"documentation/platform/pam/ai-agents/overview",
+ "documentation/platform/pam/ai-agents/run",
+ "documentation/platform/pam/ai-agents/instructions",
+ "documentation/platform/pam/ai-agents/unattended",
+ "documentation/platform/pam/ai-agents/review"
+ ]
+ },
+ {
+ "group": "Credential rotation",
+ "pages": [
+ "documentation/platform/pam/credential-rotation/overview",
+ "documentation/platform/pam/credential-rotation/postgresql",
+ "documentation/platform/pam/credential-rotation/mysql",
+ "documentation/platform/pam/credential-rotation/mssql",
+ "documentation/platform/pam/credential-rotation/oracledb",
+ "documentation/platform/pam/credential-rotation/windows"
+ ]
+ },
+ {
+ "group": "Monitoring",
+ "pages": [
{
- "group": "Credential rotation",
+ "group": "Sessions",
+ "root": "documentation/platform/pam/sessions/overview",
"pages": [
- "documentation/platform/pam/product-reference/credential-rotation/overview",
- "documentation/platform/pam/product-reference/credential-rotation/postgresql",
- "documentation/platform/pam/product-reference/credential-rotation/mysql",
- "documentation/platform/pam/product-reference/credential-rotation/mssql",
- "documentation/platform/pam/product-reference/credential-rotation/oracledb",
- "documentation/platform/pam/product-reference/credential-rotation/windows"
+ "documentation/platform/pam/sessions/session-recording",
+ "documentation/platform/pam/sessions/external-storage"
]
},
- "documentation/platform/pam/product-reference/credential-health/overview",
+ "documentation/platform/pam/auditing",
+ "documentation/platform/pam/credential-health/overview",
{
"group": "Discovery",
+ "root": "documentation/platform/pam/discovery/overview",
"pages": [
- "documentation/platform/pam/discovery/overview",
"documentation/platform/pam/discovery/active-directory",
"documentation/platform/pam/discovery/unix",
"documentation/platform/pam/discovery/postgres",
diff --cc docs/documentation/platform/pam/access-requests/auto-approval.mdx
index b88552ac2d,0000000000..aa04cc5e3b
mode 100644,000000..100644
--- a/docs/documentation/platform/pam/access-requests/auto-approval.mdx
+++ b/docs/documentation/platform/pam/access-requests/auto-approval.mdx
@@@ -1,140 -1,0 +1,140 @@@
+---
+title: "Auto-approval"
+sidebarTitle: "Auto-approval"
+description: "Approve PAM access requests as soon as they're submitted when the records that requesters link from other services pass the folder's rules."
+---
+
+Auto-approval approves an [access request](/documentation/platform/pam/access-requests/overview) as soon as it's submitted, if the request passes one of the folder's rules. A rule checks a record that the requester links from another service, such as a Jira ticket. 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](/documentation/platform/pam/concepts/access-control#product-membership) turns on **Allow Auto-Approval** in an account [template](/documentation/platform/pam/templates/overview), so the accounts that use the template can be auto-approved
+- A [Folder Admin](/documentation/platform/pam/concepts/access-control#folder-and-account-memberships) 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](/integrations/app-connections/overview) to their service:
+
+| Service | Record that requesters link | App connection |
+| --- | --- | --- |
+| Jira Cloud and Jira Data Center | Jira ticket | [Jira connection](/integrations/app-connections/jira) |
+
+## Prerequisites
+
- - Accounts that [require approval](/documentation/platform/pam/access-requests/overview#setting-up-an-access-gate)
++- Accounts that [require approval](/documentation/platform/pam/access-requests/overview#set-up-approval)
+- An app connection to a [supported service](#supported-services), 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:
+
+<Steps>
+ <Step>
+ In Privileged Access Management, select **Account Templates** in the sidebar, then open the template.
+ </Step>
+ <Step>
+ On the **General** tab, turn on **Allow Auto-Approval**. The policy only appears while **Require Approval** is on.
+ </Step>
+ <Step>
+ Select **Save Changes**.
+ </Step>
+</Steps>
+
+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:
+
+<Steps>
+ <Step>
+ On the **Accounts** page, select the folder's three dot menu, select **Configure**, then open the **Approvals** tab.
+ </Step>
+ <Step>
+ 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.
+ </Step>
+ <Step>
+ 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.
+ </Step>
+ <Step>
+ Select **Add Condition** and choose a [check](#checks), such as **Jira ticket has status**, then choose its values if it takes any.
+ </Step>
+ <Step>
+ Repeat the previous step for each check the rule needs, then select **Save Changes**.
+ </Step>
+</Steps>
+
+## 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.
+
+<Warning>
+ 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.
+</Warning>
+
+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
+
+| Check | Passes when |
+| --- | --- |
+| **is assigned to the requester** | The ticket's assignee has the same email address in Jira as the requester has in Infisical (it never passes if Jira hides the assignee's email address, through the assignee's profile on Jira Cloud or the **User email visibility** setting on Jira Data Center) |
+| **is approved in Jira** | The ticket is a Jira Service Management request, and its latest approval was approved |
+| **has status** | The ticket's status is one of the values |
+| **is in project** | The ticket is in one of the projects |
+| **is of type** | The ticket's type is one of the values |
+| **has label** | The ticket has at least one of the labels |
+
+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](/documentation/platform/pam/access-requests/overview#filing-a-request) 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 from the one the folder's connection uses, Infisical shows an error and doesn't submit the request.
++If an account's template allows auto-approval and its folder has rules, the account's [request form](/documentation/platform/pam/access-requests/overview#request-access) 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 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 you turn on **Break glass** in the form, the record fields disappear, because [break-glass](/documentation/platform/pam/access-requests/overview#break-glass-access) requests skip the rules.
++If you turn on **Break glass** in the form, the record fields disappear, because [break-glass](/documentation/platform/pam/access-requests/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](/documentation/platform/pam/auditing): 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
+
+<Warning>
+ Infisical trusts what the linked service reports. It can't tell whether a requester approved their own ticket or assigned another person's ticket to themselves before linking it. Prevent both in the service itself. For example, in Jira Service Management, exclude the reporter and assignee from approving requests, and limit who can assign tickets.
+</Warning>
+
+## Next steps
+
+<CardGroup cols={2}>
+ <Card title="Access requests" icon="key" href="/documentation/platform/pam/access-requests/overview">
+ Gate accounts behind approval and seat the folder's approvers.
+ </Card>
+ <Card title="App connections" icon="plug" href="/integrations/app-connections/overview">
+ Connect Infisical to the services that auto-approval reads records from.
+ </Card>
+</CardGroup>
diff --cc docs/documentation/platform/pam/access-requests/break-glass.mdx
index 0000000000,cd759041f1..16ee7325c2
mode 000000,100644..100644
--- a/docs/documentation/platform/pam/access-requests/break-glass.mdx
+++ b/docs/documentation/platform/pam/access-requests/break-glass.mdx
@@@ -1,0 -1,95 +1,95 @@@
+ ---
+ title: "Break-glass access"
+ sidebarTitle: "Break-glass access"
+ description: "Let named responders grant themselves access in an emergency."
+ ---
+
+ Break-glass access lets a named responder approve their own [access request](/documentation/platform/pam/access-requests/overview) when no approver is available, such as during an incident. Infisical notifies every approver that the responder skipped.
+
+ Break-glass access doesn't give anyone permanent access. The responder still files a request with a reason, and still gets access only for the duration they requested. The only difference is that no approver approves the request.
+
+ ## Set up break-glass access
+
+ A responder can only use break-glass access if two settings are turned on, and a different admin owns each one:
+
+ - **On the account template:** A Product Admin turns on **Allow Break-Glass**, which decides which accounts allow break-glass access
+ - **On the folder:** An Admin of the folder adds responders under **Break-Glass Users**, which decides who can use break-glass access
+
+ If either setting is off, nobody can use break-glass access on the account.
+
-Before you start, [set up approval](/documentation/platform/pam/access-requests/overview#set-up-approval) on the account. The template must have **Require Approval** turned on, and the folder must have at least one approver.
++Before you start, [set up approval](/documentation/platform/pam/access-requests/overview#set-up-approval) on the account. The template must have **Require Approval** turned on, and the folder must have at least one approver or [auto-approval rule](/documentation/platform/pam/access-requests/auto-approval).
+
+ <Steps>
+ <Step>
+ As a [Product Admin](/documentation/platform/pam/concepts/access-control#product-membership), go to **Privileged Access Management** > **Account Templates**, open the template, and turn on **Allow Break-Glass**.
+ </Step>
+ <Step>
+ As an Admin of the folder, open the folder's **Approvals** tab and add users or groups under **Break-Glass Users**.
+ </Step>
+ <Step>
+ Select **Save Changes**.
+ </Step>
+ </Steps>
+
+ Break-glass users must already be members of the folder. Only users and groups can be break-glass users, so a machine identity or an [AI agent](/documentation/platform/pam/ai-agents/overview) can't use break-glass access.
+
+ <Tip>
+ Add only your on-call responders as break-glass users, not everyone who uses the folder's accounts.
+ </Tip>
+
+ ## Use break-glass access
+
+ Break-glass access needs a reason of at least 10 characters that explains why the request can't wait for an approver. Infisical sends the reason to the approvers you skip and records it in the audit log.
+
+ You can use break-glass access when you file a request, or later while the request is pending.
+
+ <Tabs>
+ <Tab title="When you file the request">
+ <Steps>
+ <Step>
+ On the **Accounts** page, select the key icon on the account's row.
+ </Step>
+ <Step>
+ Turn on **Break glass**, then enter the **Reason** and the duration.
+ </Step>
+ <Step>
+ Select **Break glass**.
+ </Step>
+ </Steps>
+ </Tab>
+ <Tab title="While the request is pending">
+ <Steps>
+ <Step>
+ On the **Accounts** page, select the clock icon on the account's row.
+ </Step>
+ <Step>
+ Under **Break glass**, enter the **Reason** and select **Break glass**.
+ </Step>
+ </Steps>
+ </Tab>
+ </Tabs>
+
+ You get the access that the request asked for. If you used break-glass access on a session request, you can launch sessions, and if you used it on a credential request, you can view the credential. The access expires at the end of the requested duration, an Admin of the folder can [revoke it](/documentation/platform/pam/access-requests/overview#revoke-access), and Infisical records your sessions like any other session.
+
+ ## What Infisical records
+
+ Each time someone uses break-glass access, Infisical does the following:
+
+ - Emails each approver who was skipped, with the reason
+ - Notifies the skipped approvers in Infisical
+ - Sends the folder's **Break-Glass Used** [alert](/documentation/platform/pam/access-requests/overview#alerts), if the folder has one
+ - Adds a **PAM Access Policy Bypassed** event to the [audit log](/documentation/platform/pam/auditing) with the reason, the account, the folder, and the number of approvers skipped
+ - Shows a **Break-glass** badge on the request in the folder's **Access Requests** list
+
+ To review every use of break-glass access, filter the audit log for **PAM Access Policy Bypassed**.
+
+ ## Frequently asked questions
+
+ <AccordionGroup>
+ <Accordion title="Can I use break-glass access on someone else's request?">
+ No. Break-glass access only approves your own pending request.
+ </Accordion>
+ <Accordion title="What happens if I'm removed from the folder while my request is pending?">
+ If you're removed from the folder or from its **Break-Glass Users**, you can't use break-glass access on the request.
+ </Accordion>
+ </AccordionGroup>
diff --cc docs/documentation/platform/pam/access-requests/overview.mdx
index a5375c78d3,19cabddf17..28020594a6
--- a/docs/documentation/platform/pam/access-requests/overview.mdx
+++ b/docs/documentation/platform/pam/access-requests/overview.mdx
@@@ -62,124 -42,88 +42,90 @@@ An account requires approval when its [
</Step>
</Steps>
- <Warning>
- A gated account with no approvers seated has no one who can clear its requests, so it stays locked until a Folder Admin adds approvers on the folder's **Approvals** tab.
- </Warning>
-
- ## Requesting and granting access
-
- ### Filing a request
-
- From the **Accounts** page, a member sees every account they can reach. Gated accounts show a **key icon** instead of the rocket (launch) button — select the key or select **Request Access** from the menu to start a request.
+ Approvers must already be members of the folder, which you add on the folder's **Permissions** tab. An approver doesn't need a role that lets them use the account.
- To request, the member provides a **reason** and a **duration**, both fixed at submission. If the account can be [auto-approved](/documentation/platform/pam/access-requests/auto-approval), the form also has optional fields for linking records, such as a Jira ticket, and a request whose records pass one of the folder's rules is approved as soon as it's submitted. Otherwise, the account shows **Pending Approval** until it clears.
+ Only users and groups can be approvers. A machine identity can't approve a request, even if it has the Admin role on the folder.
- Once approved, the key icon switches to the rocket icon and the member can launch sessions until the grant expires.
-
- ### Reviewing a request
-
- Approvers are notified by email and in the app when a request needs them. From **Approval Requests**, an approver sees the requests waiting on them, each showing the requester, account, folder, reason, and duration. A credential request carries a **Credentials** badge, so an approver can tell at a glance that approving hands over the raw password rather than opening a recorded session.
-
- They **approve** or **reject** the request. A single approval from any one of the folder's seated approvers clears it; it doesn't have to come from a specific person.
-
- ### The request lifecycle
-
- Every request carries the reason and duration set by the requester and moves through a small set of states.
-
- | State | What it means |
- |-------|---------------|
- | **Pending Approval** | Filed and waiting on an approver. |
- | **Approved** | An approver or an [auto-approval rule](/documentation/platform/pam/access-requests/auto-approval) approved the request. The access it asked for is now active and the member can launch sessions. |
- | **Expired** | The requested duration ran out and the access closed on its own. |
- | **Rejected** | An approver declined the request. No access was granted. |
- | **Revoked** | Active access was ended early by a Folder Admin before its duration ran out. |
-
- ```mermaid
- graph LR
- P["Pending Review"] -->|approved| A["Approved / Active"]
- P -->|declined| R["Rejected"]
- A -->|duration ends| E["Expired"]
- A -->|ended early| V["Revoked"]
- ```
-
- Rejected, expired, and revoked requests stay in the list so the audit trail stays complete.
-
- ## Break-glass access
-
- Break-glass access lets a named responder clear their own pending request without an approver. Every approver who was skipped is notified immediately.
-
- It grants no standing access. The responder still files a request, still gives a reason, and still gets a time-boxed grant. The only thing that changes is who signs it off.
+ <Warning>
+ Members can't request access to an account that requires approval until its folder has at least one approver.
+ </Warning>
- ### The two switches
+ ## Request access
- Break-glass needs two switches on, and a different person owns each one:
+ On the **Accounts** page, an account that requires approval shows a key icon instead of the launch icon.
- - The **Product Admin** turns on **Allow Break-Glass** on the [template](/documentation/platform/pam/templates/overview). This sets which accounts can ever be broken into.
- - The **Folder Admin** names the break-glass users on the folder's **Approvals** tab. This sets who can do it.
+ <Steps>
+ <Step>
+ Select the key icon on the account's row. To request the credential instead of a session, open the account's menu and select **Request Credentials**.
+ </Step>
+ <Step>
+ Enter a **Reason**, which approvers see and the audit log records. The reason is required if the template has **Require Reason** turned on.
+ </Step>
+ <Step>
+ Choose how long you need access, from 15 minutes to 1 week, and select **Request session access** or **Request credentials**.
+ </Step>
+ </Steps>
- An empty break-glass list means nobody, not everybody, so the template policy on its own changes nothing until a Folder Admin names someone.
++If the account can be [auto-approved](/documentation/platform/pam/access-requests/auto-approval), the form also has optional fields for linking records, such as a Jira ticket. A request whose records pass one of the folder's rules is approved as soon as you submit it.
+
- <Note>
- **Allow Break-Glass** does nothing without **Require Approval** on the same template. Break-glass skips an approval, so an account that never needed one has nothing to skip.
- </Note>
+ While the request waits for an approver, the account shows a clock icon. After an approver approves the request, the account shows the launch icon until the access expires.
- ```mermaid
- graph TD
- T["Product Admin<br/>turns on Allow Break-Glass<br/>on the template"]
- F["Folder Admin<br/>names break-glass users<br/>on the Approvals tab"]
- B["Responder can break glass"]
+ You can't change the reason or the duration after you submit the request. To change either one, ask an approver to deny the request, then file a new one.
- T --> B
- F --> B
- ```
+ ## Review a request
- ### Setting it up
+ When a member requests access, Infisical notifies the folder's approvers by email and in Infisical.
<Steps>
- <Step title="Turn on the template policy (Product Admin)">
- Go to **Privileged Access Management → Account Templates**, open the template, and turn on **Allow Break-Glass** alongside **Require Approval**.
+ <Step>
+ Go to **Privileged Access Management** > **Approval Requests** and select the request.
</Step>
- <Step title="Name the responders (Folder Admin)">
- Open the folder, go to its **Approvals** tab, and add users or groups under **Break-Glass Users**.
-
- Break-glass users must be members of the folder, same as ordinary approvers, so the picker only offers people who already belong to it. Keep the list to your on-call responders rather than everyone who might need the account.
+ <Step>
+ Check the requester, the account, the reason, and the duration. If the request is for credential access, approving it lets the requester read the password or key outside a recorded session.
+ </Step>
+ <Step>
+ Optionally, enter an **Approval comment** for the requester, then select **Approve** or **Deny**.
</Step>
</Steps>
- ### Breaking glass
-
- There are two ways in, and both need a reason of at least 10 characters explaining why this can't wait for an approver. The reason is recorded in the audit log and sent to the approvers who were skipped.
+ One approval from any of the folder's approvers is enough. You can't approve a request that you filed yourself.
- If you already know nobody is available to approve, turn on **Break glass** in the request form before you submit. The request is raised and granted in one step, and the reason you gave doubles as the bypass reason.
+ ## Request statuses
- If you filed a request and then decided not to wait, reopen the account from the **Accounts** page while the request is pending. The sheet offers **Break glass** below the approval workflow.
+ | Status | Meaning |
+ |--------|---------|
+ | **Pending Review** | The request is waiting for an approver |
-| **Approved** | An approver approved the request, and the access is active |
++| **Approved** | An approver or an [auto-approval rule](/documentation/platform/pam/access-requests/auto-approval) approved the request, and the access is active |
+ | **Rejected** | An approver denied the request |
+ | **Expired** | The requested duration ended |
+ | **Revoked** | An Admin of the folder ended the access before the duration ended |
- Either way, the grant is the one the request asked for. It expires on the same clock, a Folder Admin can revoke it the same way, and sessions on it are recorded like any other. Breaking glass on a credential request grants a credential reveal, not a session.
+ The duration starts when an approver approves the request, not when the member files it, so the member always gets the full duration they asked for.
- ### What happens next
+ To see every request for a folder's accounts, open the folder's **Approvals** tab and go to **Access Requests**.
- Every use of break-glass:
+ ## Revoke access
- - Emails every approver who was skipped, with the reason given
- - Notifies them in the app
- - Notifies the channels on the folder's **Break-Glass Used** [alert](#alerts), if the folder has one
- - Writes a **PAM Access Policy Bypassed** entry to the [audit log](/documentation/platform/pam/auditing) with the reason, the account, the folder, and how many approvers were skipped
- - Marks the request with a **Break-glass** badge in the folder's request history
+ An Admin of the folder can end an approved request before its duration ends. On the folder's **Approvals** tab, go to **Access Requests** and select **Revoke access** on the request's row.
- The badge and the audit entry are permanent.
+ If you revoke a session request, Infisical ends the member's active sessions on the account immediately. If you revoke a credential request, the member can't reveal the credential again, but a credential they already copied stays valid until you [rotate](/documentation/platform/pam/credential-rotation/overview) the account.
## Alerts
- An alert notifies your team about access requests in a folder through email, Slack, a webhook, or PagerDuty. Each alert watches one event:
+ An alert notifies your team about access requests in a folder through email, Slack, a webhook, or PagerDuty. Each alert watches one of the following events:
+
+ | Event | When the alert fires |
+ |-------|----------------------|
+ | **Access Requested** | A member requests access to an account in the folder |
-| **Request Approved** | An approver approves a request |
++| **Request Approved** | An approver or an auto-approval rule approves a request |
+ | **Request Denied** | An approver denies a request |
+ | **Break-Glass Used** | A member uses [break-glass access](/documentation/platform/pam/access-requests/break-glass) to skip the approvers |
- | Event | When it fires |
- |-------|---------------|
- | **Access Requested** | Someone requests access to an account in the folder |
- | **Request Approved** | An approver approves a request |
- | **Request Denied** | An approver rejects a request |
- | **Break-Glass Used** | Someone uses [break-glass](#break-glass-access) to get access without an approver |
+ To add an alert, open the folder's **Approvals** tab, select **Alerts**, and select **Add Alert**. A folder can have one alert for each event.
- A Folder Admin adds and manages alerts by selecting **Alerts** on the folder's **Approvals** tab. A folder can have one alert per event, and Slack, webhook, and PagerDuty channels need an Enterprise plan.
+ <Note>
+ Slack, webhook, and PagerDuty channels need the Enterprise plan. Email channels are available on every plan.
+ </Note>
## Requests from AI agents
diff --cc docs/documentation/platform/pam/auditing.mdx
index d6d8a64860,9a9b72cf89..f6531406cb
--- a/docs/documentation/platform/pam/auditing.mdx
+++ b/docs/documentation/platform/pam/auditing.mdx
@@@ -1,46 -1,42 +1,42 @@@
---
title: "Auditing"
sidebarTitle: "Auditing"
- description: "Track all activity across your PAM environment."
+ description: "Track who accessed and changed what across PAM."
---
- PAM logs every action — who accessed what, who changed what, and when. This audit trail is essential for compliance reviews and incident investigation.
+ Infisical adds an event to the audit log each time someone connects to an account, views a credential, or changes PAM's configuration. Use the audit log for access reviews and to trace what happened before and after an incident.
- ## What gets logged
-
- | Category | Events |
- |----------|--------|
- | **Sessions** | Session started, session ended, session terminated |
- | **Accounts** | Account created, updated, deleted |
- | **Folders** | Folder created, updated, deleted, [joined as Admin by an organization Admin](/documentation/platform/pam/folders/overview#managing-access) |
- | **Templates** | Template created, updated, deleted |
- | **Memberships** | Membership added, updated, removed |
- | **Product Access** | Product member added, removed, role changed |
- | **[Access requests](/documentation/platform/pam/access-requests/overview)** | Request filed, reviewed, auto-approved, revoked, approval policy bypassed |
+ The audit log records that something happened, such as a user starting a session on an account. To view what the user did during that session, use the [session recording](/documentation/platform/pam/sessions/session-recording).
- Each event includes:
- - **Timestamp** — when it happened
- - **Actor** — who did it: a user (name, email, IP address) or a [machine identity](/documentation/platform/identities/machine-identities), named as it's named in your organization
- - **Action** — what was done
- - **Target** — what was affected
- - **Details** — relevant context (e.g., what changed)
+ ## Who can view the audit log
- An identity has no email address, so its events show **Machine Identity** where a person's email would be. Everything an [AI agent](/documentation/platform/pam/ai-agents/overview) does is logged the same way a person's activity is.
+ What you can view depends on your [roles](/documentation/platform/pam/concepts/access-control):
- ## Viewing audit logs
+ - With the **Admin** or **Auditor** role on a folder or account, you can view the events for that folder or account, including the events for every account in the folder
+ - With the **Product Admin** role, you can view the events that don't belong to a folder or account, such as changes to templates and product members
- 1. Go to **Privileged Access Management → Audit Logs**
- 2. Browse the log (newest first) or use filters
+ ## View the audit log
- ## Audit logs vs session recordings
+ Go to **Privileged Access Management** > **Audit Logs**. The audit log shows the newest events first.
- These are complementary:
+ Each event names the actor, the action, and the folder or account it affected, along with when it happened. If the actor was a [machine identity](/documentation/platform/identities/machine-identities), the event shows **Machine Identity** in place of an email address. When an [AI agent](/documentation/platform/pam/ai-agents/overview) connects to an account, Infisical records the event under the user or machine identity that started the agent.
- **Audit logs** track metadata — who accessed what [account](/documentation/platform/pam/accounts/overview), when, from where. They tell you *that* something happened.
+ To filter events by date, event type, or actor, check out [Filtering audit logs](/documentation/platform/audit-logs#filtering-audit-logs). For filters that answer common PAM questions, such as who accessed an account, check out [Common filters](/documentation/platform/audit-logs#privileged-access-manager).
- **[Session recordings](/documentation/platform/pam/sessions/session-recording)** capture content — the actual queries and commands. They tell you *what* was done during the session.
+ ## What gets logged
- For a complete picture, you need both. The audit log tells you Alice accessed the orders-db at 2pm; the session recording shows you exactly what queries she ran.
+ | Category | Events |
+ | --- | --- |
+ | Sessions | Start PAM Session, End PAM Session, Terminate PAM Session, Access PAM Account |
+ | Credentials | View PAM Account Credentials, Rotate PAM Account Credentials, Set PAM Account Rotation Account |
+ | Accounts | Create PAM Account, Update PAM Account, Delete PAM Account, Create PAM Account SSH CA |
+ | Folders | Create PAM Folder, Update PAM Folder, Delete PAM Folder, Org admin accessed PAM folder |
+ | Templates | Create PAM Account Template, Update PAM Account Template, Delete PAM Account Template |
+ | Memberships | Add, Update, and Remove PAM Product Member, PAM Folder Member, and PAM Account Member |
-| [Access requests](/documentation/platform/pam/access-requests/overview) | Create PAM Access Request, Review PAM Access Request, Revoke PAM Access Grant, Update PAM Approval Configuration, PAM Access Policy Bypassed |
++| [Access requests](/documentation/platform/pam/access-requests/overview) | Create PAM Access Request, Review PAM Access Request, PAM Access Request Auto-Approved, Revoke PAM Access Grant, Update PAM Approval Configuration, PAM Access Policy Bypassed |
+ | [Discovery](/documentation/platform/pam/discovery/overview) | Create, Update, and Delete PAM Discovery Source, Run PAM Discovery Scan, Import PAM Discovered Account |
+
+ To review every use of [break-glass access](/documentation/platform/pam/access-requests/break-glass), filter for **PAM Access Policy Bypassed**. Each of these events records the reason the user gave, the account and folder, and how many approvers were skipped.
## Retention
diff --cc docs/documentation/platform/pam/templates/overview.mdx
index 79080f3d76,1bcdf89098..69fab88c21
--- a/docs/documentation/platform/pam/templates/overview.mdx
+++ b/docs/documentation/platform/pam/templates/overview.mdx
@@@ -66,26 -35,33 +35,34 @@@ Create your own template when some acco
</Step>
</Steps>
- ## How templates work with accounts
+ To use the template, choose it when you [add an account](/documentation/platform/pam/accounts/overview).
+
+ ## Policies
+
+ | Policy | What it does |
+ | --- | --- |
+ | **Require Approval** | Users must request access, and an approver must approve the request, before they can launch a session or view the account's credentials (see [Access requests](/documentation/platform/pam/access-requests/overview)) |
++| **Allow Auto-Approval** | Requests that pass one of the folder's rules are approved as soon as they're submitted (see [Auto-approval](/documentation/platform/pam/access-requests/auto-approval)) |
+ | **Allow Break-Glass** | Named responders can approve their own access requests in an emergency (see [Break-glass access](/documentation/platform/pam/access-requests/break-glass)) |
+ | **Require MFA** | Users must complete an MFA challenge before they connect |
+ | **Require Reason** | Users must give a reason before they connect |
+ | **Max Session Duration** | Infisical ends the session after this many seconds (60 to 86,400, or 900 to 3,600 for AWS IAM) |
+ | **Command Blocking** | Infisical rejects commands or SQL statements that match one of these regular expressions (SSH, Snowflake, and ClickHouse only) |
- Every account references a template. The account inherits everything from that template — session limits, MFA requirements, Gateway, recording storage, and so on.
-**Allow Break-Glass** only works together with **Require Approval**. If you turn off **Require Approval**, Infisical also turns off **Allow Break-Glass**.
++**Allow Auto-Approval** and **Allow Break-Glass** only work together with **Require Approval**. If you turn off **Require Approval**, Infisical also turns off **Allow Break-Glass**.
- This means you can:
- - Apply the same rules to many accounts by having them use the same template
- - Change rules for all those accounts at once by editing the template
- - Have different accounts in the same folder use different templates (if they need different rules)
+ Machine identities and [AI agents](/documentation/platform/pam/ai-agents/overview) can't complete an MFA challenge, so they can't connect to accounts whose template has **Require MFA** on. If an agent needs an account, use **Require Approval** instead.
- Some options like Gateway can be overridden at the account level when needed.
+ ## System settings
- ## Next steps
+ | Setting | What it does |
+ | --- | --- |
+ | **Gateway** | The gateway that the accounts connect through |
+ | **Storage backend** | Where Infisical stores session recordings: **Internal Database** or **S3 Bucket** (see [External storage](/documentation/platform/pam/sessions/external-storage)) |
+ | **Session Log Masking** | Hides text that matches these patterns in session recordings |
- With templates set up, you're ready to add accounts to your [folders](/documentation/platform/pam/folders/overview).
+ <Note>
+ You can [override the gateway](/documentation/platform/pam/accounts/manage#override-the-templates-settings) for one account on the account's **Advanced** tab. For Windows and Windows AD accounts, you can also override the recording bucket there.
+ </Note>
- <CardGroup cols={2}>
- <Card title="PostgreSQL Accounts" icon="database" href="/documentation/platform/pam/accounts/postgresql">
- Add PostgreSQL database accounts.
- </Card>
- <Card title="SSH Accounts" icon="terminal" href="/documentation/platform/pam/accounts/ssh">
- Add SSH server accounts.
- </Card>
- </CardGroup>
+ The **General** tab also has settings for [credential rotation](/documentation/platform/pam/credential-rotation/overview) and [credential health](/documentation/platform/pam/credential-health/overview) checks, for account types that support them.