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
feat: removed user paywall for user management and fixed a type error
=719a18c21804
diff --git a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.tsindex 09b3a50cbe..8238f3467d 100644--- a/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts+++ b/backend/src/services/secret-v2-bridge/secret-v2-bridge-service.ts@@ -2567,6 +2567,8 @@ export const secretV2BridgeServiceFactory = ({type: SecretType.Shared});+ if (!secret) throw new NotFoundError({ message: `Secret with name '${secretName}' not found` });+throwIfMissingSecretReadValueOrDescribePermission(permission, ProjectPermissionSecretActions.DescribeSecret, {environment,secretPath,@@ -2574,7 +2576,7 @@ export const secretV2BridgeServiceFactory = ({secretTags: (secret?.tags || []).map((el) => el.slug)});- const decryptedSecretValue = secret.encryptedValue+ const decryptedSecretValue = secret?.encryptedValue? secretManagerDecryptor({ cipherTextBlob: secret.encryptedValue }).toString(): "";diff --git a/backend/src/services/super-admin/super-admin-service.ts b/backend/src/services/super-admin/super-admin-service.tsindex 8efdfd7f97..dfa6981377 100644--- a/backend/src/services/super-admin/super-admin-service.ts+++ b/backend/src/services/super-admin/super-admin-service.ts@@ -282,12 +282,6 @@ export const superAdminServiceFactory = ({};const deleteUser = async (userId: string) => {- if (!licenseService.onPremFeatures?.instanceUserManagement) {- throw new BadRequestError({- message: "Failed to delete user due to plan restriction. Upgrade to Infisical's Pro plan."- });- }-const user = await userDAL.deleteById(userId);return user;};diff --git a/frontend/src/pages/admin/OverviewPage/components/UserPanel.tsx b/frontend/src/pages/admin/OverviewPage/components/UserPanel.tsxindex 6654439dee..7977c4f15f 100644--- a/frontend/src/pages/admin/OverviewPage/components/UserPanel.tsx+++ b/frontend/src/pages/admin/OverviewPage/components/UserPanel.tsx@@ -42,7 +42,6 @@ import {} from "@app/hooks/api";import { UsePopUpState } from "@app/hooks/usePopUp";-const deleteUserUpgradePlanMessage = "Deleting users via Admin UI";const addServerAdminUpgradePlanMessage = "Granting another user Server Admin permissions";const UserPanelTable = ({@@ -156,14 +155,6 @@ const UserPanelTable = ({<DropdownMenuItemonClick={(e) => {e.stopPropagation();- if (!subscription?.instanceUserManagement) {- handlePopUpOpen("upgradePlan", {- username,- id,- message: deleteUserUpgradePlanMessage- });- return;- }handlePopUpOpen("removeUser", { username, id });}}>