Doc and review tweaks

This commit is contained in:
x032205
2025-05-28 17:28:34 -04:00
parent b949fe06c3
commit 335aada941
2 changed files with 9 additions and 10 deletions

View File

@@ -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({

View File

@@ -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.