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
Greptile review fixes
x0322051a14c71564bf
diff --git a/backend/src/services/secret-sync/secret-sync-schemas.ts b/backend/src/services/secret-sync/secret-sync-schemas.tsindex 5b599215f6..3622ef3d04 100644--- a/backend/src/services/secret-sync/secret-sync-schemas.ts+++ b/backend/src/services/secret-sync/secret-sync-schemas.ts@@ -41,10 +41,11 @@ const BaseSyncOptionsSchema = <T extends AnyZodObject | undefined = undefined>({const allowedContentRegex = new RE2(`^([a-zA-Z0-9_\\-/]|${allowedPlaceholdersRegexPart})*$`);const contentIsValid = allowedContentRegex.test(val);- // Check if {{secretKey}} appears exactly once- const secretKeyCount = (val.match(/\{\{secretKey\}\}/g) || []).length;+ // Check if {{secretKey}} is present+ const secretKeyRegex = new RE2(/\{\{secretKey\}\}/);+ const secretKeyIsPresent = secretKeyRegex.test(val);- return contentIsValid && secretKeyCount === 1;+ return contentIsValid && secretKeyIsPresent;},{message:diff --git a/docs/integrations/secret-syncs/1password.mdx b/docs/integrations/secret-syncs/1password.mdxindex c259e57bf7..6e2b96b4aa 100644--- a/docs/integrations/secret-syncs/1password.mdx+++ b/docs/integrations/secret-syncs/1password.mdx@@ -46,7 +46,7 @@ description: "Learn how to configure a 1Password Sync for Infisical."- **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 1Password when keys conflict.- **Import Secrets (Prioritize 1Password)**: Imports secrets from the destination endpoint before syncing, prioritizing values from 1Password over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/aws-parameter-store.mdx b/docs/integrations/secret-syncs/aws-parameter-store.mdxindex b1ceade0da..abc52d9713 100644--- a/docs/integrations/secret-syncs/aws-parameter-store.mdx+++ b/docs/integrations/secret-syncs/aws-parameter-store.mdx@@ -40,7 +40,7 @@ description: "Learn how to configure an AWS Parameter Store Sync for Infisical."- **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 Parameter Store when keys conflict.- **Import Secrets (Prioritize AWS Parameter Store)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Parameter Store over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/aws-secrets-manager.mdx b/docs/integrations/secret-syncs/aws-secrets-manager.mdxindex e4c85e21b0..91c606b0ac 100644--- a/docs/integrations/secret-syncs/aws-secrets-manager.mdx+++ b/docs/integrations/secret-syncs/aws-secrets-manager.mdx@@ -43,7 +43,7 @@ description: "Learn how to configure an AWS Secrets Manager Sync for Infisical."- **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 Secrets Manager when keys conflict.- **Import Secrets (Prioritize AWS Secrets Manager)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Secrets Manager over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/azure-app-configuration.mdx b/docs/integrations/secret-syncs/azure-app-configuration.mdxindex cc1da42497..f4aaa7edda 100644--- a/docs/integrations/secret-syncs/azure-app-configuration.mdx+++ b/docs/integrations/secret-syncs/azure-app-configuration.mdx@@ -48,7 +48,7 @@ description: "Learn how to configure an Azure App Configuration Sync for Infisic- **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 Secrets Manager when keys conflict.- **Import Secrets (Prioritize Azure App Configuration)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Secrets Manager over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/azure-key-vault.mdx b/docs/integrations/secret-syncs/azure-key-vault.mdxindex b676bc513f..d19a0162ee 100644--- a/docs/integrations/secret-syncs/azure-key-vault.mdx+++ b/docs/integrations/secret-syncs/azure-key-vault.mdx@@ -51,7 +51,7 @@ description: "Learn how to configure a Azure Key Vault Sync for Infisical."- **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 Secrets Manager when keys conflict.- **Import Secrets (Prioritize Azure Key Vault)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Secrets Manager over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/camunda.mdx b/docs/integrations/secret-syncs/camunda.mdxindex ee97ed6ac5..0e977aa27e 100644--- a/docs/integrations/secret-syncs/camunda.mdx+++ b/docs/integrations/secret-syncs/camunda.mdx@@ -39,7 +39,7 @@ description: "Learn how to configure a Camunda Sync for Infisical."- **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 Camunda when keys conflict.- **Import Secrets (Prioritize Camunda)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Camunda over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/databricks.mdx b/docs/integrations/secret-syncs/databricks.mdxindex 5a303d9b0a..e115374207 100644--- a/docs/integrations/secret-syncs/databricks.mdx+++ b/docs/integrations/secret-syncs/databricks.mdx@@ -46,7 +46,7 @@ description: "Learn how to configure a Databricks Sync for Infisical."<Note>Databricks does not support importing secrets.</Note>- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/gcp-secret-manager.mdx b/docs/integrations/secret-syncs/gcp-secret-manager.mdxindex 5f1fcc3262..df490c6b54 100644--- a/docs/integrations/secret-syncs/gcp-secret-manager.mdx+++ b/docs/integrations/secret-syncs/gcp-secret-manager.mdx@@ -42,7 +42,7 @@ description: "Learn how to configure a GCP Secret Manager Sync for Infisical."- **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 GCP Secret Manager when keys conflict.- **Import Secrets (Prioritize GCP Secret Manager)**: Imports secrets from the destination endpoint before syncing, prioritizing values from GCP Secret Manager over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/github.mdx b/docs/integrations/secret-syncs/github.mdxindex 3496807794..14b2d9a7f4 100644--- a/docs/integrations/secret-syncs/github.mdx+++ b/docs/integrations/secret-syncs/github.mdx@@ -62,7 +62,7 @@ description: "Learn how to configure a GitHub Sync for Infisical."<Note>GitHub does not support importing secrets.</Note>- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/hashicorp-vault.mdx b/docs/integrations/secret-syncs/hashicorp-vault.mdxindex 143303a007..fae2e09624 100644--- a/docs/integrations/secret-syncs/hashicorp-vault.mdx+++ b/docs/integrations/secret-syncs/hashicorp-vault.mdx@@ -54,7 +54,7 @@ description: "Learn how to configure a Hashicorp Vault Sync for Infisical."- **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 Hashicorp Vault when keys conflict.- **Import Secrets (Prioritize Hashicorp Vault)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Hashicorp Vault over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/humanitec.mdx b/docs/integrations/secret-syncs/humanitec.mdxindex 208c75df90..f252724fb0 100644--- a/docs/integrations/secret-syncs/humanitec.mdx+++ b/docs/integrations/secret-syncs/humanitec.mdx@@ -55,7 +55,7 @@ description: "Learn how to configure a Humanitec Sync for Infisical."<Note>Humanitec does not support importing secrets.</Note>- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/oci-vault.mdx b/docs/integrations/secret-syncs/oci-vault.mdxindex db5abfb912..396b4d13ff 100644--- a/docs/integrations/secret-syncs/oci-vault.mdx+++ b/docs/integrations/secret-syncs/oci-vault.mdx@@ -57,7 +57,7 @@ description: "Learn how to configure an Oracle Cloud Infrastructure Vault Sync f- **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 OCI Vault when keys conflict.- **Import Secrets (Prioritize OCI Vault)**: Imports secrets from the destination endpoint before syncing, prioritizing values from OCI Vault over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/teamcity.mdx b/docs/integrations/secret-syncs/teamcity.mdxindex f5b2bf9333..52f2c1bac1 100644--- a/docs/integrations/secret-syncs/teamcity.mdx+++ b/docs/integrations/secret-syncs/teamcity.mdx@@ -48,7 +48,7 @@ description: "Learn how to configure a TeamCity Sync for Infisical."<Note>Infisical only syncs secrets from within the target scope; inherited secrets will not be imported.</Note>- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/terraform-cloud.mdx b/docs/integrations/secret-syncs/terraform-cloud.mdxindex d8399db10b..c48b876092 100644--- a/docs/integrations/secret-syncs/terraform-cloud.mdx+++ b/docs/integrations/secret-syncs/terraform-cloud.mdx@@ -56,7 +56,7 @@ description: "Learn how to configure a Terraform Cloud Sync for Infisical."<Note>Terraform Cloud does not support importing secrets.</Note>- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/vercel.mdx b/docs/integrations/secret-syncs/vercel.mdxindex 4553b46c66..74cffbc11b 100644--- a/docs/integrations/secret-syncs/vercel.mdx+++ b/docs/integrations/secret-syncs/vercel.mdx@@ -43,7 +43,7 @@ description: "Learn how to configure a Vercel Sync for Infisical."- **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 Vercel)**: Imports secrets from the destination endpoint before syncing, prioritizing values from Vercel over Infisical when keys conflict.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>diff --git a/docs/integrations/secret-syncs/windmill.mdx b/docs/integrations/secret-syncs/windmill.mdxindex 56dda245d6..c0757ef37f 100644--- a/docs/integrations/secret-syncs/windmill.mdx+++ b/docs/integrations/secret-syncs/windmill.mdx@@ -44,7 +44,7 @@ description: "Learn how to configure a Windmill Sync for Infisical."- **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 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.- - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and {{environment}} for the environment.+ - **Key Schema**: Template that determines how secret names are transformed when syncing, using `{{secretKey}}` as a placeholder for the original secret name and `{{environment}}` for the environment.<Note>We highly recommend using a Key Schema to ensure that Infisical only manages the specific keys you intend, keeping everything else untouched.</Note>