mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 10:28:22 +00:00
feat: updated backend
This commit is contained in:
@@ -19,7 +19,7 @@ const SanitizedGatewaySchema = GatewaysSchema.pick({
|
|||||||
});
|
});
|
||||||
const isValidRelayAddress = (relayAddress: string) => {
|
const isValidRelayAddress = (relayAddress: string) => {
|
||||||
const [ip, port] = relayAddress.split(":");
|
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) => {
|
export const registerGatewayRouter = async (server: FastifyZodProvider) => {
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
|||||||
environmentsUsed: 0,
|
environmentsUsed: 0,
|
||||||
identityLimit: null,
|
identityLimit: null,
|
||||||
identitiesUsed: 0,
|
identitiesUsed: 0,
|
||||||
dynamicSecret: true,
|
dynamicSecret: false,
|
||||||
secretVersioning: true,
|
secretVersioning: true,
|
||||||
pitRecovery: false,
|
pitRecovery: false,
|
||||||
ipAllowlisting: false,
|
ipAllowlisting: false,
|
||||||
@@ -52,7 +52,7 @@ export const getDefaultOnPremFeatures = (): TFeatureSet => ({
|
|||||||
enforceMfa: false,
|
enforceMfa: false,
|
||||||
projectTemplates: false,
|
projectTemplates: false,
|
||||||
kmip: false,
|
kmip: false,
|
||||||
gateway: true
|
gateway: false
|
||||||
});
|
});
|
||||||
|
|
||||||
export const setupLicenseRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {
|
export const setupLicenseRequestWithStore = (baseURL: string, refreshUrl: string, licenseKey: string) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user