Skip to content

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

Doc and review tweaks

x032205335aada9414b
diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.ts
index 6118d27537..6531039385 100644
--- a/backend/src/server/routes/v1/secret-sharing-router.ts
+++ b/backend/src/server/routes/v1/secret-sharing-router.ts
@@ -153,7 +153,13 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>
expiresAt: z.string(),
expiresAfterViews: z.number().min(1).optional(),
accessType: z.nativeEnum(SecretSharingAccessType).default(SecretSharingAccessType.Organization),
- emails: z.string().email().array().max(100).optional()
+ emails: z
+ .string()
+ .email()
+ .array()
+ .max(100)
+ .optional()
+ .transform((val) => (val ? [...new Set(val)] : undefined))
}),
response: {
200: z.object({
diff --git a/docs/documentation/platform/secret-sharing.mdx b/docs/documentation/platform/secret-sharing.mdx
index 8701cdcbdb..6c78359cdc 100644
--- a/docs/documentation/platform/secret-sharing.mdx
+++ b/docs/documentation/platform/secret-sharing.mdx
@@ -20,18 +20,11 @@ Infisical offers a secure solution for sharing secrets over the internet in a ti
- **Your Secret:** The secret content.
- **Password (optional):** A password which will be required when viewing the secret.
- - **Limit access to people within organization:** Only lets people within your organization view the secret.
- <Note>
- Enabling this feature requires secret viewers to log into Infisical.
- </Note>
-
+ - **Limit access to people within organization:** Only lets people within your organization view the secret. Enabling this feature requires secret viewers to log into Infisical.
- **Expires In:** The time it'll take for the secret to expire.
- **Max Views:** How many times the secret can be viewed before it's destroyed.
- - **Authorized Emails (optional):** Emails which are authorized to view this secret.
- <Note>
- Enabling this feature requires secret viewers to log into Infisical. Each email will receive the shared secret link in their inbox after creation.
- </Note>
+ - **Authorized Emails (optional):** Emails which are authorized to view this secret. Enabling this feature requires secret viewers to log into Infisical. Each email will receive the shared secret link in their inbox after creation.
</Step>
<Step title="Copy Link and Share Secret">
After creating the shared secret, its link will be displayed. Share this with the intended recipients.