mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 18:27:36 +00:00
Remove ACME global feature flag
This commit is contained in:
@@ -109,10 +109,7 @@ export const registerV1EERoutes = async (server: FastifyZodProvider) => {
|
|||||||
await server.register(
|
await server.register(
|
||||||
async (pkiRouter) => {
|
async (pkiRouter) => {
|
||||||
await pkiRouter.register(registerCaCrlRouter, { prefix: "/crl" });
|
await pkiRouter.register(registerCaCrlRouter, { prefix: "/crl" });
|
||||||
// Notice: current this feature is still in development and is not yet ready for production.
|
await pkiRouter.register(registerPkiAcmeRouter, { prefix: "/acme" });
|
||||||
if (getConfig().isAcmeFeatureEnabled === true) {
|
|
||||||
await pkiRouter.register(registerPkiAcmeRouter, { prefix: "/acme" });
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ prefix: "/pki" }
|
{ prefix: "/pki" }
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -106,10 +106,6 @@ const envSchema = z
|
|||||||
HTTPS_ENABLED: zodStrBool,
|
HTTPS_ENABLED: zodStrBool,
|
||||||
ROTATION_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
ROTATION_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
||||||
DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
||||||
// Note: The ACME feature is still in development and is not yet ready for production.
|
|
||||||
// This is the feature flag to enable/disable the ACME feature.
|
|
||||||
// It's not intended to be used by users outside of the development team yet.
|
|
||||||
ACME_FEATURE_ENABLED: zodStrBool.default("false").optional(),
|
|
||||||
ACME_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
ACME_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),
|
||||||
ACME_DEVELOPMENT_HTTP01_CHALLENGE_HOST_OVERRIDES: zpStr(
|
ACME_DEVELOPMENT_HTTP01_CHALLENGE_HOST_OVERRIDES: zpStr(
|
||||||
z
|
z
|
||||||
@@ -399,7 +395,6 @@ const envSchema = z
|
|||||||
(data.NODE_ENV === "development" && data.ROTATION_DEVELOPMENT_MODE) || data.NODE_ENV === "test",
|
(data.NODE_ENV === "development" && data.ROTATION_DEVELOPMENT_MODE) || data.NODE_ENV === "test",
|
||||||
isDailyResourceCleanUpDevelopmentMode:
|
isDailyResourceCleanUpDevelopmentMode:
|
||||||
data.NODE_ENV === "development" && data.DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE,
|
data.NODE_ENV === "development" && data.DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE,
|
||||||
isAcmeFeatureEnabled: data.NODE_ENV === "development" && data.ACME_FEATURE_ENABLED === true,
|
|
||||||
isAcmeDevelopmentMode: data.NODE_ENV === "development" && data.ACME_DEVELOPMENT_MODE,
|
isAcmeDevelopmentMode: data.NODE_ENV === "development" && data.ACME_DEVELOPMENT_MODE,
|
||||||
isProductionMode: data.NODE_ENV === "production" || IS_PACKAGED,
|
isProductionMode: data.NODE_ENV === "production" || IS_PACKAGED,
|
||||||
isRedisSentinelMode: Boolean(data.REDIS_SENTINEL_HOSTS),
|
isRedisSentinelMode: Boolean(data.REDIS_SENTINEL_HOSTS),
|
||||||
|
|||||||
@@ -31,10 +31,7 @@ export const registerServeUI = async (
|
|||||||
CAPTCHA_SITE_KEY: appCfg.CAPTCHA_SITE_KEY,
|
CAPTCHA_SITE_KEY: appCfg.CAPTCHA_SITE_KEY,
|
||||||
POSTHOG_API_KEY: appCfg.POSTHOG_PROJECT_API_KEY,
|
POSTHOG_API_KEY: appCfg.POSTHOG_PROJECT_API_KEY,
|
||||||
INTERCOM_ID: appCfg.INTERCOM_ID,
|
INTERCOM_ID: appCfg.INTERCOM_ID,
|
||||||
TELEMETRY_CAPTURING_ENABLED: appCfg.TELEMETRY_ENABLED,
|
TELEMETRY_CAPTURING_ENABLED: appCfg.TELEMETRY_ENABLED
|
||||||
// The feature flag to enable/disable the ACME feature.
|
|
||||||
// Will be removed once the feature is ready for production.
|
|
||||||
ACME_FEATURE_ENABLED: appCfg.isAcmeFeatureEnabled
|
|
||||||
};
|
};
|
||||||
const js = `window.__INFISICAL_RUNTIME_ENV__ = Object.freeze(${JSON.stringify(config)});`;
|
const js = `window.__INFISICAL_RUNTIME_ENV__ = Object.freeze(${JSON.stringify(config)});`;
|
||||||
return res.send(js);
|
return res.send(js);
|
||||||
|
|||||||
Vendored
-1
@@ -7,7 +7,6 @@ declare global {
|
|||||||
POSTHOG_API_KEY?: string;
|
POSTHOG_API_KEY?: string;
|
||||||
INTERCOM_ID?: string;
|
INTERCOM_ID?: string;
|
||||||
TELEMETRY_CAPTURING_ENABLED: string;
|
TELEMETRY_CAPTURING_ENABLED: string;
|
||||||
ACME_FEATURE_ENABLED?: boolean;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-2
@@ -18,7 +18,6 @@ import {
|
|||||||
TextArea,
|
TextArea,
|
||||||
Tooltip
|
Tooltip
|
||||||
} from "@app/components/v2";
|
} from "@app/components/v2";
|
||||||
import { envConfig } from "@app/config/env";
|
|
||||||
import { useProject, useSubscription } from "@app/context";
|
import { useProject, useSubscription } from "@app/context";
|
||||||
import { useListCasByProjectId } from "@app/hooks/api/ca/queries";
|
import { useListCasByProjectId } from "@app/hooks/api/ca/queries";
|
||||||
import {
|
import {
|
||||||
@@ -490,7 +489,7 @@ export const CreateProfileModal = ({
|
|||||||
>
|
>
|
||||||
<SelectItem value="api">API</SelectItem>
|
<SelectItem value="api">API</SelectItem>
|
||||||
<SelectItem value="est">EST</SelectItem>
|
<SelectItem value="est">EST</SelectItem>
|
||||||
{envConfig.ACME_FEATURE_ENABLED && <SelectItem value="acme">ACME</SelectItem>}
|
<SelectItem value="acme">ACME</SelectItem>
|
||||||
</Select>
|
</Select>
|
||||||
</FormControl>
|
</FormControl>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user