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
Create ext ca
Fang-Pen Lin7d97f3263b74
diff --git a/backend/bdd/features/steps/pki_acme.py b/backend/bdd/features/steps/pki_acme.pyindex 274fabbdf9..ba4507b65f 100644--- a/backend/bdd/features/steps/pki_acme.py+++ b/backend/bdd/features/steps/pki_acme.py@@ -146,6 +146,27 @@ def step_impl(context: Context, var_name: str):context.vars[var_name] = response+@given("I create a external ACME CA with the following config as {var_name}")+def step_impl(context: Context, var_name: str):+ jwt_token = context.vars["AUTH_TOKEN"]+ ca_slug = faker.slug()+ config = replace_vars(json.loads(context.text), context.vars)+ response = context.http_client.post(+ "/api/v1/pki/ca/acme",+ headers=dict(authorization="Bearer {}".format(jwt_token)),+ json={+ "projectId": context.vars["PROJECT_ID"],+ "name": ca_slug,+ "type": "acme",+ "status": "active",+ "enableDirectIssuance": True,+ "configuration": config,+ },+ )+ response.raise_for_status()+ context.vars[var_name] = response++@given('I have an ACME cert profile with external ACME CA as "{profile_var}"')def step_impl(context: Context, profile_var: str):profile_id = context.vars.get("PROFILE_ID")diff --git a/backend/src/lib/config/env.ts b/backend/src/lib/config/env.tsindex fa649dd8ec..b02a9d4dc7 100644--- a/backend/src/lib/config/env.ts+++ b/backend/src/lib/config/env.ts@@ -106,7 +106,7 @@ const envSchema = zHTTPS_ENABLED: zodStrBool,ROTATION_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),DAILY_RESOURCE_CLEAN_UP_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),- BDD_MOCK_THIRD_PARTY_API_CALLS: zodStrBool.default("false").optional(),+ BDD_NOCK_API_ENABLED: zodStrBool.default("false").optional(),ACME_DEVELOPMENT_MODE: zodStrBool.default("false").optional(),ACME_DEVELOPMENT_HTTP01_CHALLENGE_HOST_OVERRIDES: zpStr(z@@ -399,7 +399,7 @@ const envSchema = zisAcmeDevelopmentMode: data.NODE_ENV === "development" && data.ACME_DEVELOPMENT_MODE,isProductionMode: data.NODE_ENV === "production" || IS_PACKAGED,isRedisSentinelMode: Boolean(data.REDIS_SENTINEL_HOSTS),- shouldMockThirdPartyApiCalls: data.NODE_ENV === "development" && data.BDD_MOCK_THIRD_PARTY_API_CALLS,+ isBddNockApiEnabled: data.NODE_ENV === "development" && data.BDD_NOCK_API_ENABLED,REDIS_SENTINEL_HOSTS: data.REDIS_SENTINEL_HOSTS?.trim()?.split(",").map((el) => {