Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Update secret-snapshot-service.ts
Daniel Hougaarda86a951acca1
diff --git a/backend/src/ee/services/secret-snapshot/secret-snapshot-service.ts b/backend/src/ee/services/secret-snapshot/secret-snapshot-service.tsindex 35023028fa..e8eab30172 100644--- a/backend/src/ee/services/secret-snapshot/secret-snapshot-service.ts+++ b/backend/src/ee/services/secret-snapshot/secret-snapshot-service.ts@@ -102,7 +102,7 @@ export const secretSnapshotServiceFactory = ({// We need to check if the user has access to the secrets in the folder. If we don't do this, a user could theoretically access snapshot secret values even if they don't have read access to the secrets in the folder.ForbiddenError.from(permission).throwUnlessCan(- ProjectPermissionSecretActions.ReadValue,+ ProjectPermissionSecretActions.DescribeSecret,subject(ProjectPermissionSub.Secrets, { environment, secretPath: path }));@@ -139,7 +139,7 @@ export const secretSnapshotServiceFactory = ({// We need to check if the user has access to the secrets in the folder. If we don't do this, a user could theoretically access snapshot secret values even if they don't have read access to the secrets in the folder.ForbiddenError.from(permission).throwUnlessCan(- ProjectPermissionSecretActions.ReadValue,+ ProjectPermissionSecretActions.DescribeSecret,subject(ProjectPermissionSub.Secrets, { environment, secretPath: path }));