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
Add quote
Fang-Pen Lina8cd3619bd8b
diff --git a/backend/bdd/features/pki/acme/account.feature b/backend/bdd/features/pki/acme/account.featureindex 1a291bfdb3..463e6b04f2 100644--- a/backend/bdd/features/pki/acme/account.feature+++ b/backend/bdd/features/pki/acme/account.feature@@ -2,4 +2,4 @@ Feature: AccountScenario: Create a new accountGiven 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] and EAB key id {acme_profile.eab_kid} with secret {acme_profile.eab_secret} as acme_account+ Then 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_accountdiff --git a/backend/bdd/features/pki/acme/auth.feature b/backend/bdd/features/pki/acme/auth.featureindex dd824d18f9..b70599b66e 100644--- a/backend/bdd/features/pki/acme/auth.feature+++ b/backend/bdd/features/pki/acme/auth.feature@@ -4,7 +4,7 @@ Feature: AuthorizationGiven 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# # TODO: make it I have an account already instead?- Then 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_account+ Then 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_accountWhen I create certificate signing request as csrThen I add names to certificate signing request csr"""@@ -16,7 +16,7 @@ Feature: AuthorizationThen I create a RSA private key pair as cert_keyThen I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM formatThen I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order- Then the value order.authorizations[0].uri with jq . should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/(.+)+ Then the value order.authorizations[0].uri with jq "." should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/(.+)Then the value order.authorizations[0].body with jq ".status" should be equal to "pending"Then the value order.authorizations[0].body with jq ".challenges | map(pick(.type, .status)) | sort_by(.type)" should be equal to json"""diff --git a/backend/bdd/features/pki/acme/cert-profile.feature b/backend/bdd/features/pki/acme/cert-profile.featureindex e090d05819..7ce1ecc8c6 100644--- a/backend/bdd/features/pki/acme/cert-profile.feature+++ b/backend/bdd/features/pki/acme/cert-profile.feature@@ -45,5 +45,5 @@ Feature: ACME Cert ProfileThen the value response with jq ".eabSecret" should be presentAnd I memorize response with jq ".eabKid" as eab_kidAnd I memorize response with jq ".eabSecret" as eab_secret- 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] and EAB key id {eab_kid} with secret {eab_secret} as acme_account+ When I have an ACME client connecting to {BASE_URL}/api/v1/pki/acme/profiles/{profile_id}/directory+ Then I register a new ACME account with email [email protected] and EAB key id "{eab_kid}" with secret "{eab_secret}" as acme_accountdiff --git a/backend/bdd/features/pki/acme/challenge.feature b/backend/bdd/features/pki/acme/challenge.featureindex 960842ebfd..a5d94aff51 100644--- a/backend/bdd/features/pki/acme/challenge.feature+++ b/backend/bdd/features/pki/acme/challenge.feature@@ -4,7 +4,7 @@ Feature: ChallengeGiven 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# # TODO: make it I have an account already instead?- Then 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_account+ Then 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_accountWhen I create certificate signing request as csrThen I add names to certificate signing request csr"""diff --git a/backend/bdd/features/pki/acme/order.feature b/backend/bdd/features/pki/acme/order.featureindex 1ba2c3570f..49f72e4859 100644--- a/backend/bdd/features/pki/acme/order.feature+++ b/backend/bdd/features/pki/acme/order.feature@@ -4,7 +4,7 @@ Feature: OrderGiven 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# # TODO: make it I have an account already instead?- Then 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_account+ Then 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_accountWhen I create certificate signing request as csrThen I add names to certificate signing request csr"""@@ -16,17 +16,17 @@ Feature: OrderThen I create a RSA private key pair as cert_keyThen I sign the certificate signing request csr with private key cert_key and output it as csr_pem in PEM formatThen I submit the certificate signing request PEM csr_pem certificate order to the ACME server as order- Then the value order.uri with jq . should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/orders/(.+)- Then the value order.body with jq .status should be equal to "pending"- Then the value order.body with jq .identifiers should be equal to [{"type": "dns", "value": "localhost"}]- Then the value order.body with jq .finalize should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/orders/(.+)/finalize- Then the value order.body with jq all(.authorizations[]; startswith("{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/")) should be equal to true+ Then the value order.uri with jq "." should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/orders/(.+)+ Then the value order.body with jq ".status" should be equal to "pending"+ Then the value order.body with jq ".identifiers" should be equal to [{"type": "dns", "value": "localhost"}]+ Then the value order.body with jq ".finalize" should match pattern {BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/orders/(.+)/finalize+ Then the value order.body with jq "all(.authorizations[]; startswith('{BASE_URL}/api/v1/pki/acme/profiles/{acme_profile.id}/authorizations/'))" should be equal to trueScenario: Create a new order with SANsGiven 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# # TODO: make it I have an account already instead?- Then 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_account+ Then 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_accountWhen I create certificate signing request as csrThen I add names to certificate signing request csr"""@@ -58,7 +58,7 @@ Feature: OrderGiven 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# # TODO: make it I have an account already instead?- Then 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_account+ Then 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_accountWhen I create certificate signing request as csrThen I add names to certificate signing request csr"""diff --git a/backend/bdd/features/steps/pki_acme.py b/backend/bdd/features/steps/pki_acme.pyindex c78c45ede8..167eab20dd 100644--- a/backend/bdd/features/steps/pki_acme.py+++ b/backend/bdd/features/steps/pki_acme.py@@ -217,7 +217,7 @@ def step_impl(context: Context):@then(- "I register a new ACME account with email {email} and EAB key id {kid} with secret {secret} as {account_var}"+ 'I register a new ACME account with email {email} and EAB key id "{kid}" with secret "{secret}" as {account_var}')def step_impl(context: Context, email: str, kid: str, secret: str, account_var: str):acme_client = context.acme_client