mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 19:28:09 +00:00
feat: resolved bug reported on search and integration failing due to typo in integration field
This commit is contained in:
@@ -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
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user