Skip to content

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

add screenshots and reorganize doc

Matheus Nogueira0461d29ce14a
diff --git a/docs/documentation/platform/secret-reference.mdx b/docs/documentation/platform/secret-reference.mdx
index 6f9af41ad7..532c2b2a9b 100644
--- a/docs/documentation/platform/secret-reference.mdx
+++ b/docs/documentation/platform/secret-reference.mdx
@@ -55,23 +55,6 @@ Here are a few more helpful examples for how to reference secrets in different c
| `${dev.KEY2}` | `dev` | `/` (root of dev environment) | KEY2 |
| `${prod.frontend.KEY2}` | `prod` | `/frontend` | KEY2 |
-### Cross-Project References
-
-You can reference secrets from a different project using the `@project-slug` prefix. This allows you to compose secret values across projects without duplicating them.
-
-| Reference syntax | Project slug | Environment | Folder | Secret Key |
-| --------------------------------------- | -------------- | ----------- | ------------ | ---------- |
-| `${@backend-api.prod.KEY1}` | `backend-api` | `prod` | `/` (root) | KEY1 |
-| `${@backend-api.dev.database.DB_HOST}` | `backend-api` | `dev` | `/database` | DB_HOST |
-
-<Note>
- Cross-project references require a **Project Grant** from the source project and the organization-level **cross-project secret sharing** toggle to be enabled. See [Cross-Project Secret Sharing](#cross-project-secret-sharing) below for setup details.
-</Note>
-
-<Warning>
- Cross-project references are **not recursively expanded**. If the referenced secret in the source project itself contains a cross-project reference to yet another project, that nested reference will not be resolved. Only same-project references within the source secret are expanded.
-</Warning>
-
## Secret Imports
Infisical's Secret Imports functionality makes it possible to import the secrets from another environment or folder into the current folder context.
@@ -97,61 +80,6 @@ To reorder a secret import, hover over it and drag the arrows handle to the posi
![reorder secret import](../../images/platform/secret-references-imports/secret-import-reorder.png)
-### Cross-Project Imports
-
-You can also import secrets from a different project entirely. Cross-project imports work the same way as regular imports, but the source environment and folder belong to another project within the same organization.
-
-When creating a cross-project import, you select the source project, environment, and folder path. The import will pull secrets from that location into your current folder context.
-
-<Note>
- Cross-project imports require a **Project Grant** from the source project and the organization-level **cross-project secret sharing** toggle to be enabled. See [Cross-Project Secret Sharing](#cross-project-secret-sharing) below for setup details.
-</Note>
-
-<Warning>
- Cross-project imports are **not transitive**. If the source folder in the foreign project has its own cross-project imports (pointing to a third project, or back to the original project), those nested cross-project imports will not be followed. Only imports that stay within the same source project are resolved recursively.
-</Warning>
-
-## Cross-Project Secret Sharing
-
-Cross-project secret sharing allows secrets to be referenced or imported across different projects within the same organization. This is useful when multiple projects share common infrastructure secrets (such as database hosts, API keys, or service URLs) without duplicating them.
-
-### Enabling Cross-Project Secret Sharing
-
-Cross-project sharing is controlled by an **organization-level toggle**. An organization admin must enable it before any cross-project references or imports can be created:
-
-1. Navigate to the **Secrets Management** product page.
-3. Navigate to **Product Settings** page.
-2. Enable the **Allow cross-project secret sharing** option.
-
-When this toggle is disabled, all cross-project references resolve to empty strings and cross-project imports are ignored.
-
-### Project Grants
-
-<Info>
- Project Grants is currently in **beta**. We are progressively rolling out this feature and it may undergo changes based on feedback.
-</Info>
-
-A **Project Grant** is the authorization mechanism that controls which projects can access secrets from a given source project. Grants are created from the **source project** (the project that owns the secrets) and specify:
-
-- **Source environment and folder path** - the specific location in the source project being shared.
-- **Target project** - the project that is allowed to reference or import secrets from that location.
-
-The key benefit of project grants is that **users in the target project do not need any permissions in the source project**. As long as a grant exists from the source project to the target project for a given folder, users in the target project can create cross-project references and imports for that folder.
-
-To manage project grants, navigate to the **Project Settings** in the source project and look for the **Secret Sharing / Grants** section.
-
-### Permissions
-
-- **Creating a grant** requires the `Create Grant` permission on the `Project Grant` subject in the source project.
-- **Revoking a grant** requires the `Revoke Grant` permission on the `Project Grant` subject in the source project.
-- **Creating a cross-project import** in the target project only requires the standard `Create` permission on `Secret Imports` in that project. No permissions in the source project are needed.
-
-### Limitations
-
-- **No transitive cross-project imports**: If Project A imports from Project B, and Project B itself has a cross-project import from Project C, the secrets from Project C will not appear in Project A. Only imports that stay within Project B are followed.
-- **No transitive cross-project references**: If a secret in Project B contains a `${@project-c.prod.KEY}` reference, that reference will not be resolved when Project A reads the secret through a cross-project reference or import. Only same-project references within the source secret are expanded.
-- **Same organization only**: Cross-project sharing is limited to projects within the same organization.
-
## Relative Reference Resolution in Imported Secrets
<Note>
@@ -195,4 +123,73 @@ The `${DB_HOST}` local reference resolves to staging's value. Without relative r
<Warning>
Only one level of imports is searched during reference expansion. If prod imports `/shared`, and `/shared` imports `/base`, secrets in `/base` are not visible.
-</Warning>
\ No newline at end of file
+</Warning>
+
+## Cross-Project Secret Sharing
+
+Cross-project secret sharing allows secrets to be referenced or imported across different projects within the same organization. This is useful when multiple projects share common infrastructure secrets (such as database hosts, API keys, or service URLs) without duplicating them.
+
+### Enabling Cross-Project Secret Sharing
+
+Cross-project sharing is controlled by an organization-level toggle. An organization admin must enable it before any cross-project references or imports can be created:
+
+1. Navigate to the **Secrets Management** product page.
+![secrets management](../../images/platform/secret-references-imports/01-secrets-management.png)
+2. Navigate to **Product Settings** page.
+![product settings](../../images/platform/secret-references-imports/02-product-settings.png)
+3. Enable the **Allow cross-project secret sharing** option.
+![enable secret sharing](../../images/platform/secret-references-imports/03-enable-secret-sharing.png)
+
+When this toggle is disabled, all cross-project references resolve to empty strings and cross-project imports are ignored.
+
+### Project Grants
+
+A Project Grant is the authorization mechanism that controls which projects can access secrets from a given source project. Grants are created from the **source project** (the project that owns the secrets) and specify:
+
+- **Source environment and folder path**: the specific location in the source project being shared.
+- **Target project**: the project that is allowed to reference or import secrets from that location.
+
+The key benefit of project grants is that **users in the target project do not need any permissions in the source project**. As long as a grant exists from the source project to the target project for a given folder, users in the target project can create cross-project references and imports for that folder.
+
+To create a new grant:
+
+1. Navigate to **Project Settings** in the source project.
+![project settings](../../images/platform/secret-references-imports/04-project-settings.png)
+2. Go to the **Policies** tab.
+![policies tab](../../images/platform/secret-references-imports/05-project-policies.png)
+3. Under **Cross-Project Secret Sharing**, click **Add Grant**.
+![add grant](../../images/platform/secret-references-imports/06-create-project-grant.png)
+4. Fill in the **environment** and **folder path** you want to share, and choose the **target project** that should have access.
+![grant form](../../images/platform/secret-references-imports/07-share-project-grant.png)
+
+### Cross-Project References
+
+You can reference secrets from a different project using the `@project-slug` prefix. This allows you to compose secret values across projects without duplicating them.
+
+| Reference syntax | Project slug | Environment | Folder | Secret Key |
+| --------------------------------------- | -------------- | ----------- | ------------ | ---------- |
+| `${@backend-api.prod.KEY1}` | `backend-api` | `prod` | `/` (root) | KEY1 |
+| `${@backend-api.dev.database.DB_HOST}` | `backend-api` | `dev` | `/database` | DB_HOST |
+
+<Warning>
+ Cross-project references are **not recursively expanded**. If the referenced secret in the source project itself contains a cross-project reference to yet another project, that nested reference will not be resolved. Only same-project references within the source secret are expanded.
+</Warning>
+
+### Cross-Project Imports
+
+You can also import secrets from a different project entirely. Cross-project imports work the same way as regular imports, but the source environment and folder belong to another project within the same organization.
+
+To create a cross-project import:
+
+1. Click the downward chevron next to **Add Secret** and select **Add Import**.
+![add secret import](../../images/platform/secret-references-imports/08-add-secret-import.png)
+2. Select **Other Project** as the import source.
+![select other project](../../images/platform/secret-references-imports/09-other-project.png)
+3. Choose the source **project**, **environment**, and **folder path**, then click **Create Import**.
+![fill import details](../../images/platform/secret-references-imports/10-create-import.png)
+4. The cross-project import is now created and will appear on the secrets dashboard.
+![import created](../../images/platform/secret-references-imports/11-created-secret-import.png)
+
+<Warning>
+ Cross-project imports are **not transitive**. If the source folder in the foreign project has its own cross-project imports (pointing to a third project, or back to the original project), those nested cross-project imports will not be followed. Only imports that stay within the same source project are resolved recursively.
+</Warning>
diff --git a/docs/images/platform/secret-references-imports/01-secrets-management.png b/docs/images/platform/secret-references-imports/01-secrets-management.png
new file mode 100644
index 0000000000..1da2ff2b5e
Binary files /dev/null and b/docs/images/platform/secret-references-imports/01-secrets-management.png differ
diff --git a/docs/images/platform/secret-references-imports/02-product-settings.png b/docs/images/platform/secret-references-imports/02-product-settings.png
new file mode 100644
index 0000000000..fce813c254
Binary files /dev/null and b/docs/images/platform/secret-references-imports/02-product-settings.png differ
diff --git a/docs/images/platform/secret-references-imports/03-enable-secret-sharing.png b/docs/images/platform/secret-references-imports/03-enable-secret-sharing.png
new file mode 100644
index 0000000000..b7fdf608e8
Binary files /dev/null and b/docs/images/platform/secret-references-imports/03-enable-secret-sharing.png differ
diff --git a/docs/images/platform/secret-references-imports/04-project-settings.png b/docs/images/platform/secret-references-imports/04-project-settings.png
new file mode 100644
index 0000000000..eb59d56282
Binary files /dev/null and b/docs/images/platform/secret-references-imports/04-project-settings.png differ
diff --git a/docs/images/platform/secret-references-imports/05-project-policies.png b/docs/images/platform/secret-references-imports/05-project-policies.png
new file mode 100644
index 0000000000..259072a9dc
Binary files /dev/null and b/docs/images/platform/secret-references-imports/05-project-policies.png differ
diff --git a/docs/images/platform/secret-references-imports/06-create-project-grant.png b/docs/images/platform/secret-references-imports/06-create-project-grant.png
new file mode 100644
index 0000000000..9d8e0c369b
Binary files /dev/null and b/docs/images/platform/secret-references-imports/06-create-project-grant.png differ
diff --git a/docs/images/platform/secret-references-imports/07-share-project-grant.png b/docs/images/platform/secret-references-imports/07-share-project-grant.png
new file mode 100644
index 0000000000..ca344ff000
Binary files /dev/null and b/docs/images/platform/secret-references-imports/07-share-project-grant.png differ
diff --git a/docs/images/platform/secret-references-imports/08-add-secret-import.png b/docs/images/platform/secret-references-imports/08-add-secret-import.png
new file mode 100644
index 0000000000..359292e6b0
Binary files /dev/null and b/docs/images/platform/secret-references-imports/08-add-secret-import.png differ
diff --git a/docs/images/platform/secret-references-imports/09-other-project.png b/docs/images/platform/secret-references-imports/09-other-project.png
new file mode 100644
index 0000000000..40b4cd17f3
Binary files /dev/null and b/docs/images/platform/secret-references-imports/09-other-project.png differ
diff --git a/docs/images/platform/secret-references-imports/10-create-import.png b/docs/images/platform/secret-references-imports/10-create-import.png
new file mode 100644
index 0000000000..c38bb8756b
Binary files /dev/null and b/docs/images/platform/secret-references-imports/10-create-import.png differ
diff --git a/docs/images/platform/secret-references-imports/11-created-secret-import.png b/docs/images/platform/secret-references-imports/11-created-secret-import.png
new file mode 100644
index 0000000000..078dc338e5
Binary files /dev/null and b/docs/images/platform/secret-references-imports/11-created-secret-import.png differ