Skip to content

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

add docs

adilsonad8121e0c56b
diff --git a/docs/docs.json b/docs/docs.json
index e2f7f4d2b7..423e4eb527 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -532,7 +532,8 @@
"pages": [
"documentation/platform/secret-validation-rules",
"documentation/platform/pr-workflows",
- "documentation/platform/access-controls/access-requests"
+ "documentation/platform/access-controls/access-requests",
+ "documentation/platform/access-controls/folder-rbac"
]
},
{
diff --git a/docs/documentation/platform/access-controls/folder-rbac.mdx b/docs/documentation/platform/access-controls/folder-rbac.mdx
new file mode 100644
index 0000000000..ce49d0775d
--- /dev/null
+++ b/docs/documentation/platform/access-controls/folder-rbac.mdx
@@ -0,0 +1,119 @@
+---
+title: "Folder-level access controls"
+description: "Grant users and machine identities a specific role inside a single folder."
+---
+
+Folder-level access controls assign a role to a user or machine identity on a single [folder](/documentation/platform/folder). Inside that folder, the grant **replaces** whatever their project roles would otherwise allow, so it can **widen** access or **narrow** it.
+
+<Info>
+ Folder-level access controls are a paid feature.
+
+If you're using Infisical Cloud, then they are available under the **Pro plan**.
+If you're self-hosting Infisical, then you should contact [email protected] to purchase a license to use them.
+
+</Info>
+
+## How folder access works
+
+Access in a project normally comes from [role-based access controls](./role-based-access-controls). A role is assigned at the project level and applies everywhere the actor can reach, so treating one folder differently would mean creating a role for a single exception.
+
+A folder grant expresses that exception directly. It pairs one actor with one folder and one role, and inside that folder it **takes precedence** over every role they hold. Use a folder grant when you need to:
+
+- Give someone access to a single folder when their project role grants them none.
+- Hold someone to a lower role inside a sensitive folder than their project role would otherwise allow.
+- Hand out short-lived access to one folder for an incident or a one-off task.
+
+Grants apply to the **exact folder** you set them on, and nowhere else.
+
+<Warning>
+ Folder access is **not recursive**. A grant on `/payments` says nothing about
+ `/payments/keys`. Inside a subfolder, the actor falls back to whatever their
+ project roles allow.
+</Warning>
+
+## Folder access roles
+
+Five roles are available, listed here from least to most privileged. Each role includes everything the roles before it allow.
+
+| Role | What it allows |
+| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| **List** | See secret names and metadata without their values. Read secret imports, tags, and the configuration of secret syncs, secret rotations, and honey tokens. |
+| **Read** | Everything in List, plus reading secret values, viewing commit history, generating dynamic secret leases, and subscribing to secret events. |
+| **Edit** | Everything in Read, plus creating, editing, and deleting secrets and secret imports. |
+| **Manage** | Everything in Edit, plus managing secret rotations, dynamic secret root credentials, honey tokens, and secret syncs, including reading the credentials they generate. |
+| **Full Access** | Everything in Manage, plus deleting subfolders of this folder and granting or revoking access to it. |
+
+Full Access is scoped to the folder it is granted on. It lets the holder delete subfolders of that folder and manage who else has access to it. It does not let them delete the granted folder itself, because deleting a folder is authorized on its parent.
+
+<Warning>
+ Grants **stay with the folder**. Moving or renaming it carries them to the new
+ path, and deleting it removes them permanently, with no restore if the folder
+ is recreated.
+</Warning>
+
+## Granting folder access
+
+<Steps>
+ <Step title="Open the folder access sheet">
+ Navigate to your project's **Secrets** page and select an environment. There are two ways in.
+
+ To set access on the folder you are currently viewing, click the members icon next to the environment selector.
+
+ ![Open folder access from the environment view](/images/platform/access-controls/folder-rbac/open-folder-access-from-environment.png)
+
+ To set access on a folder in the list, hover over its row and click the members icon that appears.
+
+ ![Open folder access from a folder row](/images/platform/access-controls/folder-rbac/open-folder-access-from-folder-row.png)
+
+ </Step>
+ <Step title="Review and set access for current members">
+ The **Manage Permissions** sheet lists everyone who can already reach this folder through their project roles, along with the access each one has. Anyone whose access comes from a project role rather than a grant shows an **Access from project role** button, and hovering over it names the roles responsible.
+
+ ![Manage Permissions sheet](/images/platform/access-controls/folder-rbac/manage-permissions-sheet.png)
+
+ Use the dropdown on any row to set that person's folder role. The same menu carries **Add temporary access** and, once a grant exists, **Remove folder access**. Project admins appear as **Full access on all folders** and cannot be given a folder grant.
+
+ ![Folder role dropdown](/images/platform/access-controls/folder-rbac/folder-role-dropdown.png)
+
+ </Step>
+ <Step title="Add access">
+ Click **Add Access** and pick the user or machine identity. This list includes project members who have no access to this folder at all, which is how you give access to someone whose project role grants them none. Choose a role, and optionally set a duration under **Temporary access**, which defaults to **No expiration**.
+
+ Click **Add Access** to save it.
+
+ ![Add Access sheet](/images/platform/access-controls/folder-rbac/add-folder-access-sheet.png)
+
+ </Step>
+ <Step title="Check the result">
+ An actor whose grant changes what their project role would allow is marked **Overrides project role**.
+
+ ![Overrides project role badge](/images/platform/access-controls/folder-rbac/overrides-project-role-badge.png)
+
+ Each row now shows that actor's role in a dropdown, which you can use to change or remove it later.
+
+ ![Folder access list](/images/platform/access-controls/folder-rbac/folder-access-list.png)
+
+ </Step>
+</Steps>
+
+## Setting temporary access
+
+Any grant can be time-bound. Choose a duration when you add the access, or open the role dropdown on an existing row and set one there.
+
+A row with a time-bound grant shows how long is left. Once the window elapses the grant stops applying immediately, and the actor falls back to their project roles.
+
+![Remaining time on a temporary grant](/images/platform/access-controls/folder-rbac/temporary-access-remaining-time.png)
+
+<Note>
+ Full Access **cannot** be temporary. A Full Access holder can grant folder
+ access to other people, and those grants would outlive their own expiration.
+ Grant Full Access permanently, or use Manage for time-bound access.
+</Note>
+
+For time-bound access to a whole project or environment rather than one folder, see [temporary access](./temporary-access).
+
+## Reviewing folder access
+
+To see every folder a user or machine identity has been granted access to, go to your project's **Access Control** page and open them. The **Folder Access** card lists each grant with its folder, environment, role, and duration, and lets you change or revoke it.
+
+![Folder access on a user's detail page](/images/platform/access-controls/folder-rbac/user-folder-access-details.png)
diff --git a/docs/images/platform/access-controls/folder-rbac/add-folder-access-sheet.png b/docs/images/platform/access-controls/folder-rbac/add-folder-access-sheet.png
new file mode 100644
index 0000000000..c1bd64419d
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/add-folder-access-sheet.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/folder-access-list.png b/docs/images/platform/access-controls/folder-rbac/folder-access-list.png
new file mode 100644
index 0000000000..6307898fe7
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/folder-access-list.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/folder-role-dropdown.png b/docs/images/platform/access-controls/folder-rbac/folder-role-dropdown.png
new file mode 100644
index 0000000000..cadaa0d2f5
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/folder-role-dropdown.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/manage-permissions-sheet.png b/docs/images/platform/access-controls/folder-rbac/manage-permissions-sheet.png
new file mode 100644
index 0000000000..1915e15509
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/manage-permissions-sheet.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-environment.png b/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-environment.png
new file mode 100644
index 0000000000..d1460263d4
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-environment.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-folder-row.png b/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-folder-row.png
new file mode 100644
index 0000000000..830aebe2f3
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/open-folder-access-from-folder-row.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/overrides-project-role-badge.png b/docs/images/platform/access-controls/folder-rbac/overrides-project-role-badge.png
new file mode 100644
index 0000000000..21b4afa91f
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/overrides-project-role-badge.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/temporary-access-remaining-time.png b/docs/images/platform/access-controls/folder-rbac/temporary-access-remaining-time.png
new file mode 100644
index 0000000000..0a6eeb1c55
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/temporary-access-remaining-time.png differ
diff --git a/docs/images/platform/access-controls/folder-rbac/user-folder-access-details.png b/docs/images/platform/access-controls/folder-rbac/user-folder-access-details.png
new file mode 100644
index 0000000000..c5e28c3bd2
Binary files /dev/null and b/docs/images/platform/access-controls/folder-rbac/user-folder-access-details.png differ
diff --git a/frontend/src/pages/project/components/FolderAccessSection/EditFolderAccessSheet.tsx b/frontend/src/pages/project/components/FolderAccessSection/EditFolderAccessSheet.tsx
index 372cd3ae98..ed105ece74 100644
--- a/frontend/src/pages/project/components/FolderAccessSection/EditFolderAccessSheet.tsx
+++ b/frontend/src/pages/project/components/FolderAccessSection/EditFolderAccessSheet.tsx
@@ -1,19 +1,17 @@
import { useState } from "react";
-import { FolderIcon, InfoIcon } from "lucide-react";
+import { FolderIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
import {
Badge,
Button,
+ DocumentationLinkBadge,
Label,
Sheet,
SheetContent,
SheetFooter,
SheetHeader,
- SheetTitle,
- Tooltip,
- TooltipContent,
- TooltipTrigger
+ SheetTitle
} from "@app/components/v3";
import {
SecretFolderRole,
@@ -107,15 +105,7 @@ const EditFolderAccessForm = ({ access, actor, environmentName, onClose }: FormP
<SheetHeader>
<SheetTitle className="flex items-center gap-2">
Edit Folder Access
- <Tooltip>
- <TooltipTrigger asChild>
- <InfoIcon className="size-3.5 text-muted" />
- </TooltipTrigger>
- <TooltipContent side="bottom" className="max-w-72">
- Permissions granted here apply within this folder. The folder itself can still be
- moved, edited, or deleted by anyone with folder edit or delete permissions.
- </TooltipContent>
- </Tooltip>
+ <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/folder-rbac" />
</SheetTitle>
<div className="mt-2 flex min-w-0 items-center gap-2 text-xs">
<FolderIcon className="size-3.5 shrink-0 text-folder" />
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
index 90a254a954..73cf0ea353 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/FolderAccessSheet.tsx
@@ -1,10 +1,11 @@
import { useMemo, useState } from "react";
-import { FolderIcon, InfoIcon, SearchIcon, UsersIcon } from "lucide-react";
+import { FolderIcon, SearchIcon, UsersIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
import {
Badge,
Button,
+ DocumentationLinkBadge,
Empty,
EmptyDescription,
EmptyHeader,
@@ -18,10 +19,7 @@ import {
SheetContent,
SheetHeader,
SheetTitle,
- Skeleton,
- Tooltip,
- TooltipContent,
- TooltipTrigger
+ Skeleton
} from "@app/components/v3";
import { useDebounce } from "@app/hooks";
import {
@@ -188,16 +186,7 @@ export const FolderAccessSheet = ({
<SheetHeader>
<SheetTitle className="flex items-center gap-2">
Manage Permissions
- <Tooltip>
- <TooltipTrigger asChild>
- <InfoIcon className="size-3.5 text-muted" />
- </TooltipTrigger>
- <TooltipContent side="bottom" className="max-w-72">
- Permissions granted here apply only to this folder, nested folders do not inherit
- these permissions. The folder can still be moved, edited, or deleted by anyone
- with folder edit or delete permissions.
- </TooltipContent>
- </Tooltip>
+ <DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/folder-rbac" />
</SheetTitle>
<div className="mt-2 flex min-w-0 items-center gap-2 text-xs">
<Badge variant="project" className="shrink-0">
diff --git a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/folder-access.const.ts b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/folder-access.const.ts
index 875f744fa7..bf6062fb70 100644
--- a/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/folder-access.const.ts
+++ b/frontend/src/pages/secret-manager/OverviewPage/components/FolderAccessSheet/folder-access.const.ts
@@ -32,7 +32,7 @@ export const FOLDER_ROLE_TIERS: TFolderRoleTier[] = [
value: SecretFolderRole.FullAccess,
label: "Full Access",
description:
- "Everything in Configure, plus deleting the folder and granting or revoking access to it."
+ "Everything in Manage, plus deleting the folder and granting or revoking access to it."
}
];