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
allowed creating of multiple tags
Vladyslav Matsiiako714a3186a942
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex c83234c1fc..3e730048b0 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -585,12 +585,12 @@ export const INTEGRATION = {region: "AWS region to sync secrets to.",scope: "Scope of the provider. Used by Github, Qovery",metadata: {- secretPrefix: "The prefix for the saved secret. Used by GCP",- secretSuffix: "The suffix for the saved secret. Used by GCP",- initialSyncBehavoir: "Type of syncing behavoir with the integration",- shouldAutoRedeploy: "Used by Render to trigger auto deploy",- secretGCPLabel: "The label for the GCP secrets",- secretAWSTag: "The tag for the AWS secrets"+ secretPrefix: "The prefix for the saved secret. Used by GCP.",+ secretSuffix: "The suffix for the saved secret. Used by GCP.",+ initialSyncBehavoir: "Type of syncing behavoir with the integration.",+ shouldAutoRedeploy: "Used by Render to trigger auto deploy.",+ secretGCPLabel: "The label for GCP secrets.",+ secretAWSTag: "The tags for AWS secrets."}},UPDATE: {diff --git a/backend/src/server/routes/v1/integration-router.ts b/backend/src/server/routes/v1/integration-router.tsindex 58a8917c59..29ccce0a80 100644--- a/backend/src/server/routes/v1/integration-router.ts+++ b/backend/src/server/routes/v1/integration-router.ts@@ -58,10 +58,12 @@ export const registerIntegrationRouter = async (server: FastifyZodProvider) => {.optional().describe(INTEGRATION.CREATE.metadata.secretGCPLabel),secretAWSTag: z- .object({- key: z.string(),- value: z.string()- })+ .array(+ z.object({+ key: z.string(),+ value: z.string()+ })+ ).optional().describe(INTEGRATION.CREATE.metadata.secretAWSTag)})diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.tsindex 48226bb59f..267c50516a 100644--- a/backend/src/services/integration-auth/integration-sync-secret.ts+++ b/backend/src/services/integration-auth/integration-sync-secret.ts@@ -1,3 +1,4 @@+/* eslint-disable @typescript-eslint/no-unsafe-call *//* eslint-disable @typescript-eslint/no-unsafe-return *//* eslint-disable @typescript-eslint/no-unsafe-assignment *//* eslint-disable @typescript-eslint/no-unsafe-argument */@@ -489,7 +490,9 @@ const syncSecretsAWSParameterStore = async ({Type: "SecureString",Value: secrets[key].value,// Overwrite: true,- Tags: metadata.secretAWSTag ? [{ Key: metadata.secretAWSTag.key, Value: metadata.secretAWSTag.value }] : []+ Tags: metadata.secretAWSTag+ ? metadata.secretAWSTag.map((tag: { key: string; value: string }) => ({ Key: tag.key, Value: tag.value }))+ : []}).promise();// case: secret exists in AWS parameter store@@ -579,7 +582,9 @@ const syncSecretsAWSSecretManager = async ({new CreateSecretCommand({Name: integration.app as string,SecretString: JSON.stringify(secKeyVal),- Tags: metadata.secretAWSTag ? [{ Key: metadata.secretAWSTag.key, Value: metadata.secretAWSTag.value }] : []+ Tags: metadata.secretAWSTag+ ? metadata.secretAWSTag.map((tag: { key: string; value: string }) => ({ Key: tag.key, Value: tag.value }))+ : []}));}diff --git a/backend/src/services/integration/integration-types.ts b/backend/src/services/integration/integration-types.tsindex 93c36cd8e4..053ea44636 100644--- a/backend/src/services/integration/integration-types.ts+++ b/backend/src/services/integration/integration-types.ts@@ -25,7 +25,7 @@ export type TCreateIntegrationDTO = {secretAWSTag?: {key: string;value: string;- };+ }[];};} & Omit<TProjectPermission, "projectId">;diff --git a/frontend/src/hooks/api/integrations/queries.tsx b/frontend/src/hooks/api/integrations/queries.tsxindex 7804f09510..4f20880531 100644--- a/frontend/src/hooks/api/integrations/queries.tsx+++ b/frontend/src/hooks/api/integrations/queries.tsx@@ -66,7 +66,7 @@ export const useCreateIntegration = () => {secretAWSTag?: {key: string;value: string;- };+ }[];};}) => {const {diff --git a/frontend/src/pages/integrations/aws-parameter-store/create.tsx b/frontend/src/pages/integrations/aws-parameter-store/create.tsxindex dd643023ca..92e4662a90 100644--- a/frontend/src/pages/integrations/aws-parameter-store/create.tsx+++ b/frontend/src/pages/integrations/aws-parameter-store/create.tsx@@ -128,10 +128,10 @@ export default function AWSParameterStoreCreateIntegrationPage() {metadata: {...(shouldTag? {- secretAWSTag: {+ secretAWSTag: [{key: tagKey,value: tagValue- }+ }]}: {})}@@ -279,7 +279,7 @@ export default function AWSParameterStoreCreateIntegrationPage() {label="Tag Value"><Input- placeholder="managed-by"+ placeholder="infisical"value={tagValue}onChange={(e) => setTagValue(e.target.value)}/>diff --git a/frontend/src/pages/integrations/aws-secret-manager/create.tsx b/frontend/src/pages/integrations/aws-secret-manager/create.tsxindex ee06fe6c14..de8e3628c0 100644--- a/frontend/src/pages/integrations/aws-secret-manager/create.tsx+++ b/frontend/src/pages/integrations/aws-secret-manager/create.tsx@@ -127,10 +127,10 @@ export default function AWSSecretManagerCreateIntegrationPage() {metadata: {...(shouldTag? {- secretAWSTag: {+ secretAWSTag: [{key: tagKey,value: tagValue- }+ }]}: {})}@@ -278,7 +278,7 @@ export default function AWSSecretManagerCreateIntegrationPage() {label="Tag Value"><Input- placeholder="managed-by"+ placeholder="infisical"value={tagValue}onChange={(e) => setTagValue(e.target.value)}/>diff --git a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/IntegrationsSection.tsx b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/IntegrationsSection.tsxindex 8125bc6ad7..a9045eb5af 100644--- a/frontend/src/views/IntegrationsPage/components/IntegrationsSection/IntegrationsSection.tsx+++ b/frontend/src/views/IntegrationsPage/components/IntegrationsSection/IntegrationsSection.tsx@@ -74,7 +74,7 @@ export const IntegrationsSection = ({</div>)}{!isLoading && isBotActive && (- <div className="flex flex-col space-y-4 p-6 pt-0">+ <div className="flex flex-col min-w-max space-y-4 p-6 pt-0">{integrations?.map((integration) => (<divclassName="max-w-8xl flex justify-between rounded-md border border-mineshaft-600 bg-mineshaft-800 p-3"@@ -128,6 +128,8 @@ export const IntegrationsSection = ({<FormLabellabel={(integration.integration === "qovery" && integration?.scope) ||+ (integration.integration === "aws-secret-manager" && "Secret") ||+ (integration.integration === "aws-parameter-store" && "Path") ||(integration?.scope === "github-org" && "Organization") ||(["github-repo", "github-env"].includes(integration?.scope as string) &&"Repository") ||@@ -138,6 +140,7 @@ export const IntegrationsSection = ({{(integration.integration === "hashicorp-vault" &&`${integration.app} - path: ${integration.path}`) ||(integration.scope === "github-org" && `${integration.owner}`) ||+ (integration.integration === "aws-parameter-store" && `${integration.path}`) ||(integration.scope?.startsWith("github-") &&`${integration.owner}/${integration.app}`) ||integration.app}diff --git a/pg-migrator/src/models/integration/types.ts b/pg-migrator/src/models/integration/types.tsindex 98c0a630e6..82c1015199 100644--- a/pg-migrator/src/models/integration/types.ts+++ b/pg-migrator/src/models/integration/types.ts@@ -8,5 +8,5 @@ export type Metadata = {secretAWSTag?: {key: string;value: string;- }+ }[]}\ No newline at end of file