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
misc: adjustments
Sheen Capadnganf52733769471
diff --git a/backend/src/server/routes/v1/certificate-authority-routers/internal-certificate-authority-router.ts b/backend/src/server/routes/v1/certificate-authority-routers/internal-certificate-authority-router.tsindex 00f43bff79..90cc860285 100644--- a/backend/src/server/routes/v1/certificate-authority-routers/internal-certificate-authority-router.ts+++ b/backend/src/server/routes/v1/certificate-authority-routers/internal-certificate-authority-router.ts@@ -764,7 +764,7 @@ export const registerInternalCertificateAuthorityRouter = async (server: Fastifyserver.route({method: "POST",- url: "/:caId/install-certificate-native-adcs",+ url: "/:caId/install-certificate-microsoft-adcs",config: {rateLimit: writeLimit},diff --git a/docs/documentation/platform/pki/ca/adcs.mdx b/docs/documentation/platform/pki/ca/adcs.mdxindex 0ddeb3a782..e7d68cd3ff 100644--- a/docs/documentation/platform/pki/ca/adcs.mdx+++ b/docs/documentation/platform/pki/ca/adcs.mdx@@ -58,11 +58,11 @@ You can use AD CS in a few ways: as an **External CA** that issues certificatesInfisical retrieves the templates published on your CA in real time, so a profile can only reference a template that exists and is reachable. The template lives on the issuance flow (the profile), not on the CA.- Ensure the templates you use are configured with:+ Before using a template, verify the following in AD CS:- - **Enroll permission** for the connection account- - **Subject name requirements** matching your requests- - **Key usage and extended key usage** appropriate for your use case+ - **Enroll permission**: The domain account you configured in the ADCS connection must have Enroll permission on the template.+ - **Subject name**: The template's subject name policy must be compatible with the certificates you plan to request (required fields, allowed patterns, and so on).+ - **Key usage**: The template's key usage and extended key usage must match what you need (for example, Server Authentication for TLS certificates).</Tab><Tab title="Code Signing Signers">@@ -125,7 +125,7 @@ You can use AD CS in a few ways: as an **External CA** that issues certificates</Step><Step title="Install the Certificate">```bash Request- curl --location --request POST 'https://app.infisical.com/api/v1/cert-manager/ca/internal/<ca-id>/install-certificate-native-adcs' \+ curl --location --request POST 'https://app.infisical.com/api/v1/cert-manager/ca/internal/<ca-id>/install-certificate-microsoft-adcs' \--header 'Authorization: Bearer <access-token>' \--header 'Content-Type: application/json' \--data-raw '{@@ -171,9 +171,8 @@ You can use AD CS in a few ways: as an **External CA** that issues certificates## Limitations-- Requests are issued immediately. Templates that require manual approval or are held by CA policy are not supported.-- Revoking a certificate requires the connection account to have Manage CA (Certificate Manager) rights on the CA, which is a stronger permission than the Enroll right used for issuance.-- Authentication uses NTLM.+- Templates that require manual approval or are held by CA policy are not supported. Requests are issued immediately.+- Authentication uses NTLM. Kerberos is not yet supported.## Troubleshootingdiff --git a/docs/integrations/app-connections/adcs.mdx b/docs/integrations/app-connections/adcs.mdxindex 6680a47674..17ca408c4a 100644--- a/docs/integrations/app-connections/adcs.mdx+++ b/docs/integrations/app-connections/adcs.mdx@@ -3,7 +3,7 @@ title: "Microsoft ADCS Connection"description: "Learn how to configure a Microsoft ADCS Connection for Infisical certificate management."----Connect Infisical to Microsoft Active Directory Certificate Services (AD CS) over MS-WCCE through an Infisical [Gateway](/documentation/platform/gateways/overview). The Gateway runs inside your network and speaks to the CA directly, so the AD CS server never needs to be exposed to Infisical.+Connect Infisical to Microsoft Active Directory Certificate Services (AD CS) through an Infisical [Gateway](/documentation/platform/gateways/overview). The Gateway runs inside your network and communicates with the CA directly, so your AD CS server never needs to be exposed to the internet.## Prerequisites@@ -11,7 +11,7 @@ Connect Infisical to Microsoft Active Directory Certificate Services (AD CS) ove- An Infisical [Gateway](/documentation/platform/gateways/overview) deployed inside the network that can reach the AD CS server- A domain account with Enroll permission on the certificate templates you plan to use (and Manage CA / Certificate Manager rights if you want to revoke certificates)- Network reachability from the Gateway to the AD CS server on:- - **TCP 135** (RPC endpoint mapper) and the server's **dynamic RPC port range** (default `49152-65535`) for MS-WCCE over DCOM+ - **TCP 135** (RPC endpoint mapper) and the server's **dynamic RPC port range** (default `49152-65535`) for MS-WCCE/MS-CSRA over DCOM- **TCP 445** (SMB) only if you rely on automatic CA-name discovery (reads the CA name over the Remote Registry service)## Connection Setup@@ -34,6 +34,6 @@ Connect Infisical to Microsoft Active Directory Certificate Services (AD CS) oveA Gateway is required. The control plane cannot reach AD CS over DCOM directly, so every operation is relayed through the Gateway.</Step><Step title="Connection Created">- Your **Microsoft ADCS Connection** is now available for use in your Infisical projects.+ Your **Microsoft ADCS Connection** is now available for use.</Step></Steps>diff --git a/frontend/src/helpers/appConnections.ts b/frontend/src/helpers/appConnections.tsindex a6d0cf7b91..56dd3afdc2 100644--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@ -161,7 +161,7 @@ export const APP_CONNECTION_MAP: Record<},[AppConnection.ADCS]: {name: "Microsoft ADCS",- image: "Microsoft Azure.png",+ image: "Windows.png",category: "CERTIFICATES",description: "Issue certificates via Active Directory Certificate Services over the Gateway."},diff --git a/frontend/src/hooks/api/ca/mutations.tsx b/frontend/src/hooks/api/ca/mutations.tsxindex efd9213226..5ca104e41a 100644--- a/frontend/src/hooks/api/ca/mutations.tsx+++ b/frontend/src/hooks/api/ca/mutations.tsx@@ -256,7 +256,7 @@ export const useInstallCaCertificateVenafi = () =>export const useInstallCaCertificateAdcs = () =>useInstallCaCertificate("install-certificate-adcs");export const useInstallCaCertificateAdcsNative = () =>- useInstallCaCertificate("install-certificate-native-adcs");+ useInstallCaCertificate("install-certificate-microsoft-adcs");export const useCreateCaSigningConfig = () => {const queryClient = useQueryClient();diff --git a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsxindex b4c40be5e1..8332808d98 100644--- a/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx+++ b/frontend/src/pages/cert-manager/CertificateAuthoritiesPage/components/CaInstallCertModal/CaInstallCertModal.tsx@@ -77,7 +77,7 @@ const INTEGRATIONS: TIntegration[] = [id: "adcs",name: "Microsoft ADCS",description: "Microsoft Active Directory Certificate Services",- image: "/images/integrations/Microsoft Azure.png"+ image: "/images/integrations/Windows.png"}];diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AdcsConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AdcsConnectionForm.tsxindex dc0a75053e..b534b1eb93 100644--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AdcsConnectionForm.tsx+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/AdcsConnectionForm.tsx@@ -21,7 +21,7 @@ import {TooltipTrigger} from "@app/components/v3";import { GatewayPicker } from "@app/components/v3/platform/GatewayPicker";-import { OrgPermissionSubjects, useSubscription } from "@app/context";+import { OrgPermissionSubjects } from "@app/context";import { OrgGatewayPermissionActions } from "@app/context/OrgPermissionContext/types";import { APP_CONNECTION_MAP, getAppConnectionMethodDetails } from "@app/helpers/appConnections";import { AdcsConnectionMethod, TAdcsConnection } from "@app/hooks/api/appConnections";@@ -87,7 +87,6 @@ export const AdcsConnectionForm = ({ appConnection, onSubmit }: Props) => {const gatewayId = watch("gatewayId");const gatewayPoolId = watch("gatewayPoolId");- const { subscription } = useSubscription();return (<FormProvider {...form}>@@ -129,60 +128,60 @@ export const AdcsConnectionForm = ({ appConnection, onSubmit }: Props) => {</Field>)}/>- {subscription.gateway && (- <OrgPermissionCan- I={OrgGatewayPermissionActions.AttachGateways}- a={OrgPermissionSubjects.Gateway}- >- {(isAllowed) => (- <Controller- name="gatewayId"- control={control}- render={({ fieldState: { error } }) => (- <Field className="mb-4">- <FieldLabel>Gateway</FieldLabel>- {isAllowed ? (- <GatewayPicker- isDisabled={!isAllowed}- value={{- gatewayId: gatewayId ?? null,- gatewayPoolId: gatewayPoolId ?? null- }}- onChange={({ gatewayId: newGwId, gatewayPoolId: newPoolId }) => {- setValue("gatewayId", newGwId, { shouldDirty: true });- setValue("gatewayPoolId", newPoolId, { shouldDirty: true });- }}- />- ) : (- <Tooltip>- <TooltipTrigger asChild>- <div>- <GatewayPicker- isDisabled={!isAllowed}- value={{- gatewayId: gatewayId ?? null,- gatewayPoolId: gatewayPoolId ?? null- }}- onChange={({ gatewayId: newGwId, gatewayPoolId: newPoolId }) => {- setValue("gatewayId", newGwId, { shouldDirty: true });- setValue("gatewayPoolId", newPoolId, { shouldDirty: true });- }}- />- </div>- </TooltipTrigger>- <TooltipContent>- Restricted access. You don't have permission to attach gateways to- resources.- </TooltipContent>- </Tooltip>- )}- <FieldError errors={[error]} />- </Field>- )}- />- )}- </OrgPermissionCan>- )}+ <OrgPermissionCan+ I={OrgGatewayPermissionActions.AttachGateways}+ a={OrgPermissionSubjects.Gateway}+ >+ {(isAllowed) => (+ <Controller+ name="gatewayId"+ control={control}+ render={({ fieldState: { error } }) => (+ <Field className="mb-4">+ <FieldLabel>Gateway</FieldLabel>+ {isAllowed ? (+ <GatewayPicker+ isRequired+ isDisabled={!isAllowed}+ value={{+ gatewayId: gatewayId ?? null,+ gatewayPoolId: gatewayPoolId ?? null+ }}+ onChange={({ gatewayId: newGwId, gatewayPoolId: newPoolId }) => {+ setValue("gatewayId", newGwId, { shouldDirty: true });+ setValue("gatewayPoolId", newPoolId, { shouldDirty: true });+ }}+ />+ ) : (+ <Tooltip>+ <TooltipTrigger asChild>+ <div>+ <GatewayPicker+ isRequired+ isDisabled={!isAllowed}+ value={{+ gatewayId: gatewayId ?? null,+ gatewayPoolId: gatewayPoolId ?? null+ }}+ onChange={({ gatewayId: newGwId, gatewayPoolId: newPoolId }) => {+ setValue("gatewayId", newGwId, { shouldDirty: true });+ setValue("gatewayPoolId", newPoolId, { shouldDirty: true });+ }}+ />+ </div>+ </TooltipTrigger>+ <TooltipContent>+ Restricted access. You don't have permission to attach gateways to+ resources.+ </TooltipContent>+ </Tooltip>+ )}+ <FieldError errors={[error]} />+ </Field>+ )}+ />+ )}+ </OrgPermissionCan><Controllername="credentials.caHost"control={control}