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
EAB tests
Fang-Pen Lin9e12d67e01e8
diff --git a/backend/bdd/features/pki/acme/account.feature b/backend/bdd/features/pki/acme/account.featureindex 60400cff05..1540aa1df0 100644--- a/backend/bdd/features/pki/acme/account.feature+++ b/backend/bdd/features/pki/acme/account.feature@@ -5,3 +5,9 @@ Feature: AccountWhen I have an ACME client connecting to {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/directoryThen I register a new ACME account with email [email protected] and EAB key id "{acme_profile.eab_kid}" with secret "{acme_profile.eab_secret}" as acme_accountThen the value acme_account.uri with jq "." should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/accounts/(.+)++ Scenario: Create a new account without EAB+ Given I have an ACME cert profile as "acme_profile"+ When I have an ACME client connecting to {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/directory+ Then I register a new ACME account with email [email protected] without EAB+ Then the value error with jq ".type" should be equal to "urn:ietf:params:acme:error:externalAccountRequired"diff --git a/backend/bdd/features/steps/pki_acme.py b/backend/bdd/features/steps/pki_acme.pyindex 02148b2878..2e0596666c 100644--- a/backend/bdd/features/steps/pki_acme.py+++ b/backend/bdd/features/steps/pki_acme.py@@ -252,6 +252,18 @@ def step_impl(context: Context, email: str, kid: str, secret: str, account_var:context.vars[account_var] = acme_client.new_account(registration)+@then("I register a new ACME account with email {email} without EAB")+def step_impl(context: Context, email: str):+ acme_client = context.acme_client+ registration = messages.NewRegistration.from_data(+ email=email,+ )+ try:+ acme_client.new_account(registration)+ except Exception as exp:+ context.vars["error"] = exp++def send_raw_acme_req(context: Context, url: str):acme_client = context.acme_clientcontent = json.loads(context.text)