Skip to content

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

Address PR comments

Carlos Monastyrski8dc5a48f0d5e
diff --git a/backend/src/services/app-connection/app-connection-fns.ts b/backend/src/services/app-connection/app-connection-fns.ts
index 739af8e06a..fcc2d6ab87 100644
--- a/backend/src/services/app-connection/app-connection-fns.ts
+++ b/backend/src/services/app-connection/app-connection-fns.ts
@@ -61,7 +61,7 @@ import {
getAzureDevopsConnectionListItem,
validateAzureDevOpsConnectionCredentials
} from "./azure-devops/azure-devops-fns";
-import { AzureDnsConnectionMethod } from "./azure-dns/azure-dns-connection-enum";
+import { AzureDnsConnectionMethod } from "./azure-dns/azure-dns-connection-enums";
import {
getAzureDnsConnectionListItem,
validateAzureDnsConnectionCredentials
diff --git a/backend/src/services/app-connection/azure-dns/azure-dns-connection-enum.ts b/backend/src/services/app-connection/azure-dns/azure-dns-connection-enums.ts
similarity index 100%
rename from backend/src/services/app-connection/azure-dns/azure-dns-connection-enum.ts
rename to backend/src/services/app-connection/azure-dns/azure-dns-connection-enums.ts
diff --git a/backend/src/services/app-connection/azure-dns/azure-dns-connection-fns.ts b/backend/src/services/app-connection/azure-dns/azure-dns-connection-fns.ts
index e8524c6fa5..a6390a5cb0 100644
--- a/backend/src/services/app-connection/azure-dns/azure-dns-connection-fns.ts
+++ b/backend/src/services/app-connection/azure-dns/azure-dns-connection-fns.ts
@@ -6,7 +6,7 @@ import { BadRequestError } from "@app/lib/errors";
import { logger } from "@app/lib/logger";
import { AppConnection } from "@app/services/app-connection/app-connection-enums";
-import { AzureDnsConnectionMethod } from "./azure-dns-connection-enum";
+import { AzureDnsConnectionMethod } from "./azure-dns-connection-enums";
import { TAzureDnsConnection, TAzureDnsConnectionConfig, TAzureDnsZone } from "./azure-dns-connection-types";
const AZURE_DNS_ZONE_RESOURCE_ID_REGEX = new RE2(
diff --git a/backend/src/services/app-connection/azure-dns/azure-dns-connection-schema.ts b/backend/src/services/app-connection/azure-dns/azure-dns-connection-schema.ts
index 060520c205..76363ea267 100644
--- a/backend/src/services/app-connection/azure-dns/azure-dns-connection-schema.ts
+++ b/backend/src/services/app-connection/azure-dns/azure-dns-connection-schema.ts
@@ -10,7 +10,7 @@ import {
} from "@app/services/app-connection/app-connection-schemas";
import { APP_CONNECTION_NAME_MAP } from "../app-connection-maps";
-import { AzureDnsConnectionMethod } from "./azure-dns-connection-enum";
+import { AzureDnsConnectionMethod } from "./azure-dns-connection-enums";
const AZURE_GUID_REGEX = new RE2("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", "i");
diff --git a/backend/src/services/app-connection/azure-dns/index.ts b/backend/src/services/app-connection/azure-dns/index.ts
index 93dfcd8269..476f498482 100644
--- a/backend/src/services/app-connection/azure-dns/index.ts
+++ b/backend/src/services/app-connection/azure-dns/index.ts
@@ -1,4 +1,4 @@
-export * from "./azure-dns-connection-enum";
+export * from "./azure-dns-connection-enums";
export * from "./azure-dns-connection-fns";
export * from "./azure-dns-connection-schema";
export * from "./azure-dns-connection-service";
diff --git a/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts b/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts
index d39d95b42a..66c82e2116 100644
--- a/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts
+++ b/backend/src/services/certificate-authority/acme/acme-certificate-authority-fns.ts
@@ -238,7 +238,7 @@ const getAcmeChallengeRecord = async (
keyAuthorization: string
): Promise<{ recordName: string; recordValue: string }> => {
let recordName: string;
- if (provider === AcmeDnsProvider.DNSMadeEasy) {
+ if (provider === AcmeDnsProvider.DNSMadeEasy || provider === AcmeDnsProvider.AzureDNS) {
// For DNS Made Easy, we don't need to provide the domain name in the record name.
recordName = "_acme-challenge";
} else {
@@ -436,7 +436,8 @@ export const orderCertificate = async (
}
const lookupName =
- acmeCa.configuration.dnsProviderConfig.provider === AcmeDnsProvider.DNSMadeEasy
+ acmeCa.configuration.dnsProviderConfig.provider === AcmeDnsProvider.DNSMadeEasy ||
+ acmeCa.configuration.dnsProviderConfig.provider === AcmeDnsProvider.AzureDNS
? recordName
: `_acme-challenge.${authz.identifier.value}`;
await waitForDnsPropagation(lookupName, recordValue);
diff --git a/backend/src/services/certificate-authority/acme/dns-providers/azure-dns.ts b/backend/src/services/certificate-authority/acme/dns-providers/azure-dns.ts
index 082f2dd8db..6f8e80d154 100644
--- a/backend/src/services/certificate-authority/acme/dns-providers/azure-dns.ts
+++ b/backend/src/services/certificate-authority/acme/dns-providers/azure-dns.ts
@@ -20,8 +20,6 @@ export const azureDnsInsertTxtRecord = async (
validateAzureDnsZoneResourceId(hostedZoneId);
- logger.info({ hostedZoneId, recordName, value }, "Inserting TXT record for Azure DNS");
-
try {
const accessToken = await getAzureDnsAccessToken(tenantId, clientId, clientSecret);
@@ -64,8 +62,6 @@ export const azureDnsDeleteTxtRecord = async (
validateAzureDnsZoneResourceId(hostedZoneId);
- logger.info({ hostedZoneId, recordName, value }, "Deleting TXT record for Azure DNS");
-
try {
const accessToken = await getAzureDnsAccessToken(tenantId, clientId, clientSecret);