Skip to content

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

update message

Maidul Islam6b2273d314a1
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
index d6f0091e55..692e6d33a6 100644
--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-fns.ts
@@ -437,7 +437,7 @@ export const expandSecretReferencesFactory = ({
if (!canExpandValue(environment, secretPath))
throw new UnauthorizedError({
- message: `You don't have access to secret ${secretKey} in environment ${environment} of secret path ${secretPath} `
+ message: `You are attempting to reference secret named ${secretKey} from environment ${environment} in path ${secretPath} which you do not have access to.`
});
// eslint-disable-next-line no-continue,no-await-in-loop
@@ -462,7 +462,7 @@ export const expandSecretReferencesFactory = ({
if (!canExpandValue(secretReferenceEnvironment, secretReferencePath))
throw new UnauthorizedError({
- message: `You don't have access to secret ${secretReferenceKey} in environment ${secretReferenceEnvironment} of secret path ${secretReferencePath} `
+ message: `You are attempting to reference secret named ${secretReferenceKey} from environment ${secretReferenceEnvironment} in path ${secretReferencePath} which you do not have access to.`
});
// eslint-disable-next-line no-await-in-loop