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: updated by review comment
=accf42de2e15
diff --git a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.tsindex b5f20f0daf..c5a562a188 100644--- a/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts+++ b/backend/src/ee/services/audit-log-stream/audit-log-stream-service.ts@@ -2,6 +2,7 @@ import { ForbiddenError } from "@casl/ability";import { RawAxiosRequestHeaders } from "axios";import { SecretKeyEncoding } from "@app/db/schemas";+import { getConfig } from "@app/lib/config/env";import { request } from "@app/lib/config/request";import { infisicalSymmetricDecrypt, infisicalSymmetricEncypt } from "@app/lib/crypto/encryption";import { BadRequestError, NotFoundError, UnauthorizedError } from "@app/lib/errors";@@ -60,7 +61,8 @@ export const auditLogStreamServiceFactory = ({);ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Create, OrgPermissionSubjects.Settings);- await blockLocalAndPrivateIpAddresses(url);+ const appCfg = getConfig();+ if (appCfg.isCloud) await blockLocalAndPrivateIpAddresses(url);const totalStreams = await auditLogStreamDAL.find({ orgId: actorOrgId });if (totalStreams.length >= plan.auditLogStreamLimit) {@@ -131,8 +133,8 @@ export const auditLogStreamServiceFactory = ({const { orgId } = logStream;const { permission } = await permissionService.getOrgPermission(actor, actorId, orgId, actorAuthMethod, actorOrgId);ForbiddenError.from(permission).throwUnlessCan(OrgPermissionActions.Edit, OrgPermissionSubjects.Settings);-- if (url) await blockLocalAndPrivateIpAddresses(url);+ const appCfg = getConfig();+ if (url && appCfg.isCloud) await blockLocalAndPrivateIpAddresses(url);// testing connection firstconst streamHeaders: RawAxiosRequestHeaders = { "Content-Type": "application/json" };diff --git a/backend/src/services/integration-auth/integration-sync-secret.ts b/backend/src/services/integration-auth/integration-sync-secret.tsindex 4947b85f57..e5c9d4eb03 100644--- a/backend/src/services/integration-auth/integration-sync-secret.ts+++ b/backend/src/services/integration-auth/integration-sync-secret.ts@@ -3578,7 +3578,7 @@ const syncSecretsTeamCity = async ({.filter((parameter) => !parameter.inherited).reduce((obj, secret) => {- const secretName = secret.name.replace("env.", "");+ const secretName = secret.name.startsWith(".env") ? secret.name.slice(4) : secret.name;return {...obj,[secretName]: secret.value@@ -3635,7 +3635,7 @@ const syncSecretsTeamCity = async ({)).data.property.reduce((obj, secret) => {- const secretName = secret.name.replace("env.", "");+ const secretName = secret.name.startsWith("env.") ? secret.name.slice(4) : secret.name;return {...obj,[secretName]: secret.value