Skip to content

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

fix: correct delete secret UI permission check with path included

Scott Wilson154ea9e55d28
diff --git a/backend/src/ee/services/license/license-fns.ts b/backend/src/ee/services/license/license-fns.ts
index 7a1632f935..fa67b72d16 100644
--- a/backend/src/ee/services/license/license-fns.ts
+++ b/backend/src/ee/services/license/license-fns.ts
@@ -21,7 +21,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
secretVersioning: true,
pitRecovery: false,
ipAllowlisting: false,
- rbac: true,
+ rbac: false,
customRateLimits: false,
customAlerts: false,
auditLogs: false,
diff --git a/frontend/src/views/SecretOverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx b/frontend/src/views/SecretOverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
index db468095e7..62952b5fe0 100644
--- a/frontend/src/views/SecretOverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
+++ b/frontend/src/views/SecretOverviewPage/components/SecretOverviewTableRow/SecretEditRow.tsx
@@ -205,7 +205,12 @@ export const SecretEditRow = ({
</div>
<ProjectPermissionCan
I={ProjectPermissionActions.Delete}
- a={ProjectPermissionSub.Secrets}
+ a={subject(ProjectPermissionSub.Secrets, {
+ environment,
+ secretPath,
+ secretName,
+ secretTags: ["*"]
+ })}
>
{(isAllowed) => (
<div className="opacity-0 group-hover:opacity-100">