Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Log, add query for nock

Fang-Pen Linf2cc6588c371
diff --git a/backend/bdd/features/pki/acme/external-ca.feature b/backend/bdd/features/pki/acme/external-ca.feature
index 8007e8d4f0..8fcdb9a724 100644
--- a/backend/bdd/features/pki/acme/external-ca.feature
+++ b/backend/bdd/features/pki/acme/external-ca.feature
@@ -319,6 +319,7 @@ Feature: External CA
"scope": "https://api.dnsmadeeasy.com:443",
"method": "GET",
"path": "/V2.0/dns/managed/MOCK_ZONE_ID/records",
+ "query": {"type": "TXT", "recordName": "_acme-challenge"},
"status": 200,
"response": {
"totalRecords": 1,
diff --git a/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts b/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
index 6744662f10..7fda6561d2 100644
--- a/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
+++ b/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
@@ -19,7 +19,7 @@ export const dnsMadeEasyInsertTxtRecord = async (
credentials: { apiKey, secretKey }
} = connection;
- logger.info({ hostedZoneId, domain }, "Inserting TXT record for DNS Made Easy");
+ logger.info({ hostedZoneId, domain, value }, "Inserting TXT record for DNS Made Easy");
try {
await request.post(
getDNSMadeEasyUrl(`/V2.0/dns/managed/${encodeURIComponent(hostedZoneId)}/records`),
@@ -66,7 +66,7 @@ export const dnsMadeEasyDeleteTxtRecord = async (
credentials: { apiKey, secretKey }
} = connection;
- logger.info({ zoneId: hostedZoneId, domain }, "Deleting TXT record for DNS Made Easy");
+ logger.info({ hostedZoneId, domain, value }, "Deleting TXT record for DNS Made Easy");
try {
const dnsRecords = await listDNSMadeEasyRecords(connection, { zoneId: hostedZoneId, type: "TXT", name: domain });
@@ -90,7 +90,7 @@ export const dnsMadeEasyDeleteTxtRecord = async (
}
}
if (!foundRecord) {
- logger.warn({ zoneId: hostedZoneId, domain, value }, "Record to delete not found");
+ logger.warn({ hostedZoneId, domain, value }, "Record to delete not found");
}
} catch (error) {
if (axios.isAxiosError(error)) {