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
addressed requested changes
Daniel Hougaard89500e5bfda6
diff --git a/backend/src/ee/services/secret-sync/chef/chef-sync-schemas.ts b/backend/src/ee/services/secret-sync/chef/chef-sync-schemas.tsindex 03b5e7f777..20e9e115ce 100644--- a/backend/src/ee/services/secret-sync/chef/chef-sync-schemas.ts+++ b/backend/src/ee/services/secret-sync/chef/chef-sync-schemas.ts@@ -47,6 +47,7 @@ export const ChefSyncListItemSchema = zconnection: z.literal(AppConnection.Chef),destination: z.literal(SecretSync.Chef),canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true),enterprise: z.boolean()}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Chef] }));diff --git a/backend/src/ee/services/secret-sync/oci-vault/oci-vault-sync-schemas.ts b/backend/src/ee/services/secret-sync/oci-vault/oci-vault-sync-schemas.tsindex 7f03194208..1516524e43 100644--- a/backend/src/ee/services/secret-sync/oci-vault/oci-vault-sync-schemas.ts+++ b/backend/src/ee/services/secret-sync/oci-vault/oci-vault-sync-schemas.ts@@ -71,6 +71,7 @@ export const OCIVaultSyncListItemSchema = zconnection: z.literal(AppConnection.OCI),destination: z.literal(SecretSync.OCIVault),canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true),enterprise: z.boolean()}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.OCIVault] }));diff --git a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-service.ts b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-service.tsindex 598439ca51..f282401415 100644--- a/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-service.ts+++ b/backend/src/services/app-connection/azure-entra-id/azure-entra-id-connection-service.ts@@ -80,9 +80,7 @@ export const azureEntraIdConnectionService = (`fetch synchronization jobs for service principal '${sp.displayName}'`);- const hasScimJob = jobsData.value.some((job) => job.templateId?.toLowerCase().includes("scim"));-- if (hasScimJob) {+ if (jobsData.value.length > 0) {scimServicePrincipals.push({id: sp.id,displayName: sp.displayName,diff --git a/backend/src/services/secret-sync/1password/1password-sync-schemas.ts b/backend/src/services/secret-sync/1password/1password-sync-schemas.tsindex 70aff62f45..7286e1a3dc 100644--- a/backend/src/services/secret-sync/1password/1password-sync-schemas.ts+++ b/backend/src/services/secret-sync/1password/1password-sync-schemas.ts@@ -45,6 +45,7 @@ export const OnePassSyncListItemSchema = zname: z.literal("1Password"),connection: z.literal(AppConnection.OnePass),destination: z.literal(SecretSync.OnePass),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.OnePass] }));diff --git a/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-schemas.ts b/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-schemas.tsindex 587ac13e87..c035f24e21 100644--- a/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-schemas.ts+++ b/backend/src/services/secret-sync/aws-parameter-store/aws-parameter-store-sync-schemas.ts@@ -135,6 +135,7 @@ export const AwsParameterStoreSyncListItemSchema = zname: z.literal("AWS Parameter Store"),connection: z.literal(AppConnection.AWS),destination: z.literal(SecretSync.AWSParameterStore),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.AWSParameterStore] }));diff --git a/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-schemas.ts b/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-schemas.tsindex 44984e1b37..f5981ad943 100644--- a/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-schemas.ts+++ b/backend/src/services/secret-sync/aws-secrets-manager/aws-secrets-manager-sync-schemas.ts@@ -173,6 +173,7 @@ export const AwsSecretsManagerSyncListItemSchema = zname: z.literal("AWS Secrets Manager"),connection: z.literal(AppConnection.AWS),destination: z.literal(SecretSync.AWSSecretsManager),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.AWSSecretsManager] }));diff --git a/backend/src/services/secret-sync/azure-app-configuration/azure-app-configuration-sync-schemas.ts b/backend/src/services/secret-sync/azure-app-configuration/azure-app-configuration-sync-schemas.tsindex b6f2a77d65..832f94e3b1 100644--- a/backend/src/services/secret-sync/azure-app-configuration/azure-app-configuration-sync-schemas.ts+++ b/backend/src/services/secret-sync/azure-app-configuration/azure-app-configuration-sync-schemas.ts@@ -51,6 +51,7 @@ export const AzureAppConfigurationSyncListItemSchema = zname: z.literal("Azure App Configuration"),connection: z.literal(AppConnection.AzureAppConfiguration),destination: z.literal(SecretSync.AzureAppConfiguration),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.AzureAppConfiguration] }));diff --git a/backend/src/services/secret-sync/azure-devops/azure-devops-sync-schemas.ts b/backend/src/services/secret-sync/azure-devops/azure-devops-sync-schemas.tsindex 2dc178b2ba..0e67d22fc4 100644--- a/backend/src/services/secret-sync/azure-devops/azure-devops-sync-schemas.ts+++ b/backend/src/services/secret-sync/azure-devops/azure-devops-sync-schemas.ts@@ -51,6 +51,7 @@ export const AzureDevOpsSyncListItemSchema = zname: z.literal("Azure DevOps"),connection: z.literal(AppConnection.AzureDevOps),destination: z.literal(SecretSync.AzureDevOps),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.AzureDevOps] }));diff --git a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.tsindex 1c89fca908..ad27329bc3 100644--- a/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts+++ b/backend/src/services/secret-sync/azure-entra-id-scim/azure-entra-id-scim-sync-fns.ts@@ -36,7 +36,9 @@ export const AzureEntraIdScimSyncFns = {const secretEntry = Object.entries(secretMap).find(([, s]) => s.id === secretId);if (!secretEntry) {throw new SecretSyncError({- error: new Error(`Secret with ID "${secretId}" not found in source`),+ error: new Error(+ `Secret with ID "${secretId}" not found in source. Verify if the secret used for this sync wasn't deleted or moved.`+ ),shouldRetry: false});}diff --git a/backend/src/services/secret-sync/azure-key-vault/azure-key-vault-sync-schemas.ts b/backend/src/services/secret-sync/azure-key-vault/azure-key-vault-sync-schemas.tsindex daf936a753..6a741a144f 100644--- a/backend/src/services/secret-sync/azure-key-vault/azure-key-vault-sync-schemas.ts+++ b/backend/src/services/secret-sync/azure-key-vault/azure-key-vault-sync-schemas.ts@@ -48,6 +48,7 @@ export const AzureKeyVaultSyncListItemSchema = zname: z.literal("Azure Key Vault"),connection: z.literal(AppConnection.AzureKeyVault),destination: z.literal(SecretSync.AzureKeyVault),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.AzureKeyVault] }));diff --git a/backend/src/services/secret-sync/bitbucket/bitbucket-sync-schemas.ts b/backend/src/services/secret-sync/bitbucket/bitbucket-sync-schemas.tsindex bfd2ac9bc7..8f410b3401 100644--- a/backend/src/services/secret-sync/bitbucket/bitbucket-sync-schemas.ts+++ b/backend/src/services/secret-sync/bitbucket/bitbucket-sync-schemas.ts@@ -46,6 +46,7 @@ export const BitbucketSyncListItemSchema = zname: z.literal("Bitbucket"),connection: z.literal(AppConnection.Bitbucket),destination: z.literal(SecretSync.Bitbucket),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Bitbucket] }));diff --git a/backend/src/services/secret-sync/camunda/camunda-sync-schemas.ts b/backend/src/services/secret-sync/camunda/camunda-sync-schemas.tsindex 468563c894..1be7c8ef64 100644--- a/backend/src/services/secret-sync/camunda/camunda-sync-schemas.ts+++ b/backend/src/services/secret-sync/camunda/camunda-sync-schemas.ts@@ -48,6 +48,7 @@ export const CamundaSyncListItemSchema = zname: z.literal("Camunda"),connection: z.literal(AppConnection.Camunda),destination: z.literal(SecretSync.Camunda),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Camunda] }));diff --git a/backend/src/services/secret-sync/checkly/checkly-sync-schemas.ts b/backend/src/services/secret-sync/checkly/checkly-sync-schemas.tsindex 276e3702f2..1b6b5429e0 100644--- a/backend/src/services/secret-sync/checkly/checkly-sync-schemas.ts+++ b/backend/src/services/secret-sync/checkly/checkly-sync-schemas.ts@@ -54,6 +54,7 @@ export const ChecklySyncListItemSchema = zname: z.literal("Checkly"),connection: z.literal(AppConnection.Checkly),destination: z.literal(SecretSync.Checkly),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Checkly] }));diff --git a/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts b/backend/src/services/secret-sync/circleci/circleci-sync-schemas.tsindex 286f2b2bf9..7802d62b06 100644--- a/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts+++ b/backend/src/services/secret-sync/circleci/circleci-sync-schemas.ts@@ -59,6 +59,7 @@ export const CircleCISyncListItemSchema = zname: z.literal("CircleCI"),connection: z.literal(AppConnection.CircleCI),destination: z.literal(SecretSync.CircleCI),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.CircleCI] }));diff --git a/backend/src/services/secret-sync/cloudflare-pages/cloudflare-pages-schema.ts b/backend/src/services/secret-sync/cloudflare-pages/cloudflare-pages-schema.tsindex 66fc2ca822..47a3b6564c 100644--- a/backend/src/services/secret-sync/cloudflare-pages/cloudflare-pages-schema.ts+++ b/backend/src/services/secret-sync/cloudflare-pages/cloudflare-pages-schema.ts@@ -54,6 +54,7 @@ export const CloudflarePagesSyncListItemSchema = zname: z.literal("Cloudflare Pages"),connection: z.literal(AppConnection.Cloudflare),destination: z.literal(SecretSync.CloudflarePages),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.CloudflarePages] }));diff --git a/backend/src/services/secret-sync/cloudflare-workers/cloudflare-workers-schemas.ts b/backend/src/services/secret-sync/cloudflare-workers/cloudflare-workers-schemas.tsindex 414014322a..bd9640d9d8 100644--- a/backend/src/services/secret-sync/cloudflare-workers/cloudflare-workers-schemas.ts+++ b/backend/src/services/secret-sync/cloudflare-workers/cloudflare-workers-schemas.ts@@ -56,6 +56,7 @@ export const CloudflareWorkersSyncListItemSchema = zname: z.literal("Cloudflare Workers"),connection: z.literal(AppConnection.Cloudflare),destination: z.literal(SecretSync.CloudflareWorkers),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.CloudflareWorkers] }));diff --git a/backend/src/services/secret-sync/databricks/databricks-sync-schemas.ts b/backend/src/services/secret-sync/databricks/databricks-sync-schemas.tsindex 934334eee2..7e30d14fc0 100644--- a/backend/src/services/secret-sync/databricks/databricks-sync-schemas.ts+++ b/backend/src/services/secret-sync/databricks/databricks-sync-schemas.ts@@ -44,6 +44,7 @@ export const DatabricksSyncListItemSchema = zname: z.literal("Databricks"),connection: z.literal(AppConnection.Databricks),destination: z.literal(SecretSync.Databricks),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Databricks] }));diff --git a/backend/src/services/secret-sync/digital-ocean-app-platform/digital-ocean-app-platform-sync-schemas.ts b/backend/src/services/secret-sync/digital-ocean-app-platform/digital-ocean-app-platform-sync-schemas.tsindex 26014f83ba..c8f09b26ec 100644--- a/backend/src/services/secret-sync/digital-ocean-app-platform/digital-ocean-app-platform-sync-schemas.ts+++ b/backend/src/services/secret-sync/digital-ocean-app-platform/digital-ocean-app-platform-sync-schemas.ts@@ -47,6 +47,7 @@ export const DigitalOceanAppPlatformSyncListItemSchema = zname: z.literal("Digital Ocean App Platform"),connection: z.literal(AppConnection.DigitalOcean),destination: z.literal(SecretSync.DigitalOceanAppPlatform),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.DigitalOceanAppPlatform] }));diff --git a/backend/src/services/secret-sync/flyio/flyio-sync-schemas.ts b/backend/src/services/secret-sync/flyio/flyio-sync-schemas.tsindex 2324aced62..4ad481ec15 100644--- a/backend/src/services/secret-sync/flyio/flyio-sync-schemas.ts+++ b/backend/src/services/secret-sync/flyio/flyio-sync-schemas.ts@@ -50,6 +50,7 @@ export const FlyioSyncListItemSchema = zname: z.literal("Fly.io"),connection: z.literal(AppConnection.Flyio),destination: z.literal(SecretSync.Flyio),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Flyio] }));diff --git a/backend/src/services/secret-sync/gcp/gcp-sync-schemas.ts b/backend/src/services/secret-sync/gcp/gcp-sync-schemas.tsindex eeef3e4a7b..8ea5d273ed 100644--- a/backend/src/services/secret-sync/gcp/gcp-sync-schemas.ts+++ b/backend/src/services/secret-sync/gcp/gcp-sync-schemas.ts@@ -65,6 +65,7 @@ export const GcpSyncListItemSchema = zname: z.literal("GCP Secret Manager"),connection: z.literal(AppConnection.GCP),destination: z.literal(SecretSync.GCPSecretManager),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.GCPSecretManager] }));diff --git a/backend/src/services/secret-sync/github/github-sync-schemas.ts b/backend/src/services/secret-sync/github/github-sync-schemas.tsindex 79f7b18f11..c4c2147055 100644--- a/backend/src/services/secret-sync/github/github-sync-schemas.ts+++ b/backend/src/services/secret-sync/github/github-sync-schemas.ts@@ -83,6 +83,7 @@ export const GitHubSyncListItemSchema = zname: z.literal("GitHub"),connection: z.literal(AppConnection.GitHub),destination: z.literal(SecretSync.GitHub),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.GitHub] }));diff --git a/backend/src/services/secret-sync/gitlab/gitlab-sync-schemas.ts b/backend/src/services/secret-sync/gitlab/gitlab-sync-schemas.tsindex d96d945d81..f6282ddce6 100644--- a/backend/src/services/secret-sync/gitlab/gitlab-sync-schemas.ts+++ b/backend/src/services/secret-sync/gitlab/gitlab-sync-schemas.ts@@ -97,6 +97,7 @@ export const GitLabSyncListItemSchema = zname: z.literal("GitLab"),connection: z.literal(AppConnection.GitLab),destination: z.literal(SecretSync.GitLab),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.GitLab] }));diff --git a/backend/src/services/secret-sync/hc-vault/hc-vault-sync-schemas.ts b/backend/src/services/secret-sync/hc-vault/hc-vault-sync-schemas.tsindex 43c517432b..f077c8dd6d 100644--- a/backend/src/services/secret-sync/hc-vault/hc-vault-sync-schemas.ts+++ b/backend/src/services/secret-sync/hc-vault/hc-vault-sync-schemas.ts@@ -61,6 +61,7 @@ export const HCVaultSyncListItemSchema = zname: z.literal("Hashicorp Vault"),connection: z.literal(AppConnection.HCVault),destination: z.literal(SecretSync.HCVault),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.HCVault] }));diff --git a/backend/src/services/secret-sync/heroku/heroku-sync-schemas.ts b/backend/src/services/secret-sync/heroku/heroku-sync-schemas.tsindex fce757389c..caa967796d 100644--- a/backend/src/services/secret-sync/heroku/heroku-sync-schemas.ts+++ b/backend/src/services/secret-sync/heroku/heroku-sync-schemas.ts@@ -45,6 +45,7 @@ export const HerokuSyncListItemSchema = zname: z.literal("Heroku"),connection: z.literal(AppConnection.Heroku),destination: z.literal(SecretSync.Heroku),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Heroku] }));diff --git a/backend/src/services/secret-sync/humanitec/humanitec-sync-schemas.ts b/backend/src/services/secret-sync/humanitec/humanitec-sync-schemas.tsindex 7fcf5e2bcf..3d3e501af1 100644--- a/backend/src/services/secret-sync/humanitec/humanitec-sync-schemas.ts+++ b/backend/src/services/secret-sync/humanitec/humanitec-sync-schemas.ts@@ -55,6 +55,7 @@ export const HumanitecSyncListItemSchema = zname: z.literal("Humanitec"),connection: z.literal(AppConnection.Humanitec),destination: z.literal(SecretSync.Humanitec),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Humanitec] }));diff --git a/backend/src/services/secret-sync/laravel-forge/laravel-forge-sync-schemas.ts b/backend/src/services/secret-sync/laravel-forge/laravel-forge-sync-schemas.tsindex 207b7b8cdc..be7773861f 100644--- a/backend/src/services/secret-sync/laravel-forge/laravel-forge-sync-schemas.ts+++ b/backend/src/services/secret-sync/laravel-forge/laravel-forge-sync-schemas.ts@@ -66,6 +66,7 @@ export const LaravelForgeSyncListItemSchema = zname: z.literal("Laravel Forge"),connection: z.literal(AppConnection.LaravelForge),destination: z.literal(SecretSync.LaravelForge),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.LaravelForge] }));diff --git a/backend/src/services/secret-sync/netlify/netlify-sync-schemas.ts b/backend/src/services/secret-sync/netlify/netlify-sync-schemas.tsindex 7a40710ffd..fa1b9287e0 100644--- a/backend/src/services/secret-sync/netlify/netlify-sync-schemas.ts+++ b/backend/src/services/secret-sync/netlify/netlify-sync-schemas.ts@@ -68,6 +68,7 @@ export const NetlifySyncListItemSchema = zname: z.literal("Netlify"),connection: z.literal(AppConnection.Netlify),destination: z.literal(SecretSync.Netlify),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Netlify] }));diff --git a/backend/src/services/secret-sync/northflank/northflank-sync-schemas.ts b/backend/src/services/secret-sync/northflank/northflank-sync-schemas.tsindex 97c6e4c45e..790a3d3190 100644--- a/backend/src/services/secret-sync/northflank/northflank-sync-schemas.ts+++ b/backend/src/services/secret-sync/northflank/northflank-sync-schemas.ts@@ -55,6 +55,7 @@ export const NorthflankSyncListItemSchema = zname: z.literal("Northflank"),connection: z.literal(AppConnection.Northflank),destination: z.literal(SecretSync.Northflank),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Northflank] }));diff --git a/backend/src/services/secret-sync/octopus-deploy/octopus-deploy-sync-schemas.ts b/backend/src/services/secret-sync/octopus-deploy/octopus-deploy-sync-schemas.tsindex e51d5f85a0..417883a4c1 100644--- a/backend/src/services/secret-sync/octopus-deploy/octopus-deploy-sync-schemas.ts+++ b/backend/src/services/secret-sync/octopus-deploy/octopus-deploy-sync-schemas.ts@@ -75,6 +75,7 @@ export const OctopusDeploySyncListItemSchema = zname: z.literal("Octopus Deploy"),connection: z.literal(AppConnection.OctopusDeploy),destination: z.literal(SecretSync.OctopusDeploy),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.OctopusDeploy] }));diff --git a/backend/src/services/secret-sync/railway/railway-sync-schemas.ts b/backend/src/services/secret-sync/railway/railway-sync-schemas.tsindex 2a5bec1abd..80e826eb79 100644--- a/backend/src/services/secret-sync/railway/railway-sync-schemas.ts+++ b/backend/src/services/secret-sync/railway/railway-sync-schemas.ts@@ -57,6 +57,7 @@ export const RailwaySyncListItemSchema = zname: z.literal("Railway"),connection: z.literal(AppConnection.Railway),destination: z.literal(SecretSync.Railway),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Railway] }));diff --git a/backend/src/services/secret-sync/render/render-sync-schemas.ts b/backend/src/services/secret-sync/render/render-sync-schemas.tsindex 266f093f8c..d43e0c76f7 100644--- a/backend/src/services/secret-sync/render/render-sync-schemas.ts+++ b/backend/src/services/secret-sync/render/render-sync-schemas.ts@@ -67,6 +67,7 @@ export const RenderSyncListItemSchema = zname: z.literal("Render"),connection: z.literal(AppConnection.Render),destination: z.literal(SecretSync.Render),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Render] }));diff --git a/backend/src/services/secret-sync/supabase/supabase-sync-schemas.ts b/backend/src/services/secret-sync/supabase/supabase-sync-schemas.tsindex cd888b556d..2315e6dede 100644--- a/backend/src/services/secret-sync/supabase/supabase-sync-schemas.ts+++ b/backend/src/services/secret-sync/supabase/supabase-sync-schemas.ts@@ -44,6 +44,7 @@ export const SupabaseSyncListItemSchema = zname: z.literal("Supabase"),connection: z.literal(AppConnection.Supabase),destination: z.literal(SecretSync.Supabase),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Supabase] }));diff --git a/backend/src/services/secret-sync/teamcity/teamcity-sync-schemas.ts b/backend/src/services/secret-sync/teamcity/teamcity-sync-schemas.tsindex ed56ae1240..7b12166038 100644--- a/backend/src/services/secret-sync/teamcity/teamcity-sync-schemas.ts+++ b/backend/src/services/secret-sync/teamcity/teamcity-sync-schemas.ts@@ -45,6 +45,7 @@ export const TeamCitySyncListItemSchema = zname: z.literal("TeamCity"),connection: z.literal(AppConnection.TeamCity),destination: z.literal(SecretSync.TeamCity),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.TeamCity] }));diff --git a/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-schemas.ts b/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-schemas.tsindex 1254b06eaf..8e2aaa30de 100644--- a/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-schemas.ts+++ b/backend/src/services/secret-sync/terraform-cloud/terraform-cloud-sync-schemas.ts@@ -75,6 +75,7 @@ export const TerraformCloudSyncListItemSchema = zname: z.literal("Terraform Cloud"),connection: z.literal(AppConnection.TerraformCloud),destination: z.literal(SecretSync.TerraformCloud),- canImportSecrets: z.literal(false)+ canImportSecrets: z.literal(false),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.TerraformCloud] }));diff --git a/backend/src/services/secret-sync/vercel/vercel-sync-schemas.ts b/backend/src/services/secret-sync/vercel/vercel-sync-schemas.tsindex 06cdb6cc14..aa026bf9f5 100644--- a/backend/src/services/secret-sync/vercel/vercel-sync-schemas.ts+++ b/backend/src/services/secret-sync/vercel/vercel-sync-schemas.ts@@ -49,6 +49,7 @@ export const VercelSyncListItemSchema = zname: z.literal("Vercel"),connection: z.literal(AppConnection.Vercel),destination: z.literal(SecretSync.Vercel),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Vercel] }));diff --git a/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts b/backend/src/services/secret-sync/windmill/windmill-sync-schemas.tsindex 38fdfda150..280c48ed6d 100644--- a/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts+++ b/backend/src/services/secret-sync/windmill/windmill-sync-schemas.ts@@ -67,6 +67,7 @@ export const WindmillSyncListItemSchema = zname: z.literal("Windmill"),connection: z.literal(AppConnection.Windmill),destination: z.literal(SecretSync.Windmill),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Windmill] }));diff --git a/backend/src/services/secret-sync/zabbix/zabbix-sync-schemas.ts b/backend/src/services/secret-sync/zabbix/zabbix-sync-schemas.tsindex 09cfbecdf6..0bd591ea24 100644--- a/backend/src/services/secret-sync/zabbix/zabbix-sync-schemas.ts+++ b/backend/src/services/secret-sync/zabbix/zabbix-sync-schemas.ts@@ -67,6 +67,7 @@ export const ZabbixSyncListItemSchema = zname: z.literal("Zabbix"),connection: z.literal(AppConnection.Zabbix),destination: z.literal(SecretSync.Zabbix),- canImportSecrets: z.literal(true)+ canImportSecrets: z.literal(true),+ canRemoveSecretsOnDeletion: z.literal(true)}).describe(JSON.stringify({ title: SECRET_SYNC_NAME_MAP[SecretSync.Zabbix] }));diff --git a/docs/integrations/app-connections/azure-entra-id.mdx b/docs/integrations/app-connections/azure-entra-id.mdxindex b1908d52e0..4df692d0f1 100644--- a/docs/integrations/app-connections/azure-entra-id.mdx+++ b/docs/integrations/app-connections/azure-entra-id.mdx@@ -29,28 +29,72 @@ Infisical's Azure Entra ID Connection lets you authenticate with Microsoft Entra## Setup Azure Entra ID Connection in Infisical-<Steps>- <Step title="Navigate to App Connections">- Navigate to the **Organization Settings** page, then select **App Connections**. Click on the **Add Connection** button.- - </Step>- <Step title="Add Connection">- Select the **Azure Entra ID** option from the connection options modal.-- - </Step>- <Step title="Create Connection">- Fill in the following fields with the credentials from your Azure App Registration:-- - **Tenant ID**: The Directory (Tenant) ID of your Azure Entra ID tenant.- - **Client ID**: The Application (Client) ID of your registered application.- - **Client Secret**: A client secret generated for your registered application.-- Click **Connect** to create the connection.-- - </Step>- <Step title="Connection Created">- Your **Azure Entra ID Connection** is now available for use with features such as the Azure Entra ID SCIM Secret Sync.- </Step>-</Steps>+<Tabs>+ <Tab title="Infisical UI">+ <Steps>+ <Step title="Navigate to App Connections">+ Navigate to the **Organization Settings** page, then select **App Connections**. Click on the **Add Connection** button.+ + </Step>+ <Step title="Add Connection">+ Select the **Azure Entra ID** option from the connection options modal.++ + </Step>+ <Step title="Create Connection">+ Fill in the following fields with the credentials from your Azure App Registration:++ - **Tenant ID**: The Directory (Tenant) ID of your Azure Entra ID tenant.+ - **Client ID**: The Application (Client) ID of your registered application.+ - **Client Secret**: A client secret generated for your registered application.++ Click **Connect** to create the connection.++ + </Step>+ <Step title="Connection Created">+ Your **Azure Entra ID Connection** is now available for use with features such as the Azure Entra ID SCIM Secret Sync.+ </Step>+ </Steps>+ </Tab>+ <Tab title="API">+ To create an Azure Entra ID Connection via API, send a request to the [Create Azure Entra ID Connection](/api-reference/endpoints/app-connections/azure-entra-id/create) endpoint.++ ### Sample request++ ```bash Request+ curl --request POST \+ --url https://app.infisical.com/api/v1/app-connections/azure-entra-id \+ --header 'Content-Type: application/json' \+ --data '{+ "name": "my-azure-entra-id-connection",+ "method": "client-secret",+ "credentials": {+ "tenantId": "your-tenant-id",+ "clientId": "your-client-id",+ "clientSecret": "your-client-secret"+ }+ }'+ ```++ ### Sample response++ ```json Response+ {+ "appConnection": {+ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",+ "name": "my-azure-entra-id-connection",+ "description": null,+ "version": 1,+ "orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",+ "createdAt": "2023-11-07T05:31:56Z",+ "updatedAt": "2023-11-07T05:31:56Z",+ "isPlatformManagedCredentials": false,+ "app": "azure-entra-id",+ "method": "client-secret",+ "credentials": {}+ }+ }+ ```+ </Tab>+</Tabs>diff --git a/docs/integrations/secret-syncs/azure-entra-id-scim.mdx b/docs/integrations/secret-syncs/azure-entra-id-scim.mdxindex 772ce63d57..885068bd30 100644--- a/docs/integrations/secret-syncs/azure-entra-id-scim.mdx+++ b/docs/integrations/secret-syncs/azure-entra-id-scim.mdx@@ -7,12 +7,26 @@ description: "Learn how to configure an Azure Entra ID SCIM Sync for Infisical."- Set up and add secrets to [Infisical Cloud](https://app.infisical.com)- Create an [Azure Entra ID Connection](/integrations/app-connections/azure-entra-id)-- Ensure your network security policies allow incoming requests from Infisical to this secret sync provider, if network restrictions apply.+- Have an existing Enterprise Application in Azure Entra ID with [SCIM provisioning already configured](https://learn.microsoft.com/en-us/entra/identity/app-provisioning/configure-automatic-user-provisioning-portal)-<Note>- The Azure Entra ID SCIM Sync pushes a single secret value as the SCIM provisioning token for an Azure Entra ID Enterprise Application.- This is useful for automating SCIM token rotation — when the secret value changes in Infisical, it is automatically synced to the target service principal's synchronization secrets.-</Note>+## How It Works++The Azure Entra ID SCIM Sync lets you manage SCIM provisioning tokens for your Azure Entra ID Enterprise Applications through Infisical.+Each sync manages the token for a single Enterprise Application — if you use SCIM provisioning across multiple apps, you'll need a separate sync for each one.++**Example workflow:**++1. You have an Enterprise Application (e.g., ServiceNow) in Azure Entra ID with SCIM provisioning already configured.+2. You obtain the SCIM bearer token from the third-party service (e.g., from ServiceNow's admin panel) and store it as a secret in Infisical.+3. You create an Azure Entra ID SCIM Sync that points to this secret and targets the Enterprise Application.+4. Infisical pushes the token value to Azure, keeping your SCIM provisioning credentials in sync.+5. When the third-party service rotates the token, you update the secret in Infisical — the new value is automatically synced to Azure.++<Warning>+ The selected secret's value **must** be a valid SCIM bearer token obtained from the third-party service.+ When a sync runs, it overwrites the existing SCIM token on the Enterprise Application with the secret's current value.+ If the secret contains an incorrect value, it will break SCIM provisioning for that application.+</Warning><Tabs><Tab title="Infisical UI">@@ -32,7 +46,7 @@ description: "Learn how to configure an Azure Entra ID SCIM Sync for Infisical."- **Environment**: The project environment to retrieve the secret from.- **Secret Path**: The folder path to retrieve the secret from.- - **Secret**: The specific secret whose value will be used as the SCIM provisioning token.+ - **Secret**: The secret containing the SCIM bearer token obtained from the third-party service. This value will be pushed to the Enterprise Application's SCIM configuration in Azure.</Step><Step title="Configure destination">Configure the **Destination** to where the SCIM token should be deployed, then click **Next**.@@ -47,7 +61,7 @@ description: "Learn how to configure an Azure Entra ID SCIM Sync for Infisical."- - **Initial Sync Behavior**: Determines how Infisical should resolve the initial sync. For SCIM token syncing, only **Overwrite Destination** is supported since import is not available.+ - **Initial Sync Behavior**: Determines how Infisical should resolve the initial sync. For SCIM token syncing, only **Overwrite Destination** is supported since import is not available. Please note that this will overwrite your current token with the selected secret value.- **Auto-Sync Enabled**: If enabled, the SCIM token will automatically be synced when the source secret changes. Disable to enforce manual syncing only.</Step><Step title="Configure details">diff --git a/frontend/src/components/secret-syncs/DeleteSecretSyncModal.tsx b/frontend/src/components/secret-syncs/DeleteSecretSyncModal.tsxindex de8b2e79da..5a07b8ca93 100644--- a/frontend/src/components/secret-syncs/DeleteSecretSyncModal.tsx+++ b/frontend/src/components/secret-syncs/DeleteSecretSyncModal.tsx@@ -3,7 +3,7 @@ import { useState } from "react";import { createNotification } from "@app/components/notifications";import { DeleteActionModal, Switch } from "@app/components/v2";import { SECRET_SYNC_MAP } from "@app/helpers/secretSyncs";-import { TSecretSync, useDeleteSecretSync } from "@app/hooks/api/secretSyncs";+import { TSecretSync, useDeleteSecretSync, useSecretSyncOption } from "@app/hooks/api/secretSyncs";type Props = {secretSync?: TSecretSync;@@ -14,6 +14,7 @@ type Props = {export const DeleteSecretSyncModal = ({ isOpen, onOpenChange, secretSync, onComplete }: Props) => {const deleteSync = useDeleteSecretSync();+ const { syncOption } = useSecretSyncOption(secretSync?.destination);const [removeSecrets, setRemoveSecrets] = useState(false);if (!secretSync) return null;@@ -47,16 +48,18 @@ export const DeleteSecretSyncModal = ({ isOpen, onOpenChange, secretSync, onCompdeleteKey={name}onDeleteApproved={handleDeleteSecretSync}>- <Switch- containerClassName="mt-4"- className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-red/50"- thumbClassName="bg-mineshaft-800"- isChecked={removeSecrets}- onCheckedChange={setRemoveSecrets}- id="remove-secrets"- >- Remove Synced Secrets- </Switch>+ {syncOption?.canRemoveSecretsOnDeletion && (+ <Switch+ containerClassName="mt-4"+ className="bg-mineshaft-400/50 shadow-inner data-[state=checked]:bg-red/50"+ thumbClassName="bg-mineshaft-800"+ isChecked={removeSecrets}+ onCheckedChange={setRemoveSecrets}+ id="remove-secrets"+ >+ Remove Synced Secrets+ </Switch>+ )}</DeleteActionModal>);};diff --git a/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx b/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsxindex 7f68072d07..5fe18ad4b8 100644--- a/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx+++ b/frontend/src/components/secret-syncs/forms/AzureEntraIdScimSyncSourceFields.tsx@@ -112,7 +112,6 @@ export const AzureEntraIdScimSyncSourceFields = () => {control={control}render={({ field: { value, onChange }, fieldState: { error } }) => (<FormControl- isRequiredisError={Boolean(error)}errorText={error?.message}label="Secret"diff --git a/frontend/src/components/secret-syncs/forms/CreateSecretSyncForm.tsx b/frontend/src/components/secret-syncs/forms/CreateSecretSyncForm.tsxindex 21a69b1634..626dc19492 100644--- a/frontend/src/components/secret-syncs/forms/CreateSecretSyncForm.tsx+++ b/frontend/src/components/secret-syncs/forms/CreateSecretSyncForm.tsx@@ -33,13 +33,22 @@ type Props = {initialFormData?: Partial<TSecretSyncForm>;};-const FORM_TABS: { name: string; key: string; fields: (keyof TSecretSyncForm)[] }[] = [- { name: "Source", key: "source", fields: ["secretPath", "environment"] },- { name: "Destination", key: "destination", fields: ["connection", "destinationConfig"] },- { name: "Sync Options", key: "options", fields: ["syncOptions"] },- { name: "Details", key: "details", fields: ["name", "description"] },- { name: "Review", key: "review", fields: [] }-];+const getFormTabs = (+ destination: SecretSync+): { name: string; key: string; fields: (keyof TSecretSyncForm)[] }[] => {+ const sourceFields: (keyof TSecretSyncForm)[] =+ destination === SecretSync.AzureEntraIdScim+ ? ["secretPath", "environment", "syncOptions"]+ : ["secretPath", "environment"];++ return [+ { name: "Source", key: "source", fields: sourceFields },+ { name: "Destination", key: "destination", fields: ["connection", "destinationConfig"] },+ { name: "Sync Options", key: "options", fields: ["syncOptions"] },+ { name: "Details", key: "details", fields: ["name", "description"] },+ { name: "Review", key: "review", fields: [] }+ ];+};export const CreateSecretSyncForm = ({destination,@@ -51,6 +60,7 @@ export const CreateSecretSyncForm = ({const { currentProject } = useProject();const { currentOrg } = useOrganization();const { name: destinationName } = SECRET_SYNC_MAP[destination];+ const formTabs = getFormTabs(destination);const [showConfirmation, setShowConfirmation] = useState(false);@@ -111,9 +121,9 @@ export const CreateSecretSyncForm = ({destinationConfig: watch("destinationConfig")});- const isStepValid = async (index: number) => trigger(FORM_TABS[index].fields);+ const isStepValid = async (index: number) => trigger(formTabs[index].fields);- const isFinalStep = selectedTabIndex === FORM_TABS.length - 1;+ const isFinalStep = selectedTabIndex === formTabs.length - 1;const isCreateButtonDisabled =isFinalStep && hasDuplicate && currentOrg?.blockDuplicateSecretSyncDestinations;@@ -182,7 +192,7 @@ export const CreateSecretSyncForm = ({<FormProvider {...formMethods}><Tab.Group selectedIndex={selectedTabIndex} onChange={setSelectedTabIndex}><Tab.List className="-pb-1 mb-6 w-full border-b-2 border-mineshaft-600">- {FORM_TABS.map((tab, index) => (+ {formTabs.map((tab, index) => (<TabonClick={async (e) => {e.preventDefault();diff --git a/frontend/src/hooks/api/secretSyncs/queries.tsx b/frontend/src/hooks/api/secretSyncs/queries.tsxindex 250d02ff8f..00888cd2ef 100644--- a/frontend/src/hooks/api/secretSyncs/queries.tsx+++ b/frontend/src/hooks/api/secretSyncs/queries.tsx@@ -47,7 +47,7 @@ export const useSecretSyncOptions = (});};-export const useSecretSyncOption = (destination: SecretSync) => {+export const useSecretSyncOption = (destination?: SecretSync) => {const { data: syncOptions, isPending } = useSecretSyncOptions();const syncOption = syncOptions?.find((option) => option.destination === destination);diff --git a/frontend/src/hooks/api/secretSyncs/types/index.ts b/frontend/src/hooks/api/secretSyncs/types/index.tsindex 4756b173c0..798b01a5fa 100644--- a/frontend/src/hooks/api/secretSyncs/types/index.ts+++ b/frontend/src/hooks/api/secretSyncs/types/index.ts@@ -44,6 +44,7 @@ export type TSecretSyncOption = {canImportSecrets: boolean;supportsKeySchema?: boolean;supportsDisableSecretDeletion?: boolean;+ canRemoveSecretsOnDeletion?: boolean;enterprise?: boolean;};diff --git a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsxindex 9c6b8310ee..cd640d314c 100644--- a/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx+++ b/frontend/src/pages/secret-manager/IntegrationsListPage/components/SecretSyncsTab/SecretSyncTable/SecretSyncRow.tsx@@ -324,36 +324,38 @@ export const SecretSyncRow = ({)}</ProjectPermissionCan>)}- <ProjectPermissionCan- I={ProjectPermissionSecretSyncActions.RemoveSecrets}- a={permissionSubject}- >- {(isAllowed: boolean) => (- <DropdownMenuItem- icon={<FontAwesomeIcon icon={faEraser} />}- onClick={(e) => {- e.stopPropagation();- onTriggerRemoveSecrets(secretSync);- }}- isDisabled={!isAllowed}- >- <Tooltip- position="left"- sideOffset={42}- content={`Remove secrets synced by Infisical from this ${destinationName} destination.`}+ {syncOption?.canRemoveSecretsOnDeletion && (+ <ProjectPermissionCan+ I={ProjectPermissionSecretSyncActions.RemoveSecrets}+ a={permissionSubject}+ >+ {(isAllowed: boolean) => (+ <DropdownMenuItem+ icon={<FontAwesomeIcon icon={faEraser} />}+ onClick={(e) => {+ e.stopPropagation();+ onTriggerRemoveSecrets(secretSync);+ }}+ isDisabled={!isAllowed}>- <div className="flex h-full w-full items-center justify-between gap-1">- <span>Remove Secrets</span>- <FontAwesomeIcon- className="text-bunker-300"- size="sm"- icon={faInfoCircle}- />- </div>- </Tooltip>- </DropdownMenuItem>- )}- </ProjectPermissionCan>+ <Tooltip+ position="left"+ sideOffset={42}+ content={`Remove secrets synced by Infisical from this ${destinationName} destination.`}+ >+ <div className="flex h-full w-full items-center justify-between gap-1">+ <span>Remove Secrets</span>+ <FontAwesomeIcon+ className="text-bunker-300"+ size="sm"+ icon={faInfoCircle}+ />+ </div>+ </Tooltip>+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ )}<ProjectPermissionCanI={ProjectPermissionSecretSyncActions.Edit}a={permissionSubject}diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsxindex 2ec3ff6195..4a75e040e0 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncActionTriggers.tsx@@ -205,33 +205,35 @@ export const SecretSyncActionTriggers = ({ secretSync }: Props) => {)}</ProjectPermissionCan>)}- <ProjectPermissionCan- I={ProjectPermissionSecretSyncActions.RemoveSecrets}- a={permissionSubject}- >- {(isAllowed: boolean) => (- <DropdownMenuItem- icon={<FontAwesomeIcon icon={faEraser} />}- onClick={() => handlePopUpOpen("removeSecrets")}- isDisabled={!isAllowed}- >- <Tooltip- position="left"- sideOffset={42}- content={`Remove secrets synced by Infisical from this ${destinationName} destination.`}+ {syncOption?.canRemoveSecretsOnDeletion && (+ <ProjectPermissionCan+ I={ProjectPermissionSecretSyncActions.RemoveSecrets}+ a={permissionSubject}+ >+ {(isAllowed: boolean) => (+ <DropdownMenuItem+ icon={<FontAwesomeIcon icon={faEraser} />}+ onClick={() => handlePopUpOpen("removeSecrets")}+ isDisabled={!isAllowed}>- <div className="flex h-full w-full items-center justify-between gap-1">- <span>Remove Secrets</span>- <FontAwesomeIcon- className="text-bunker-300"- size="sm"- icon={faInfoCircle}- />- </div>- </Tooltip>- </DropdownMenuItem>- )}- </ProjectPermissionCan>+ <Tooltip+ position="left"+ sideOffset={42}+ content={`Remove secrets synced by Infisical from this ${destinationName} destination.`}+ >+ <div className="flex h-full w-full items-center justify-between gap-1">+ <span>Remove Secrets</span>+ <FontAwesomeIcon+ className="text-bunker-300"+ size="sm"+ icon={faInfoCircle}+ />+ </div>+ </Tooltip>+ </DropdownMenuItem>+ )}+ </ProjectPermissionCan>+ )}<ProjectPermissionCanI={ProjectPermissionSecretSyncActions.Edit}a={permissionSubject}diff --git a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsxindex 28eeef5c15..01a086a964 100644--- a/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx+++ b/frontend/src/pages/secret-manager/SecretSyncDetailsByIDPage/components/SecretSyncOptionsSection/SecretSyncOptionsSection.tsx@@ -28,6 +28,7 @@ export const SecretSyncOptionsSection = ({ secretSync, onEditOptions }: Props) =} = secretSync;let AdditionalSyncOptionsComponent: ReactNode;+ let allowEdits: boolean;switch (destination) {case SecretSync.AWSParameterStore:@@ -84,6 +85,14 @@ export const SecretSyncOptionsSection = ({ secretSync, onEditOptions }: Props) =throw new Error(`Unhandled Destination Review Fields: ${destination}`);}+ switch (destination) {+ case SecretSync.AzureEntraIdScim:+ allowEdits = false;+ break;+ default:+ allowEdits = true;+ }+const permissionSubject = getSecretSyncPermissionSubject(secretSync);return (@@ -91,19 +100,21 @@ export const SecretSyncOptionsSection = ({ secretSync, onEditOptions }: Props) =<div className="flex w-full flex-col gap-3 rounded-lg border border-mineshaft-600 bg-mineshaft-900 px-4 py-3"><div className="flex items-center justify-between border-b border-mineshaft-400 pb-2"><h3 className="font-medium text-mineshaft-100">Sync Options</h3>- <ProjectPermissionCan I={ProjectPermissionSecretSyncActions.Edit} a={permissionSubject}>- {(isAllowed) => (- <IconButton- variant="plain"- colorSchema="secondary"- isDisabled={!isAllowed}- ariaLabel="Edit sync options"- onClick={onEditOptions}- >- <FontAwesomeIcon icon={faEdit} />- </IconButton>- )}- </ProjectPermissionCan>+ {allowEdits && (+ <ProjectPermissionCan I={ProjectPermissionSecretSyncActions.Edit} a={permissionSubject}>+ {(isAllowed) => (+ <IconButton+ variant="plain"+ colorSchema="secondary"+ isDisabled={!isAllowed}+ ariaLabel="Edit sync options"+ onClick={onEditOptions}+ >+ <FontAwesomeIcon icon={faEdit} />+ </IconButton>+ )}+ </ProjectPermissionCan>+ )}</div><div><div className="space-y-3">