Skip to content

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

Merge remote-tracking branch 'origin/main' into feat/add-option-to-mask-and-protect-gitlab-secrets

Sheen Capadngan104b0d6c6039
diff --cc backend/src/lib/api-docs/constants.ts
index deeaf5cd41,18db346dca..f4ffb87bae
--- a/backend/src/lib/api-docs/constants.ts
+++ b/backend/src/lib/api-docs/constants.ts
@@@ -675,8 -675,7 +675,9 @@@ export const INTEGRATION =
secretAWSTag: "The tags for AWS secrets.",
kmsKeyId: "The ID of the encryption key from AWS KMS.",
shouldDisableDelete: "The flag to disable deletion of secrets in AWS Parameter Store.",
+ shouldMaskSecrets: "The flag to determine the visibility of secrets to sync. Used by Gitlab",
- shouldProtectSecrets: "The flag to determine usage rules of secrets to sync. Used by Gitlab"
++ shouldProtectSecrets: "The flag to determine usage rules of secrets to sync. Used by Gitlab",
+ shouldEnableDelete: "The flag to enable deletion of secrets"
}
},
UPDATE: {
diff --cc backend/src/services/integration/integration-schema.ts
index 0000000000,d1b6bcc779..1ea01e56a8
mode 000000,100644..100644
--- a/backend/src/services/integration/integration-schema.ts
+++ b/backend/src/services/integration/integration-schema.ts
@@@ -1,0 -1,35 +1,37 @@@
+ import { z } from "zod";
+
+ import { INTEGRATION } from "@app/lib/api-docs";
+
+ import { IntegrationMappingBehavior } from "../integration-auth/integration-list";
+
+ export const IntegrationMetadataSchema = z.object({
+ secretPrefix: z.string().optional().describe(INTEGRATION.CREATE.metadata.secretPrefix),
+ secretSuffix: z.string().optional().describe(INTEGRATION.CREATE.metadata.secretSuffix),
+ initialSyncBehavior: z.string().optional().describe(INTEGRATION.CREATE.metadata.initialSyncBehavoir),
+ mappingBehavior: z
+ .nativeEnum(IntegrationMappingBehavior)
+ .optional()
+ .describe(INTEGRATION.CREATE.metadata.mappingBehavior),
+ shouldAutoRedeploy: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldAutoRedeploy),
+ secretGCPLabel: z
+ .object({
+ labelName: z.string(),
+ labelValue: z.string()
+ })
+ .optional()
+ .describe(INTEGRATION.CREATE.metadata.secretGCPLabel),
+ secretAWSTag: z
+ .array(
+ z.object({
+ key: z.string(),
+ value: z.string()
+ })
+ )
+ .optional()
+ .describe(INTEGRATION.CREATE.metadata.secretAWSTag),
+ kmsKeyId: z.string().optional().describe(INTEGRATION.CREATE.metadata.kmsKeyId),
+ shouldDisableDelete: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldDisableDelete),
- shouldEnableDelete: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldEnableDelete)
++ shouldEnableDelete: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldEnableDelete),
++ shouldMaskSecrets: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldMaskSecrets),
++ shouldProtectSecrets: z.boolean().optional().describe(INTEGRATION.CREATE.metadata.shouldProtectSecrets)
+ });
diff --cc backend/src/services/integration/integration-types.ts
index b96bb6ef3d,db136c1edc..abbccbe90b
--- a/backend/src/services/integration/integration-types.ts
+++ b/backend/src/services/integration/integration-types.ts
@@@ -29,8 -29,7 +29,9 @@@ export type TCreateIntegrationDTO =
}[];
kmsKeyId?: string;
shouldDisableDelete?: boolean;
+ shouldMaskSecrets?: boolean;
+ shouldProtectSecrets?: boolean;
+ shouldEnableDelete?: boolean;
};
} & Omit<TProjectPermission, "projectId">;
diff --cc frontend/src/hooks/api/integrations/queries.tsx
index 2036f67183,e561280c6c..81d0f00cae
--- a/frontend/src/hooks/api/integrations/queries.tsx
+++ b/frontend/src/hooks/api/integrations/queries.tsx
@@@ -73,8 -73,7 +73,9 @@@ export const useCreateIntegration = ()
}[];
kmsKeyId?: string;
shouldDisableDelete?: boolean;
+ shouldMaskSecrets?: boolean;
+ shouldProtectSecrets?: boolean;
+ shouldEnableDelete?: boolean;
};
}) => {
const {