feat: resolved bug reported on search and integration failing due to typo in integration field

This commit is contained in:
=
2024-07-30 23:19:07 +05:30
parent 8435b20178
commit 6a156371c0
10 changed files with 30 additions and 24 deletions
@@ -329,7 +329,7 @@ export const integrationAuthServiceFactory = ({
if (
integrationAuth.integration === Integrations.AWS_SECRET_MANAGER &&
(shouldUseSecretV2Bridge
? integrationAuth.encryptedAwsIamAssumRole
? integrationAuth.encryptedAwsAssumeIamRoleArn
: integrationAuth.awsAssumeIamRoleArnCipherText)
) {
return { accessToken: "", accessId: "" };
@@ -127,7 +127,7 @@ export const integrationDALFactory = (db: TDbClient) => {
db.ref("encryptedRefresh").withSchema(TableName.IntegrationAuth),
db.ref("encryptedAccess").withSchema(TableName.IntegrationAuth),
db.ref("encryptedAccessId").withSchema(TableName.IntegrationAuth),
db.ref("encryptedAwsIamAssumRole").withSchema(TableName.IntegrationAuth)
db.ref("encryptedAwsAssumeIamRoleArn").withSchema(TableName.IntegrationAuth)
);
return docs.map(
({
@@ -159,7 +159,7 @@ export const integrationDALFactory = (db: TDbClient) => {
encryptedAccess,
encryptedRefresh,
encryptedAccessId,
encryptedAwsIamAssumRole,
encryptedAwsAssumeIamRoleArn,
...el
}) => ({
...el,
@@ -195,7 +195,7 @@ export const integrationDALFactory = (db: TDbClient) => {
encryptedAccess,
encryptedRefresh,
encryptedAccessId,
encryptedAwsIamAssumRole
encryptedAwsAssumeIamRoleArn
}
})
);
+2 -2
View File
@@ -635,9 +635,9 @@ export const secretQueueFactory = ({
);
let awsAssumeRoleArn = null;
if (shouldUseSecretV2Bridge) {
if (integrationAuth.encryptedAwsIamAssumRole) {
if (integrationAuth.encryptedAwsAssumeIamRoleArn) {
awsAssumeRoleArn = secretManagerDecryptor({
cipherTextBlob: Buffer.from(integrationAuth.encryptedAwsIamAssumRole)
cipherTextBlob: Buffer.from(integrationAuth.encryptedAwsAssumeIamRoleArn)
}).toString();
}
} else if (