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

This commit is contained in:
Carlos Monastyrski
2025-07-16 09:14:06 -03:00
parent 0e07ebae7b
commit 59c0f1ff08

View File

@@ -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,