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
refactor(pam-clickhouse): drop comments that restated the code
bernie-gd97d918ed3c4
diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-fns.ts b/backend/src/ee/services/gateway-v2/gateway-v2-fns.tsindex 458fae22c0..06e88bc4f9 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-fns.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-fns.ts@@ -43,7 +43,6 @@ export const testConnectionWithGateway = async (}};-// Takes the built test whole so its authorised ports can't be dropped.export const testBuiltConnectionWithGateway = async (test: { host: string; port: number; request: Record<string, unknown>; additionalPorts?: number[] },gatewayId: string,diff --git a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts b/backend/src/ee/services/gateway-v2/gateway-v2-service.tsindex 55f97f6130..c2cd5398ff 100644--- a/backend/src/ee/services/gateway-v2/gateway-v2-service.ts+++ b/backend/src/ee/services/gateway-v2/gateway-v2-service.ts@@ -433,7 +433,6 @@ export const gatewayV2ServiceFactory = ({const routingInfo = {targetHost,targetPort,- // A gateway too old to read this keeps using targetPort, so adding it is additive....(allowedPorts.length > 1 ? { targetPorts: allowedPorts } : {})};diff --git a/backend/src/ee/services/pam-account/pam-account-connection-test.test.ts b/backend/src/ee/services/pam-account/pam-account-connection-test.test.tsindex 9190e01df2..965e28ea2c 100644--- a/backend/src/ee/services/pam-account/pam-account-connection-test.test.ts+++ b/backend/src/ee/services/pam-account/pam-account-connection-test.test.ts@@ -10,7 +10,6 @@ import {const ORG_ID = "11111111-1111-1111-1111-111111111111";-// An `undefined` property is still a present key in JS, so only the wire form proves a field was omitted.const wireKeys = (request: unknown): string[] => Object.keys(JSON.parse(JSON.stringify(request)) as object);describe("buildGatewayConnectionTest: MSSQL Windows authentication", () => {diff --git a/backend/src/ee/services/pam-account/pam-account-schemas.test.ts b/backend/src/ee/services/pam-account/pam-account-schemas.test.tsindex 9f96d31b4e..b6395ea5c7 100644--- a/backend/src/ee/services/pam-account/pam-account-schemas.test.ts+++ b/backend/src/ee/services/pam-account/pam-account-schemas.test.ts@@ -256,7 +256,6 @@ describe("buildPamAccountTypeMetadata", () => {nativePort: 9000});- // Clearing a number input submits an empty string, so an HTTP-only account has to save through it.for (const cleared of ["", " ", null, undefined]) {const result = validateConnectionDetails(PamAccountType.ClickHouse, { ...base, nativePort: cleared });expect((result as { nativePort?: number }).nativePort).toBeUndefined();