Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
improvements: address feedback
Scott Wilsond9bd1ac8785d
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex 0ac2c87647..c2cae374af 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -1803,7 +1803,7 @@ export const AppConnections = {clientSecret: "The client secret used to authenticate with Camunda."},WINDMILL: {- instanceUrl: "The Windmill instance URL to connect with (defaults to https://dev.windmill.app).",+ instanceUrl: "The Windmill instance URL to connect with (defaults to https://app.windmill.dev).",accessToken: "The access token to use to connect with Windmill."}}diff --git a/backend/src/services/app-connection/windmill/windmill-connection-schemas.ts b/backend/src/services/app-connection/windmill/windmill-connection-schemas.tsindex b3f079bb67..eb7f74ecd5 100644--- a/backend/src/services/app-connection/windmill/windmill-connection-schemas.ts+++ b/backend/src/services/app-connection/windmill/windmill-connection-schemas.ts@@ -44,7 +44,7 @@ export const ValidateWindmillConnectionCredentialsSchema = z.discriminatedUnion(z.object({method: z.literal(WindmillConnectionMethod.AccessToken)- .describe(AppConnections?.CREATE(AppConnection.Windmill).method),+ .describe(AppConnections.CREATE(AppConnection.Windmill).method),credentials: WindmillConnectionAccessTokenCredentialsSchema.describe(AppConnections.CREATE(AppConnection.Windmill).credentials)diff --git a/backend/src/services/secret-sync/windmill/windmill-sync-fns.ts b/backend/src/services/secret-sync/windmill/windmill-sync-fns.tsindex 557de2f384..2e2c367406 100644--- a/backend/src/services/secret-sync/windmill/windmill-sync-fns.ts+++ b/backend/src/services/secret-sync/windmill/windmill-sync-fns.ts@@ -36,11 +36,11 @@ const listWindmillVariables = async ({ instanceUrl, workspace, accessToken, path});- // eslint-disable-next-line no-await-in-loop- for await (const variable of variablesPage) {+ for (const variable of variablesPage) {const variableName = variable.path.replace(path, "");if (variable.is_secret) {+ // eslint-disable-next-line no-await-in-loopconst { data: variableValue } = await request.get<string>(`${instanceUrl}/api/w/${workspace}/variables/get_value/${variable.path}`,{diff --git a/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts b/backend/src/services/secret-sync/windmill/windmill-sync-schemas.tsindex dcf402d715..5740e21c97 100644--- a/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts+++ b/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts@@ -30,9 +30,9 @@ const WindmillSyncDestinationConfigSchema = z.object({val.split("/").length >= 3 &&val.split("/")- .filter(Boolean)- .every((segment) => pathCharacterValidator(segment)),- 'Invalid path - must follow Windmill path format. ex: "/f/folder/path/"'+ .slice(0, -1) // Remove last empty segment from trailing slash+ .every((segment) => segment && pathCharacterValidator(segment)),+ 'Invalid path - must follow Windmill path format. ex: "f/folder/path/"').describe(SecretSyncs.DESTINATION_CONFIG.WINDMILL.path)});diff --git a/docs/integrations/app-connections/windmill.mdx b/docs/integrations/app-connections/windmill.mdxindex fef0ade5b7..a87ed2658e 100644--- a/docs/integrations/app-connections/windmill.mdx+++ b/docs/integrations/app-connections/windmill.mdx@@ -7,8 +7,18 @@ Infisical supports connecting to Windmill using an **Access Token** to securely## Get a Windmill Access Token+Ensure the user generating the access token has the required role and permissions based on your use-case:+<Tabs>+ <Tab title="Secret Sync">+ <Note>+ The user generating the access token should be at least a `Developer` in the configured workspace and have `write` permissions for the workspace path secrets will be synced to.+ </Note>+ </Tab>+</Tabs>++<Steps>- <Step title="Navigate to Account Setting">+ <Step title="Navigate to Account Settings">In Windmill, click on your user in the sidebar and select **Account Settings**.</Step>@@ -25,7 +35,7 @@ Infisical supports connecting to Windmill using an **Access Token** to securely</Step><Step title="Copy Access Token">Copy your new access token and save it for the steps below.- + </Step></Steps>diff --git a/docs/integrations/secret-syncs/windmill.mdx b/docs/integrations/secret-syncs/windmill.mdxindex d92c0dc0c4..90d35f8b89 100644--- a/docs/integrations/secret-syncs/windmill.mdx+++ b/docs/integrations/secret-syncs/windmill.mdx@@ -6,7 +6,7 @@ description: "Learn how to configure a Windmill Sync for Infisical."**Prerequisites:**- Set up and add secrets to [Infisical Cloud](https://app.infisical.com)- - Create a [Windmill Connection](/integrations/app-connections/windmill)+ - Create a [Windmill Connection](/integrations/app-connections/windmill) with the required **Secret Sync** permissions<Tabs><Tab title="Infisical UI">@@ -42,7 +42,7 @@ description: "Learn how to configure a Windmill Sync for Infisical."- **Initial Sync Behavior**: Determines how Infisical should resolve the initial sync.- **Overwrite Destination Secrets**: Removes any secrets at the destination endpoint not present in Infisical.- - **Import Secrets (Prioritize Infisical)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Infisical over Vercel when keys conflict.+ - **Import Secrets (Prioritize Infisical)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Infisical over Windmill when keys conflict.- **Import Secrets (Prioritize Windmill)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Windmill over Infisical when keys conflict.- **Auto-Sync Enabled**: If enabled, secrets will automatically be synced from the source location when changes occur. Disable to enforce manual syncing only.- **Disable Secret Deletion**: If enabled, Infisical will not remove secrets from the sync destination. Enable this option if you intend to manage some secrets manually outside of Infisical.diff --git a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsxindex e31bfc156b..8578fa63c6 100644--- a/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx+++ b/frontend/src/components/secret-syncs/forms/SecretSyncDestinationFields/WindmillSyncFields.tsx@@ -72,6 +72,8 @@ export const WindmillSyncFields = () => {)}/><Controller+ name="destinationConfig.path"+ control={control}render={({ field: { value, onChange }, fieldState: { error } }) => (<FormControltooltipClassName="max-w-sm"@@ -97,8 +99,6 @@ export const WindmillSyncFields = () => {<Input value={value} onChange={onChange} placeholder="f/folder-name/" /></FormControl>)}- control={control}- name="destinationConfig.path"/></>);diff --git a/frontend/src/components/secret-syncs/forms/schemas/windmill-sync-destination-schema.ts b/frontend/src/components/secret-syncs/forms/schemas/windmill-sync-destination-schema.tsindex 15f5b249b0..242f771404 100644--- a/frontend/src/components/secret-syncs/forms/schemas/windmill-sync-destination-schema.ts+++ b/frontend/src/components/secret-syncs/forms/schemas/windmill-sync-destination-schema.ts@@ -7,14 +7,14 @@ export const WindmillSyncDestinationSchema = BaseSecretSyncSchema().merge(z.object({destination: z.literal(SecretSync.Windmill),destinationConfig: z.object({- workspace: z.string().trim().min(1, "Project required"),+ workspace: z.string().trim().min(1, "Workspace required"),path: z.string().trim()- .min(1, "Project required")+ .min(1, "Path required").regex(/^([uf])\/([a-zA-Z0-9_-]+)(\/[a-zA-Z0-9_-]+)*\/$/,- 'Invalid path - must follow Windmill path format. ex: "/f/folder/path/"'+ 'Invalid path - must follow Windmill path format. ex: "f/folder/path/"')})})