mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-17 12:56:29 +00:00
fix(secrets-service): throw on invalid env / path
This commit is contained in:
@@ -64,7 +64,8 @@ import {
|
||||
generatePaths,
|
||||
getAllSecretReferences,
|
||||
recursivelyGetSecretPaths,
|
||||
reshapeBridgeSecret
|
||||
reshapeBridgeSecret,
|
||||
validateSecretPath
|
||||
} from "./secret-v2-bridge-fns";
|
||||
import {
|
||||
SecretOperations,
|
||||
@@ -1040,6 +1041,15 @@ export const secretV2BridgeServiceFactory = ({
|
||||
projectId
|
||||
});
|
||||
|
||||
await validateSecretPath(
|
||||
{
|
||||
projectId,
|
||||
environment,
|
||||
secretPath: path
|
||||
},
|
||||
folderDAL
|
||||
);
|
||||
|
||||
const encryptedCachedSecrets = await keyStore.getItem(cacheKey);
|
||||
if (encryptedCachedSecrets) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user