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
Clean PR
Tuan Dang2273c21eb26c
diff --git a/backend/src/server/routes/v1/secret-sharing-router.ts b/backend/src/server/routes/v1/secret-sharing-router.tsindex fa4e9bf6ad..3363cc6c0a 100644--- a/backend/src/server/routes/v1/secret-sharing-router.ts+++ b/backend/src/server/routes/v1/secret-sharing-router.ts@@ -100,7 +100,7 @@ export const registerSecretSharingRouter = async (server: FastifyZodProvider) =>},schema: {body: z.object({- secretValue: z.string(),+ secretValue: z.string().max(10_000),password: z.string().optional(),expiresAt: z.string(),expiresAfterViews: z.number().min(1).optional()diff --git a/backend/src/services/secret-sharing/secret-sharing-service.ts b/backend/src/services/secret-sharing/secret-sharing-service.tsindex b427844d0d..0f7ee20b40 100644--- a/backend/src/services/secret-sharing/secret-sharing-service.ts+++ b/backend/src/services/secret-sharing/secret-sharing-service.ts@@ -114,11 +114,6 @@ export const secretSharingServiceFactory = ({throw new BadRequestError({ message: "Expiration date cannot exceed more than 30 days" });}- // Limit Input ciphertext length to 13000 (equivalent to 10,000 characters of Plaintext)n- if (secretValue.length > 10_000) {- throw new BadRequestError({ message: "Shared secret value too long" });- }-const encryptWithRoot = kmsService.encryptWithRootKey();const encryptedSecret = encryptWithRoot(Buffer.from(secretValue));diff --git a/frontend/src/views/ViewSecretPublicPage/ViewSecretPublicPage.tsx b/frontend/src/views/ViewSecretPublicPage/ViewSecretPublicPage.tsxindex 95475ad4a5..cc2cc16bab 100644--- a/frontend/src/views/ViewSecretPublicPage/ViewSecretPublicPage.tsx+++ b/frontend/src/views/ViewSecretPublicPage/ViewSecretPublicPage.tsx@@ -53,9 +53,6 @@ export const ViewSecretPublicPage = () => {((error as AxiosError)?.response?.data as { message: string })?.message ==="Invalid credentials";- console.log("data", fetchSecret);- console.log("err", error);-const shouldShowPasswordPrompt =isInvalidCredential || (fetchSecret?.isPasswordProtected && !fetchSecret.secret);const isValidatingPassword = Boolean(password) && isFetching;