doc(secret-imports): updated docs for secret import

This commit is contained in:
akhilmhdh
2023-07-17 23:10:42 +05:30
parent cf45c3dc8b
commit 23cd6fd861
3 changed files with 13 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
---
title: "Reference Secrets"
title: "Reference/Import Secrets"
description: "How to use reference secrets in Infisical"
---
@@ -34,4 +34,16 @@ For instance, to access a secret 'A' composed of secrets 'B' and 'C' from differ
When using [service tokens](./token) to fetch referenced secrets, ensure the service token has read access to all referenced environments and folders.
Without proper permissions, the final secret value may be incomplete.
## Import multiple secrets from a environment secret path
You can import or link another environment's folder to your dashboard to inherit its secrets. This is useful when you need to share secrets across multiple environments.
To add an import/link, just click on `Secret Link` button and provide an `environment` and `secret path` to which the secrets must be pulled.
![secret import change order](../../images/secret-import-add.png)
The import hierarchy is "last one wins." This means that the order in which you import matters. The last folder you import will override the secrets from any previous folders. Additionally, any secrets you define in your dashboard will override the secrets from any imported folders.
You can change the order by dragging and positioning according using the `Change Order` drag handle.
![secret import change order](../../images/secret-import-change-order.png