Skip to content

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

misc: bring back azure adcs completely

Sheen Capadngan2e5a7d43debd
diff --git a/backend/src/services/certificate-authority/certificate-authority-dal.ts b/backend/src/services/certificate-authority/certificate-authority-dal.ts
index ac89999f6b..02cc3013d2 100644
--- a/backend/src/services/certificate-authority/certificate-authority-dal.ts
+++ b/backend/src/services/certificate-authority/certificate-authority-dal.ts
@@ -386,35 +386,12 @@ export const certificateAuthorityDALFactory = (db: TDbClient) => {
}
};
- // External CAs of one type across all of the org's projects, excluding soft-deleted projects. Used to
- // grandfather deprecated CA types: an org that already runs one can keep adding more, everyone else
- // is turned away at creation.
- const countExternalCasByOrgIdAndType = async (orgId: string, type: string, tx?: Knex) => {
- try {
- const doc = await (tx || db.replicaNode())(TableName.CertificateAuthority)
- .join(
- TableName.ExternalCertificateAuthority,
- `${TableName.CertificateAuthority}.id`,
- `${TableName.ExternalCertificateAuthority}.caId`
- )
- .join(TableName.Project, `${TableName.CertificateAuthority}.projectId`, `${TableName.Project}.id`)
- .where(`${TableName.ExternalCertificateAuthority}.type`, type)
- .where(`${TableName.Project}.orgId`, orgId)
- .whereNull(`${TableName.Project}.deleteAfter`)
- .count();
- return Number(doc?.[0]?.count ?? 0);
- } catch (error) {
- throw new DatabaseError({ error, name: "Count External CAs By Org ID And Type - Certificate Authority" });
- }
- };
-
return {
...caOrm,
findWithAssociatedCa,
buildCertificateChain,
findByIdWithAssociatedCa,
findByNameAndProjectIdWithAssociatedCa,
- countInternalCasByOrgId,
- countExternalCasByOrgIdAndType
+ countInternalCasByOrgId
};
};
diff --git a/backend/src/services/certificate-authority/certificate-authority-service.ts b/backend/src/services/certificate-authority/certificate-authority-service.ts
index da6edc5b31..f09c947169 100644
--- a/backend/src/services/certificate-authority/certificate-authority-service.ts
+++ b/backend/src/services/certificate-authority/certificate-authority-service.ts
@@ -131,7 +131,6 @@ type TCertificateAuthorityServiceFactoryDep = {
| "findWithAssociatedCa"
| "findByNameAndProjectIdWithAssociatedCa"
| "countInternalCasByOrgId"
- | "countExternalCasByOrgIdAndType"
>;
externalCertificateAuthorityDAL: Pick<TExternalCertificateAuthorityDALFactory, "create" | "update" | "findOne">;
internalCertificateAuthorityService: TInternalCertificateAuthorityServiceFactory;
@@ -384,21 +383,7 @@ export const certificateAuthorityServiceFactory = ({
});
}
- // Azure ADCS (Web Enrollment) is deprecated in favour of the Microsoft ADCS connection. Orgs
- // already running one can keep adding more so we don't strand them; everyone else is turned away
if (type === CaType.AZURE_AD_CS) {
- const existingAzureAdCsCount = await certificateAuthorityDAL.countExternalCasByOrgIdAndType(
- actor.orgId,
- CaType.AZURE_AD_CS
- );
-
- if (existingAzureAdCsCount === 0) {
- throw new BadRequestError({
- message:
- "Azure ADCS (Web Enrollment) is deprecated and no longer available for new setups. Use the Microsoft ADCS certificate authority instead."
- });
- }
-
return azureAdCsFns.createCertificateAuthority({
name,
projectId,
diff --git a/docs/docs.json b/docs/docs.json
index d332193584..3030bab6f2 100644
--- a/docs/docs.json
+++ b/docs/docs.json
@@ -111,6 +111,7 @@
"integrations/app-connections/auth0",
"integrations/app-connections/adcs",
"integrations/app-connections/aws",
+ "integrations/app-connections/azure-adcs",
"integrations/app-connections/azure-app-configuration",
"integrations/app-connections/azure-client-secrets",
"integrations/app-connections/azure-devops",
@@ -1007,6 +1008,7 @@
"documentation/platform/pki/ca/godaddy",
"documentation/platform/pki/ca/sectigo",
"documentation/platform/pki/ca/adcs",
+ "documentation/platform/pki/ca/azure-adcs",
"documentation/platform/pki/ca/aws-pca",
"documentation/platform/pki/ca/aws-acm-public-ca",
"documentation/platform/pki/ca/venafi",
diff --git a/docs/documentation/platform/pki/ca/azure-adcs.mdx b/docs/documentation/platform/pki/ca/azure-adcs.mdx
index b16b46eeb8..9ed66e24d2 100644
--- a/docs/documentation/platform/pki/ca/azure-adcs.mdx
+++ b/docs/documentation/platform/pki/ca/azure-adcs.mdx
@@ -1,6 +1,6 @@
---
-title: "Microsoft AD CS"
-description: "Learn how to issue and manage certificates using Microsoft Active Directory Certificate Services (ADCS) with Infisical."
+title: "Azure ADCS (Web Enrollment)"
+description: "Learn how to issue and manage certificates using Microsoft Active Directory Certificate Services (AD CS) over HTTPS web enrollment."
---
Issue and manage certificates using Microsoft Active Directory Certificate Services (ADCS) for enterprise-grade certificate management integrated with your existing Windows infrastructure.
@@ -31,7 +31,7 @@ Infisical supports two ways to use AD CS: as an **External CA** for direct certi
<Step title="Create New Azure ADCS Certificate Authority">
Click **Create CA** and configure:
- - **Type**: Choose **Active Directory Certificate Services (AD CS)**
+ - **Type**: Choose **Azure ADCS (Web Enrollment)**
- **Name**: Friendly name for this CA (e.g., "Production ADCS CA")
- **App Connection**: Choose your ADCS connection from the dropdown
</Step>
@@ -172,8 +172,8 @@ Infisical supports two ways to use AD CS: as an **External CA** for direct certi
<Step title="Open the Install Certificate Modal">
Press **Install CA Certificate** on the intermediate CA. Select **External CA (Automated)** and press **Choose Integration**.
</Step>
- <Step title="Select Azure AD CS">
- Choose **Azure AD CS** as the integration provider.
+ <Step title="Select Azure ADCS (Web Enrollment)">
+ Choose **Azure ADCS (Web Enrollment)** as the integration provider.
</Step>
<Step title="Configure Signing Details">
Configure the following:
@@ -271,7 +271,7 @@ Infisical supports two ways to use AD CS: as an **External CA** for direct certi
<Tab title="Infisical UI">
Navigate to the CA details page and press the **Renew CA** button.
- The renewal modal will confirm that this CA is configured to use Azure AD CS for signing. Press **Renew via AD CS** to submit a new CSR to AD CS and install the renewed certificate.
+ The renewal modal will confirm that this CA is configured to use Azure ADCS for signing. Press **Renew via ADCS** to submit a new CSR to ADCS and install the renewed certificate.
</Tab>
<Tab title="API">
To manually renew an AD CS-signed CA, re-trigger the install flow via the API.
diff --git a/docs/documentation/platform/pki/ca/external-ca.mdx b/docs/documentation/platform/pki/ca/external-ca.mdx
index 5dce4cef4a..9411de76c3 100644
--- a/docs/documentation/platform/pki/ca/external-ca.mdx
+++ b/docs/documentation/platform/pki/ca/external-ca.mdx
@@ -59,6 +59,9 @@ Infisical can act as an ACME client, allowing integration with any [ACME-compati
<Card title="Microsoft ADCS" icon="microsoft" href="/documentation/platform/pki/ca/adcs">
Microsoft AD CS over MS-WCCE through an Infisical Gateway.
</Card>
+ <Card title="Azure ADCS (Web Enrollment)" icon="microsoft" href="/documentation/platform/pki/ca/azure-adcs">
+ Microsoft AD CS over HTTPS web enrollment.
+ </Card>
<Card title="Venafi TLS Protect Cloud" icon="cloud" href="/documentation/platform/pki/ca/venafi">
Venafi's cloud-based certificate management platform.
</Card>
diff --git a/docs/documentation/platform/pki/ca/overview.mdx b/docs/documentation/platform/pki/ca/overview.mdx
index fb459ffb05..153b4dd09f 100644
--- a/docs/documentation/platform/pki/ca/overview.mdx
+++ b/docs/documentation/platform/pki/ca/overview.mdx
@@ -62,6 +62,9 @@ Infisical integrates with major public and private CA providers:
<Card title="Microsoft ADCS" icon="microsoft" href="/documentation/platform/pki/ca/adcs">
Active Directory Certificate Services over the Gateway.
</Card>
+ <Card title="Azure ADCS (Web Enrollment)" icon="microsoft" href="/documentation/platform/pki/ca/azure-adcs">
+ Active Directory Certificate Services over HTTPS web enrollment.
+ </Card>
<Card title="Venafi" icon="building" href="/documentation/platform/pki/ca/venafi">
Enterprise certificate lifecycle management.
</Card>
diff --git a/docs/integrations/app-connections/azure-adcs.mdx b/docs/integrations/app-connections/azure-adcs.mdx
index 8d816e1a9e..cba894b2cf 100644
--- a/docs/integrations/app-connections/azure-adcs.mdx
+++ b/docs/integrations/app-connections/azure-adcs.mdx
@@ -20,7 +20,7 @@ Connect Infisical to Microsoft Active Directory Certificate Services (ADCS) for
![App Connections Tab](/images/app-connections/general/add-connection.png)
</Step>
<Step title="Add Connection">
- Select the **Azure ADCS Connection** option from the connection options modal.
+ Select the **Azure ADCS (Web Enrollment)** option from the connection options modal.
![Select Azure ADCS Connection](/images/app-connections/azure-adcs/azure-adcs-select-connection.png)
</Step>
<Step title="Configure Connection Details">
diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
index 8332808d98..dec26d7bde 100644
--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx
@@ -78,6 +78,12 @@ const INTEGRATIONS: TIntegration[] = [
name: "Microsoft ADCS",
description: "Microsoft Active Directory Certificate Services",
image: "/images/integrations/Windows.png"
+ },
+ {
+ id: "azure-adcs",
+ name: "Azure ADCS (Web Enrollment)",
+ description: "Active Directory Certificate Services over HTTPS web enrollment",
+ image: "/images/integrations/Microsoft Azure.png"
}
];