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: more updates
=86c06d5fa554
diff --git a/backend/src/ee/services/secret-scanning/secret-scanning-service.ts b/backend/src/ee/services/secret-scanning/secret-scanning-service.tsindex a5fbe37a78..4b7b2991ca 100644--- a/backend/src/ee/services/secret-scanning/secret-scanning-service.ts+++ b/backend/src/ee/services/secret-scanning/secret-scanning-service.ts@@ -7,7 +7,7 @@ import { OrgPermissionActions, OrgPermissionSubjects } from "@app/ee/services/peimport { TPermissionServiceFactory } from "@app/ee/services/permission/permission-service-types";import { getConfig } from "@app/lib/config/env";import { crypto } from "@app/lib/crypto/cryptography";-import { NotFoundError } from "@app/lib/errors";+import { BadRequestError, NotFoundError } from "@app/lib/errors";import { TGitAppDALFactory } from "./git-app-dal";import { TGitAppInstallSessionDALFactory } from "./git-app-install-session-dal";@@ -190,6 +190,11 @@ export const secretScanningServiceFactory = ({});ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Edit, OrgPermissionSubjects.SecretScanning);+ const existingRisk = await secretScanningDAL.findById(riskId);+ if (!existingRisk || existingRisk.orgId !== actorOrgId) {+ throw new BadRequestError({ message: "Risk not found or access denied" });+ }+const isRiskResolved = Boolean([SecretScanningRiskStatus.FalsePositive,diff --git a/backend/src/services/auth-token/auth-token-service.ts b/backend/src/services/auth-token/auth-token-service.tsindex df49535c13..d0cbfe756f 100644--- a/backend/src/services/auth-token/auth-token-service.ts+++ b/backend/src/services/auth-token/auth-token-service.ts@@ -150,8 +150,8 @@ export const tokenServiceFactory = ({ tokenDAL, userDAL, orgDAL, keyStore }: TAu}if (!isValidToken) {- if (token.triesLeft !== undefined) {- if (token.triesLeft === 1) {+ if (token.triesLeft !== undefined && token.triesLeft !== null) {+ if (token.triesLeft <= 1) {await tokenDAL.deleteTokenForUser({ type, userId, orgId: orgId || null });} else {await tokenDAL.decrementTriesField({ type, userId, orgId: orgId || null });