From 17e576511b163c48a08c3d1ad5b3f7965a47723f Mon Sep 17 00:00:00 2001 From: = Date: Fri, 21 Feb 2025 16:45:18 +0530 Subject: [PATCH] feat: updated backend --- backend/src/ee/routes/v1/gateway-router.ts | 2 +- backend/src/ee/services/license/license-fns.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/src/ee/routes/v1/gateway-router.ts b/backend/src/ee/routes/v1/gateway-router.ts index 860e5b66b..edb887e2d 100644 --- a/backend/src/ee/routes/v1/gateway-router.ts +++ b/backend/src/ee/routes/v1/gateway-router.ts @@ -19,7 +19,7 @@ const SanitizedGatewaySchema = GatewaysSchema.pick({ }); const isValidRelayAddress = (relayAddress: string) => { const [ip, port] = relayAddress.split(":"); - return isValidIp(ip) && Number(port) <= 65535 && Number(port) >= 49152; + return isValidIp(ip) && Number(port) <= 65535 && Number(port) >= 40000; }; export const registerGatewayRouter = async (server: FastifyZodProvider) => { diff --git a/backend/src/ee/services/license/license-fns.ts b/backend/src/ee/services/license/license-fns.ts index 85f5cf921..21d378802 100644 --- a/backend/src/ee/services/license/license-fns.ts +++ b/backend/src/ee/services/license/license-fns.ts @@ -17,7 +17,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({ environmentsUsed: 0, identityLimit: null, identitiesUsed: 0, - dynamicSecret: true, + dynamicSecret: false, secretVersioning: true, pitRecovery: false, ipAllowlisting: false, @@ -52,7 +52,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({ enforceMfa: false, projectTemplates: false, kmip: false, - gateway: true + gateway: false }); export const setupLicenseRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {