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
address greptile comments
adilson244a0cb88c5e
diff --git a/backend/src/lib/api-docs/constants.ts b/backend/src/lib/api-docs/constants.tsindex 0bb22d930a..20f586bea1 100644--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@ -2901,6 +2901,14 @@ export const AppConnections = {ROTATE_CREDENTIALS: (app: AppConnection) => ({connectionId: `The ID of the ${APP_CONNECTION_NAME_MAP[app]} Connection to rotate credentials for.`}),+ KEEPER: {+ LIST_SHARED_FOLDERS: {+ connectionId: "The ID of the Keeper Connection to list shared folders from.",+ sharedFolders: "The Keeper shared folders the connection can access, sorted by name.",+ uid: "The UID of the Keeper shared folder.",+ name: "The name of the Keeper shared folder. Falls back to the UID when the folder has no name."+ }+ },CREDENTIALS: {AUTH0_CONNECTION: {domain: "The domain of the Auth0 instance to connect to.",diff --git a/backend/src/server/routes/v1/app-connection-routers/keeper-connection-router.ts b/backend/src/server/routes/v1/app-connection-routers/keeper-connection-router.tsindex 83576c800d..7187bd7474 100644--- a/backend/src/server/routes/v1/app-connection-routers/keeper-connection-router.ts+++ b/backend/src/server/routes/v1/app-connection-routers/keeper-connection-router.ts@@ -1,5 +1,6 @@import z from "zod";+import { AppConnections } from "@app/lib/api-docs";import { readLimit } from "@app/server/config/rateLimiter";import { verifyAuth } from "@app/server/plugins/auth/verify-auth";import { AppConnection } from "@app/services/app-connection/app-connection-enums";@@ -30,16 +31,17 @@ export const registerKeeperConnectionRouter = async (server: FastifyZodProvider)schema: {operationId: "listKeeperSharedFolders",params: z.object({- connectionId: z.string().uuid()+ connectionId: z.string().uuid().describe(AppConnections.KEEPER.LIST_SHARED_FOLDERS.connectionId)}),response: {200: z.object({sharedFolders: z.object({- uid: z.string(),- name: z.string()+ uid: z.string().describe(AppConnections.KEEPER.LIST_SHARED_FOLDERS.uid),+ name: z.string().describe(AppConnections.KEEPER.LIST_SHARED_FOLDERS.name)}).array()+ .describe(AppConnections.KEEPER.LIST_SHARED_FOLDERS.sharedFolders)})}},diff --git a/backend/src/services/app-connection/keeper/keeper-connection-fns.ts b/backend/src/services/app-connection/keeper/keeper-connection-fns.tsindex f29b064812..32bf9506cf 100644--- a/backend/src/services/app-connection/keeper/keeper-connection-fns.ts+++ b/backend/src/services/app-connection/keeper/keeper-connection-fns.ts@@ -58,6 +58,7 @@ export const executeKeeperCommand = async <T = unknown>(`${removeTrailingSlash(instanceUrl)}/api/v1/executecommand`,{ command },{+ timeout: 30_000,headers: {"api-key": apiKey,Accept: "application/json",@@ -141,7 +142,7 @@ export const listKeeperSharedFolders = async (appConnection: TKeeperConnection):if (!Array.isArray(rows)) return [];return rows- .filter((row) => typeof row?.shared_folder_uid === "string" && KEEPER_UID_PATTERN.test(row.shared_folder_uid))+ .filter((row) => typeof row?.shared_folder_uid === "string" && isAddressableKeeperUid(row.shared_folder_uid)).map((row) => ({ uid: row.shared_folder_uid, name: row.name || row.shared_folder_uid })).sort((a, b) => a.name.localeCompare(b.name));};