Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore(gateway-pools): drop explanatory comments

bernie-g2b1024e5cb80
diff --git a/backend/src/lib/gateway-v2/gateway-load-tracker.ts b/backend/src/lib/gateway-v2/gateway-load-tracker.ts
index 19598d22b4..e9474acae8 100644
--- a/backend/src/lib/gateway-v2/gateway-load-tracker.ts
+++ b/backend/src/lib/gateway-v2/gateway-load-tracker.ts
@@ -46,10 +46,6 @@ type TGatewayLoadTracker = {
let tracker: TGatewayLoadTracker | undefined;
-// A gateway's own count is authoritative: it is taken at the one place every channel must pass
-// through, so it sees work the platform never proxied (a PAM CLI session dials the relay itself) and
-// any future caller too. The per-pod counters below only cover platform-initiated channels and exist
-// as a fallback for gateways too old to report.
const REPORTED_LOAD_TTL_SECONDS = 60;
const REPORTED_LOAD_MAX_AGE_MS = 35_000;
diff --git a/backend/src/services/app-connection/app-connection-service.ts b/backend/src/services/app-connection/app-connection-service.ts
index 3b94b4ab57..2aa6d2da80 100644
--- a/backend/src/services/app-connection/app-connection-service.ts
+++ b/backend/src/services/app-connection/app-connection-service.ts
@@ -687,8 +687,6 @@ export const appConnectionServiceFactory = ({
let connection: TAppConnectionRaw;
if (params.isPlatformManagedCredentials) {
- // Reuses the member validation actually succeeded on, and deliberately does not fail over:
- // this rotates the credential on the target, so a retry could apply the change twice.
connection = await TRANSITION_CONNECTION_CREDENTIALS_TO_PLATFORM[app](
{
app,
@@ -976,8 +974,6 @@ export const appConnectionServiceFactory = ({
let connection: TAppConnectionRaw;
if (params.isPlatformManagedCredentials) {
- // Reuses the member validation actually succeeded on, and deliberately does not fail over:
- // this rotates the credential on the target, so a retry could apply the change twice.
connection = await TRANSITION_CONNECTION_CREDENTIALS_TO_PLATFORM[app](
{
app,