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
fix lint and type
adilson8e721e6d3304
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex e0160a092e..660f230e9a 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -1836,8 +1836,7 @@ export const FOLDER_ACCESS = {offset:"The offset to start from, applied to the users with access and the users without access independently. If you enter 10, each list starts from its 10th user.",limit: "The number of users to return in each of the two lists.",- search:- "The text string that user names and email addresses will be filtered by, applied to both lists.",+ search: "The text string that user names and email addresses will be filtered by, applied to both lists.",users:"The users whose project roles or folder access give them access on the folder. membership.roles lists only the roles that grant that access, so it is empty when the access comes from the folder access alone.",usersWithoutAccess:diff --git a/backend/src/services/folder-permission/folder-access-roles-fns.test.ts b/backend/src/services/folder-permission/folder-access-roles-fns.test.tsindex 8bcf413835..a3446d6702 100644--- a/backend/src/services/folder-permission/folder-access-roles-fns.test.ts+++ b/backend/src/services/folder-permission/folder-access-roles-fns.test.ts@@ -11,8 +11,8 @@ import {import { getPredefinedRoles } from "@app/services/project-role/project-role-fns";import {- BUILT_IN_PROJECT_ROLE_NAMES,buildFolderAccessRoster,+ BUILT_IN_PROJECT_ROLE_NAMES,collectDistinctRoles,FOLDER_ACCESS_PROBES,matchesSearch,@@ -368,7 +368,11 @@ describe("splitFolderAccessRoster", () => {expect(withAccess.map((entry) => entry.actor.userId)).toEqual(["admin", "former-admin", "custom-admin"]);// only a currently active built-in admin is one: an expired temporary admin and a custom role// slugged "admin" are ordinary grantees- expect(withAccess.map((entry) => entry.membership.isProjectAdmin)).toEqual([true, false, false]);+ expect(withAccess).toMatchObject([+ { membership: { isProjectAdmin: true } },+ { membership: { isProjectAdmin: false } },+ { membership: { isProjectAdmin: false } }+ ]);});test("keeps an admin out of the without-access list even when no role grants folder access", () => {diff --git a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsxindex 931fa3cd84..2ca679dc8e 100644--- a/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx+++ b/frontend/src/pages/secret-manager/OverviewPage/OverviewPage.tsx@@ -52,7 +52,6 @@ import { CommitHistorySheet } from "@app/components/secrets/CommitHistorySheet";import {Button as ButtonV2,DeleteActionModal,- Divider,Modal,ModalContent,PageHeader