Skip to content

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

feat: added debug points to test ssm integration in replication

=dae26daeebf6
diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.ts
index 33f58edfb7..ffd57f6cc4 100644
--- a/backend/src/services/integration-auth/integration-sync-secret.ts
+++ b/backend/src/services/integration-auth/integration-sync-secret.ts
@@ -538,19 +538,21 @@ const syncSecretsAWSParameterStore = async ({
integration,
secrets,
accessId,
- accessToken
+ accessToken,
+ projectId
}: {
integration: TIntegrations;
secrets: Record<string, { value: string; comment?: string }>;
accessId: string | null;
accessToken: string;
+ projectId?: string;
}) => {
let response: { isSynced: boolean; syncMessage: string } | null = null;
if (!accessId) {
throw new Error("AWS access ID is required");
}
-
+ logger.info(`getIntegrationSecrets: [projectId=${projectId}] ssm debug: started`);
const config = new AWS.Config({
region: integration.region as string,
credentials: {
@@ -594,6 +596,12 @@ const syncSecretsAWSParameterStore = async ({
nextToken = parameters.NextToken;
}
+ logger.info(
+ `getIntegrationSecrets: [projectId=${projectId}] ssm debug: ${Object.keys(awsParameterStoreSecretsObj).join(",")}`
+ );
+ logger.info(
+ `getIntegrationSecrets: [projectId=${projectId}] ssm infisical secrets debug: ${Object.keys(secrets).join(",")}`
+ );
// Identify secrets to create
// don't use Promise.all() and promise map here
// it will cause rate limit
@@ -3678,7 +3686,8 @@ export const syncIntegrationSecrets = async ({
integration,
secrets,
accessId,
- accessToken
+ accessToken,
+ projectId
});
break;
case Integrations.AWS_SECRET_MANAGER: