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
improvements: final feedback
Scott Wilson0cc3240956a6
diff --git a/backend/src/server/routes/v1/project-router.ts b/backend/src/server/routes/v1/project-router.tsindex 63941a3f4e..b44e93a667 100644--- a/backend/src/server/routes/v1/project-router.ts+++ b/backend/src/server/routes/v1/project-router.ts@@ -680,7 +680,7 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {server.route({method: "GET",- url: "/:workspaceId/folders/environment-folder-tree",+ url: "/:workspaceId/environment-folder-tree",config: {rateLimit: readLimit},diff --git a/frontend/src/components/permissions/AccessTree/components/AccessTreeContext.tsx b/frontend/src/components/permissions/AccessTree/components/AccessTreeContext.tsxindex fbac4a85e4..2a6767396e 100644--- a/frontend/src/components/permissions/AccessTree/components/AccessTreeContext.tsx+++ b/frontend/src/components/permissions/AccessTree/components/AccessTreeContext.tsx@@ -24,7 +24,7 @@ interface AccessTreeProviderProps {}export const AccessTreeProvider: React.FC<AccessTreeProviderProps> = ({ children }) => {- const [secretName, setSecretName] = useState("*");+ const [secretName, setSecretName] = useState("");const [viewMode, setViewMode] = useState(ViewMode.Docked);const value = useMemo(diff --git a/frontend/src/components/permissions/AccessTree/components/PermissionSimulation.tsx b/frontend/src/components/permissions/AccessTree/components/PermissionSimulation.tsxindex 8bc3b1b9de..476f2d27c6 100644--- a/frontend/src/components/permissions/AccessTree/components/PermissionSimulation.tsx+++ b/frontend/src/components/permissions/AccessTree/components/PermissionSimulation.tsx@@ -126,7 +126,11 @@ export const PermissionSimulation = ({{subject === ProjectPermissionSub.Secrets && (<div><FormLabel label="Secret Name" />- <Input value={secretName} onChange={(e) => setSecretName(e.target.value)} />+ <Input+ placeholder="*"+ value={secretName}+ onChange={(e) => setSecretName(e.target.value)}+ /></div>)}</>diff --git a/frontend/src/components/permissions/AccessTree/utils/createFolderNode.ts b/frontend/src/components/permissions/AccessTree/utils/createFolderNode.tsindex 9ccbfc604b..15c64ce8a2 100644--- a/frontend/src/components/permissions/AccessTree/utils/createFolderNode.ts+++ b/frontend/src/components/permissions/AccessTree/utils/createFolderNode.ts@@ -103,7 +103,7 @@ export const createFolderNode = ({if (hasPermission) {// we want to show yellow/conditional access if user hasn't specified secret name to fully resolve accessif (- (!secretName || secretName === "*") &&+ !secretName &&actionRuleMap.some((el) => {// we only show conditional if secretName/secretTags are present - environment and path can be directly determinedif (!el[action]?.conditions?.secretName && !el[action]?.conditions?.secretTags)diff --git a/frontend/src/hooks/api/secretFolders/queries.tsx b/frontend/src/hooks/api/secretFolders/queries.tsxindex 44fa227594..b49fbd6cc7 100644--- a/frontend/src/hooks/api/secretFolders/queries.tsx+++ b/frontend/src/hooks/api/secretFolders/queries.tsx@@ -56,7 +56,7 @@ export const useListProjectEnvironmentsFolders = (queryKey: folderQueryKeys.getProjectEnvironmentsFolders(projectId),queryFn: async () => {const { data } = await apiRequest.get<TProjectEnvironmentsFolders>(- `/api/v1/workspace/${projectId}/folders/environment-folder-tree`+ `/api/v1/workspace/${projectId}/environment-folder-tree`);return data;},diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionConditions.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionConditions.tsxindex 8617fe7d13..fcb22f4eb7 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionConditions.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/GeneralPermissionConditions.tsx@@ -46,7 +46,8 @@ export const GeneralPermissionConditions = ({ position = 0, isDisabled, type }:<div className="mt-6 border-t border-t-mineshaft-600 bg-mineshaft-800 pt-2"><p className="mt-2 text-gray-300">Conditions</p><p className="mb-2 text-sm text-mineshaft-400">- When this policy should apply (always if no conditions are added).+ When this policy should apply (always if no conditions are added). All conditions must+ evaluate to true for the policy to take effect.</p><div className="mt-2 flex flex-col space-y-2">{items.fields.map((el, index) => {diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/IdentityManagementPermissionConditions.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/IdentityManagementPermissionConditions.tsxindex c709ea49f0..b8159b7eb9 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/IdentityManagementPermissionConditions.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/IdentityManagementPermissionConditions.tsx@@ -40,7 +40,8 @@ export const IdentityManagementPermissionConditions = ({ position = 0, isDisable<div className="mt-6 border-t border-t-mineshaft-600 bg-mineshaft-800 pt-2"><p className="mt-2 text-gray-300">Conditions</p><p className="mb-2 text-sm text-mineshaft-400">- When this policy should apply (always if no conditions are added).+ When this policy should apply (always if no conditions are added). All conditions must+ evaluate to true for the policy to take effect.</p><div className="mt-2 flex flex-col space-y-2">{items.fields.map((el, index) => {diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/components/SecretPermissionConditions.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/components/SecretPermissionConditions.tsxindex ab893cb096..391ac0d878 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/components/SecretPermissionConditions.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/components/SecretPermissionConditions.tsx@@ -44,7 +44,8 @@ export const SecretPermissionConditions = ({ position = 0, isDisabled }: Props)<div className="mt-6 border-t border-t-mineshaft-600 bg-mineshaft-800 pt-2"><p className="mt-2 text-gray-300">Conditions</p><p className="mb-2 text-sm text-mineshaft-400">- When this policy should apply (always if no conditions are added).+ When this policy should apply (always if no conditions are added). All conditions must+ evaluate to true for the policy to take effect.</p><div className="mt-2 flex flex-col space-y-2">{items.fields.map((el, index) => {