mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 10:35:17 +00:00
Patch integrations Secret querying by workspaceId
This commit is contained in:
@@ -72,7 +72,7 @@ const getSecretsHelper = async ({
|
||||
try {
|
||||
const key = await getKey({ workspaceId });
|
||||
const secrets = await Secret.find({
|
||||
workspaceId,
|
||||
workspace: workspaceId,
|
||||
environment,
|
||||
type: SECRET_SHARED
|
||||
});
|
||||
@@ -84,7 +84,7 @@ const getSecretsHelper = async ({
|
||||
tag: secret.secretKeyTag,
|
||||
key
|
||||
});
|
||||
|
||||
|
||||
const secretValue = decryptSymmetric({
|
||||
ciphertext: secret.secretValueCiphertext,
|
||||
iv: secret.secretValueIV,
|
||||
|
||||
@@ -55,7 +55,6 @@ const validateSecrets = async ({
|
||||
});
|
||||
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
throw new Error('Failed to validate secrets');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user