Skip to content

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

List secrets, throw when user does not have permission to read the referenced secret value

Carlos Monastyrski59c0f1ff0892
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
index 71180772ff..bb24c9d786 100644
--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts
@@ -1105,9 +1105,9 @@ export const secretV2BridgeServiceFactory = ({
if (shouldExpandSecretReferences) {
const secretsGroupByPath = groupBy(decryptedSecrets, (i) => i.secretPath);
- await Promise.allSettled(
+ await Promise.all(
Object.keys(secretsGroupByPath).map((groupedPath) =>
- Promise.allSettled(
+ Promise.all(
secretsGroupByPath[groupedPath].map(async (decryptedSecret, index) => {
const expandedSecretValue = await expandSecretReferences({
value: decryptedSecret.secretValue,