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
Address PR comments
Carlos Monastyrski193e7c5c5496
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.tsindex 63cb927a50..6a48c0be25 100644--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@ -1,6 +1,7 @@import { ProjectType } from "@app/db/schemas";import { HoneyTokenType } from "@app/ee/services/honey-token/honey-token-enums";import { ScepChallengeType } from "@app/ee/services/pki-scep/challenge";+import { ScepEnrollmentStatus } from "@app/ee/services/pki-scep/pki-scep-types";import {TCreateProjectTemplateDTO,TUpdateProjectTemplateDTO@@ -7046,7 +7047,7 @@ interface ScepEnrollmentEvent {transactionId: string;csrSubject: string;challengeType: ScepChallengeType;- status: "success" | "pending" | "failure";+ status: ScepEnrollmentStatus;failReason?: string;issuedCertificateId?: string;issuedSerialNumber?: string;@@ -7062,7 +7063,7 @@ interface ScepRenewalEvent {transactionId: string;csrSubject: string;existingCertificateSerial?: string;- status: "success" | "pending" | "failure";+ status: ScepEnrollmentStatus;failReason?: string;issuedCertificateId?: string;issuedSerialNumber?: string;diff --git a/backend/src/ee/services/pki-scep/challenge/scep-intune-handler.ts b/backend/src/ee/services/pki-scep/challenge/scep-intune-handler.tsindex fb80be0261..5f4269820b 100644--- a/backend/src/ee/services/pki-scep/challenge/scep-intune-handler.ts+++ b/backend/src/ee/services/pki-scep/challenge/scep-intune-handler.ts@@ -55,6 +55,8 @@ export const intuneDelegatedHandler = (deps: TScepValidationHandlerDeps): IScepV};return {+ supportsPendingIssuance: false,+ requiresIssuanceNotification: true,validateRequest: async (ctx) => {const { serviceUri, intuneToken } = await resolveIntune(ctx.validationConnectionId);const result = await intuneValidateScepRequest({diff --git a/backend/src/ee/services/pki-scep/challenge/scep-self-validated-handler.ts b/backend/src/ee/services/pki-scep/challenge/scep-self-validated-handler.tsindex 11eb3d00f6..d5907c2e0c 100644--- a/backend/src/ee/services/pki-scep/challenge/scep-self-validated-handler.ts+++ b/backend/src/ee/services/pki-scep/challenge/scep-self-validated-handler.ts@@ -13,6 +13,8 @@ export const selfValidatedHandler = (: staticChallengeValidator({ scepEnrollmentConfigDAL: deps.scepEnrollmentConfigDAL });return {+ supportsPendingIssuance: true,+ requiresIssuanceNotification: false,validateRequest: async (ctx) => {const isValid = await validator.validate(ctx.challengePassword, ctx.scepConfigId);return isValid ? { allowed: true } : { allowed: false };diff --git a/backend/src/ee/services/pki-scep/challenge/scep-validation-handler-types.ts b/backend/src/ee/services/pki-scep/challenge/scep-validation-handler-types.tsindex 6da60aa099..51a70433c3 100644--- a/backend/src/ee/services/pki-scep/challenge/scep-validation-handler-types.ts+++ b/backend/src/ee/services/pki-scep/challenge/scep-validation-handler-types.ts@@ -28,11 +28,17 @@ export type ScepFailureContext = {validationConnectionId?: string | null;};-export interface IScepValidationHandler {+type TScepValidationHandlerBase = {+ supportsPendingIssuance: boolean;validateRequest(ctx: ScepValidationContext): Promise<ScepValidationResult>;- reportIssued?(ctx: ScepIssuedContext): Promise<void>;reportFailure?(ctx: ScepFailureContext): Promise<void>;-}+};++export type IScepValidationHandler = TScepValidationHandlerBase &+ (+ | { requiresIssuanceNotification: false; reportIssued?: (ctx: ScepIssuedContext) => Promise<void> }+ | { requiresIssuanceNotification: true; reportIssued: (ctx: ScepIssuedContext) => Promise<void> }+ );export type TScepValidationHandlerDeps = {scepEnrollmentConfigDAL: Pick<TScepEnrollmentConfigDALFactory, "findById">;diff --git a/backend/src/ee/services/pki-scep/pki-scep-fns.ts b/backend/src/ee/services/pki-scep/pki-scep-fns.tsindex 7c240a9af6..f749f9ba09 100644--- a/backend/src/ee/services/pki-scep/pki-scep-fns.ts+++ b/backend/src/ee/services/pki-scep/pki-scep-fns.ts@@ -4,7 +4,6 @@ import RE2 from "re2";import { extractX509CertFromChain } from "@app/lib/certificates/extract-certificate";import { crypto } from "@app/lib/crypto/cryptography";import { BadRequestError } from "@app/lib/errors";-import { logger } from "@app/lib/logger";import { TCertificateDALFactory } from "@app/services/certificate/certificate-dal";import { isCertChainValid } from "@app/services/certificate/certificate-fns";import { CertStatus } from "@app/services/certificate/certificate-types";@@ -208,10 +207,9 @@ const generateScepRaCertificate = async ({const ca = await deps.certificateAuthorityDAL.findByIdWithAssociatedCa(caId);const caType = (ca?.externalCa?.type as CaType) ?? CaType.INTERNAL;if (!isScepRaCaSigningSupported(caType)) {- logger.warn(- `SCEP RA CA-signing requested for unsupported CA type '${caType}'; using a self-signed RA [caId=${caId}]`- );- return buildRaCertificate(slug);+ throw new BadRequestError({+ message: `CA-signed SCEP RA certificates are not supported for '${caType}' certificate authorities.`+ });}return buildCaSignedRaCertificate(slug, caId, deps);diff --git a/backend/src/ee/services/pki-scep/pki-scep-service.ts b/backend/src/ee/services/pki-scep/pki-scep-service.tsindex ab13e5069a..43f6a7b639 100644--- a/backend/src/ee/services/pki-scep/pki-scep-service.ts+++ b/backend/src/ee/services/pki-scep/pki-scep-service.ts@@ -50,7 +50,7 @@ import { getProjectKmsCertificateKeyId } from "@app/services/project/project-fnsimport { EventType, TAuditLogServiceFactory } from "../audit-log/audit-log-types";import { convertRawCertsToPkcs7 } from "../certificate-est/certificate-est-fns";import { TLicenseServiceFactory } from "../license/license-service";-import { getScepValidationHandler, ScepChallengeType } from "./challenge";+import { getScepValidationHandler, IScepValidationHandler, ScepChallengeType } from "./challenge";import { TScepDynamicChallengeDALFactory } from "./pki-scep-dynamic-challenge-dal";import {evaluateScepRenewalAuthorization,@@ -64,7 +64,9 @@ import { buildCertRepFailure, buildCertRepPending, buildCertRepSuccess } from ".import { parseScepMessage } from "./pki-scep-message-parser";import { TScepTransactionDALFactory } from "./pki-scep-transaction-dal";import {+ ScepEnrollmentStatus,ScepFailInfo,+ ScepIssuanceStatus,ScepMessageType,TGenerateDynamicChallengeDTO,TGetCaCapsDTO,@@ -101,6 +103,8 @@ export type TPkiScepServiceFactory = ReturnType<typeof pkiScepServiceFactory>;const SCEP_TRANSACTION_EXPIRY_HOURS = 24;+const SCEP_ISSUANCE_NOTIFICATION_FAILED = "Failed to notify the SCEP validation provider of the issued certificate.";+export const pkiScepServiceFactory = ({certificateV3Service,certificateProfileDAL,@@ -266,6 +270,43 @@ export const pkiScepServiceFactory = ({return x509.PemConverter.encode(der, label);};+ const $getValidationHandler = (challengeType: string) =>+ getScepValidationHandler(challengeType as ScepChallengeType, {+ scepEnrollmentConfigDAL,+ scepDynamicChallengeDAL,+ appConnectionDAL,+ kmsService+ });++ const $reportIssuedCertificate = async ({+ validationHandler,+ transactionId,+ csrDer,+ certificateDer,+ validationConnectionId+ }: {+ validationHandler: IScepValidationHandler;+ transactionId: string;+ csrDer: Buffer | null;+ certificateDer: Buffer;+ validationConnectionId?: string | null;+ }): Promise<{ canDeliver: boolean }> => {+ if (!validationHandler.reportIssued) return { canDeliver: true };++ if (!csrDer) {+ logger.error(`Cannot report SCEP issuance without the original CSR [transactionId=${transactionId}]`);+ return { canDeliver: !validationHandler.requiresIssuanceNotification };+ }++ try {+ await validationHandler.reportIssued({ transactionId, csrDer, certificateDer, validationConnectionId });+ return { canDeliver: true };+ } catch (reportErr) {+ logger.error(reportErr, `Failed to report SCEP issuance success [transactionId=${transactionId}]`);+ return { canDeliver: !validationHandler.requiresIssuanceNotification };+ }+ };+const resolveIssuanceParams = async (profile: TScepContext["profile"]) => {const policy = profile.certificatePolicyId? await certificatePolicyDAL.findById(profile.certificatePolicyId)@@ -325,6 +366,7 @@ export const pkiScepServiceFactory = ({// eslint-disable-next-line @typescript-eslint/no-use-before-definereturn handleGetCertInitial({profile,+ scepConfig,raPrivateKeyDer,raCertDer,parsed@@ -364,7 +406,7 @@ export const pkiScepServiceFactory = ({const challengePassword = extractScepChallengePassword(csrObj);const logEnrollmentEvent = (outcome: {- status: "success" | "pending" | "failure";+ status: ScepEnrollmentStatus;failReason?: string;issuedCertificateId?: string;issuedSerialNumber?: string;@@ -386,12 +428,7 @@ export const pkiScepServiceFactory = ({}});- const validationHandler = getScepValidationHandler(scepConfig.challengeType as ScepChallengeType, {- scepEnrollmentConfigDAL,- scepDynamicChallengeDAL,- appConnectionDAL,- kmsService- });+ const validationHandler = $getValidationHandler(scepConfig.challengeType);const csrDer = Buffer.from(parsed.csr);const validationResult = await validationHandler.validateRequest({@@ -436,7 +473,10 @@ export const pkiScepServiceFactory = ({}}- void logEnrollmentEvent({ status: "failure", failReason: denyReason || "Invalid challenge password" });+ void logEnrollmentEvent({+ status: ScepEnrollmentStatus.Failure,+ failReason: denyReason || "Invalid challenge password"+ });return buildCertRepFailure({raCertDer,@@ -477,11 +517,11 @@ export const pkiScepServiceFactory = ({throw err;}- if (result.status === "pending") {- if (scepConfig.challengeType === ScepChallengeType.MICROSOFT_INTUNE) {+ if (result.status === ScepIssuanceStatus.Pending) {+ if (!validationHandler.supportsPendingIssuance) {const failReason =- "Certificate issuance requires approval and cannot complete synchronously for Microsoft Intune.";- void logEnrollmentEvent({ status: "failure", failReason });+ "Certificate issuance requires approval, which the configured SCEP validation provider does not support.";+ void logEnrollmentEvent({ status: ScepEnrollmentStatus.Failure, failReason });await validationHandler.reportFailure?.({@@ -503,7 +543,7 @@ export const pkiScepServiceFactory = ({});}- void logEnrollmentEvent({ status: "pending" });+ void logEnrollmentEvent({ status: ScepEnrollmentStatus.Pending });return buildCertRepPending({raCertDer,@@ -513,44 +553,30 @@ export const pkiScepServiceFactory = ({});}- const { issuedCertDer } = result;- const notifyIssued = () =>- validationHandler.reportIssued?.({- transactionId: parsed.transactionId,- csrDer,- certificateDer: issuedCertDer,- validationConnectionId: scepConfig.validationConnectionId+ const { canDeliver } = await $reportIssuedCertificate({+ validationHandler,+ transactionId: parsed.transactionId,+ csrDer,+ certificateDer: result.issuedCertDer,+ validationConnectionId: scepConfig.validationConnectionId+ });+ if (!canDeliver) {+ void logEnrollmentEvent({+ status: ScepEnrollmentStatus.Failure,+ failReason: SCEP_ISSUANCE_NOTIFICATION_FAILED});- if (scepConfig.challengeType === ScepChallengeType.MICROSOFT_INTUNE) {- try {- await notifyIssued();- } catch (reportErr) {- logger.error(- reportErr,- `Failed to report SCEP issuance success to Intune [transactionId=${parsed.transactionId}]`- );- void logEnrollmentEvent({- status: "failure",- failReason: "Failed to notify Microsoft Intune of the issued certificate."- });-- return buildCertRepFailure({- raCertDer,- raPrivateKeyDer,- transactionId: parsed.transactionId,- recipientNonce: parsed.senderNonce,- failInfo: ScepFailInfo.BadRequest- });- }- } else {- await notifyIssued()?.catch((reportErr) =>- logger.error(reportErr, `Failed to report SCEP issuance success [transactionId=${parsed.transactionId}]`)- );+ return buildCertRepFailure({+ raCertDer,+ raPrivateKeyDer,+ transactionId: parsed.transactionId,+ recipientNonce: parsed.senderNonce,+ failInfo: ScepFailInfo.BadRequest+ });}void logEnrollmentEvent({- status: "success",+ status: ScepEnrollmentStatus.Success,issuedCertificateId: result.certificateId,issuedSerialNumber: result.serialNumber});@@ -677,7 +703,7 @@ export const pkiScepServiceFactory = ({profileSlug: profile.slug,transactionId: parsed.transactionId,csrSubject: csrObj.subject,- status: "failure" as const,+ status: ScepEnrollmentStatus.Failure,failReason: failReasonByDenyReason[renewalAuth.reason],clientIp}@@ -715,13 +741,13 @@ export const pkiScepServiceFactory = ({clientIp};- if (result.status === "pending") {+ if (result.status === ScepIssuanceStatus.Pending) {void auditLogService.createAuditLog({projectId: profile.projectId,actor: { type: ActorType.SCEP_ACCOUNT, metadata: { profileId: profile.id } },event: {type: EventType.SCEP_RENEWAL,- metadata: { ...auditMetadata, status: "pending" as const }+ metadata: { ...auditMetadata, status: ScepEnrollmentStatus.Pending }}});@@ -733,6 +759,36 @@ export const pkiScepServiceFactory = ({});}+ const { canDeliver } = await $reportIssuedCertificate({+ validationHandler: $getValidationHandler(scepConfig.challengeType),+ transactionId: parsed.transactionId,+ csrDer: Buffer.from(parsed.csr),+ certificateDer: result.issuedCertDer,+ validationConnectionId: scepConfig.validationConnectionId+ });+ if (!canDeliver) {+ void auditLogService.createAuditLog({+ projectId: profile.projectId,+ actor: { type: ActorType.SCEP_ACCOUNT, metadata: { profileId: profile.id } },+ event: {+ type: EventType.SCEP_RENEWAL,+ metadata: {+ ...auditMetadata,+ status: ScepEnrollmentStatus.Failure,+ failReason: SCEP_ISSUANCE_NOTIFICATION_FAILED+ }+ }+ });++ return buildCertRepFailure({+ raCertDer,+ raPrivateKeyDer,+ transactionId: parsed.transactionId,+ recipientNonce: parsed.senderNonce,+ failInfo: ScepFailInfo.BadRequest+ });+ }+void auditLogService.createAuditLog({projectId: profile.projectId,actor: { type: ActorType.SCEP_ACCOUNT, metadata: { profileId: profile.id } },@@ -740,7 +796,7 @@ export const pkiScepServiceFactory = ({type: EventType.SCEP_RENEWAL,metadata: {...auditMetadata,- status: "success" as const,+ status: ScepEnrollmentStatus.Success,issuedCertificateId: result.certificateId,issuedSerialNumber: result.serialNumber}@@ -759,8 +815,13 @@ export const pkiScepServiceFactory = ({};type TIssuanceResult =- | { status: "pending" }- | { status: "success"; issuedCertDer: Buffer; certificateId?: string; serialNumber?: string };+ | { status: ScepIssuanceStatus.Pending }+ | {+ status: ScepIssuanceStatus.Success;+ issuedCertDer: Buffer;+ certificateId?: string;+ serialNumber?: string;+ };// For internal CAs signs directly via signCertificateFromProfile.// For external CAs, creates a cert request and queues async issuance.@@ -813,7 +874,7 @@ export const pkiScepServiceFactory = ({});}- return { status: "pending" };+ return { status: ScepIssuanceStatus.Pending };}if (!result.certificate) {@@ -821,7 +882,7 @@ export const pkiScepServiceFactory = ({}return {- status: "success",+ status: ScepIssuanceStatus.Success,issuedCertDer: Buffer.from(new x509.X509Certificate(result.certificate).rawData),certificateId: result.certificateId,serialNumber: result.serialNumber@@ -914,16 +975,18 @@ export const pkiScepServiceFactory = ({});}- return { status: "pending" };+ return { status: ScepIssuanceStatus.Pending };};const handleGetCertInitial = async ({profile,+ scepConfig,raPrivateKeyDer,raCertDer,parsed}: {profile: TScepContext["profile"];+ scepConfig: TScepContext["scepConfig"];raPrivateKeyDer: Buffer;raCertDer: Buffer;parsed: TParsedScepMessage;@@ -1014,6 +1077,23 @@ export const pkiScepServiceFactory = ({const issuedCertDer = Buffer.from(new x509.X509Certificate(decryptedCert).rawData);+ const { canDeliver } = await $reportIssuedCertificate({+ validationHandler: $getValidationHandler(scepConfig.challengeType),+ transactionId: parsed.transactionId,+ csrDer: certRequest.csr ? Buffer.from(new x509.Pkcs10CertificateRequest(certRequest.csr).rawData) : null,+ certificateDer: issuedCertDer,+ validationConnectionId: scepConfig.validationConnectionId+ });+ if (!canDeliver) {+ return buildCertRepFailure({+ raCertDer,+ raPrivateKeyDer,+ transactionId: parsed.transactionId,+ recipientNonce: parsed.senderNonce,+ failInfo: ScepFailInfo.BadRequest+ });+ }+return buildCertRepSuccess({issuedCertDer,recipientCertDer: transaction.signerCertDer,diff --git a/backend/src/ee/services/pki-scep/pki-scep-types.ts b/backend/src/ee/services/pki-scep/pki-scep-types.tsindex 7cc456c204..a378626d14 100644--- a/backend/src/ee/services/pki-scep/pki-scep-types.ts+++ b/backend/src/ee/services/pki-scep/pki-scep-types.ts@@ -19,6 +19,17 @@ export enum ScepPkiStatus {PENDING = "3"}+export enum ScepEnrollmentStatus {+ Success = "success",+ Pending = "pending",+ Failure = "failure"+}++export enum ScepIssuanceStatus {+ Success = "success",+ Pending = "pending"+}+export enum ScepFailInfo {BadAlg = "0",BadMessageCheck = "1",diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.tsindex 868bba88bf..53d0d7e952 100644--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/enrollment-state-router.ts@@ -49,7 +49,6 @@ const EnrollmentStateSchema = z.object({est: EstEnrollmentStateSchema.nullable(),acme: AcmeEnrollmentStateSchema.nullable(),scep: ScepEnrollmentStateSchema.nullable(),- raCaSigningSupported: z.boolean(),caType: z.nativeEnum(CaType),estConfigured: z.boolean(),acmeConfigured: z.boolean(),diff --git a/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts b/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.tsindex ff96df2f17..957e0f83ea 100644--- a/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts+++ b/backend/src/server/routes/v1/pki-application-enrollment-routers/scep-enrollment-router.ts@@ -24,7 +24,7 @@ export const registerPkiApplicationScepEnrollmentRouter = async (server: FastifychallengeType: z.nativeEnum(ScepChallengeType).optional(),challengePassword: z.string().optional(),includeCaCertInResponse: z.boolean().optional().default(true),- allowCertBasedRenewal: z.boolean().optional().default(true),+ allowCertBasedRenewal: z.boolean().optional(),dynamicChallengeExpiryMinutes: z.number().int().min(5).max(1440).optional(),dynamicChallengeMaxPending: z.number().int().min(1).max(1000).optional(),validationConnectionId: z.string().uuid().optional(),diff --git a/backend/src/services/app-connection/app-connection-maps.ts b/backend/src/services/app-connection/app-connection-maps.tsindex 3420113eb1..cd2036aede 100644--- a/backend/src/services/app-connection/app-connection-maps.ts+++ b/backend/src/services/app-connection/app-connection-maps.ts@@ -167,5 +167,5 @@ export const APP_CONNECTION_PLAN_MAP: Record<AppConnection, AppConnectionPlanTyp[AppConnection.LiteLLM]: AppConnectionPlanType.Regular,[AppConnection.Fireworks]: AppConnectionPlanType.Regular,[AppConnection.NutanixPrismCentral]: AppConnectionPlanType.Regular,- [AppConnection.MicrosoftIntune]: AppConnectionPlanType.Regular+ [AppConnection.MicrosoftIntune]: AppConnectionPlanType.Enterprise};diff --git a/backend/src/services/pki-application/pki-application-enrollment-service.ts b/backend/src/services/pki-application/pki-application-enrollment-service.tsindex 5196e45559..7a824accf1 100644--- a/backend/src/services/pki-application/pki-application-enrollment-service.ts+++ b/backend/src/services/pki-application/pki-application-enrollment-service.ts@@ -215,7 +215,7 @@ export const pkiApplicationEnrollmentServiceFactory = ({const scepConfig = junction.scepConfigId ? await scepEnrollmentConfigDAL.findById(junction.scepConfigId) : null;const profile = await certificateProfileDAL.findById(profileId);- const { raCaSigningSupported, caType } = await resolveScepRaSigning({+ const { caType } = await resolveScepRaSigning({caId: profile?.caId,certificateAuthorityDAL});@@ -267,7 +267,6 @@ export const pkiApplicationEnrollmentServiceFactory = ({signRaWithCa: Boolean(scepConfig.signRaWithCa)}: null,- raCaSigningSupported,caType,estConfigured: Boolean(junction.estConfigId),acmeConfigured: Boolean(junction.acmeConfigId),@@ -663,6 +662,15 @@ export const pkiApplicationEnrollmentServiceFactory = ({const isIntune = challengeType === ScepChallengeType.MICROSOFT_INTUNE;const appCfg = getConfig();+ // Cert-based renewal skips the challenge, which would bypass Intune's per-request validation.+ if (isIntune && config.allowCertBasedRenewal === true) {+ throw new BadRequestError({+ message:+ "Certificate-based renewal cannot be enabled with Microsoft Intune validation, because renewals would skip Intune's per-request validation."+ });+ }+ const allowCertBasedRenewal = isIntune ? false : (config.allowCertBasedRenewal ?? true);+let validationConnectionId: string | null = null;let validationConnectionName: string | null = null;if (isIntune) {@@ -695,9 +703,6 @@ export const pkiApplicationEnrollmentServiceFactory = ({hashedChallengePassword = await crypto.hashing().createHash(config.challengePassword, appCfg.SALT_ROUNDS);}- // Cert-based renewal skips the challenge, which would bypass Intune's per-request validation, so force it off.- const allowCertBasedRenewal = isIntune ? false : (config.allowCertBasedRenewal ?? true);-const isFirstCreate = !junction.scepConfigId;const raSlug = `app-${applicationId}-${profileId}`;@@ -711,11 +716,16 @@ export const pkiApplicationEnrollmentServiceFactory = ({const existingScepConfig = junction.scepConfigId? await scepEnrollmentConfigDAL.findById(junction.scepConfigId): null;- // Regenerating the RA breaks devices already trusting it, so only do it on first enable or a signing change.- const shouldGenerateRaCert =- isFirstCreate || (existingScepConfig ? existingScepConfig.signRaWithCa !== signRaWithCa : false);+ // Changing this regenerates the RA certificate, which breaks devices already trusting the current one.+ if (existingScepConfig && existingScepConfig.signRaWithCa !== signRaWithCa) {+ throw new BadRequestError({+ message:+ "Signing the RA certificate with the CA cannot be changed for an existing SCEP enrollment. Disable SCEP enrollment and set it up again to change it."+ });+ }+let raCert: Awaited<ReturnType<typeof generateAndEncryptScepRaCertificate>> | null = null;- if (shouldGenerateRaCert) {+ if (isFirstCreate) {raCert = await generateAndEncryptScepRaCertificate({slug: raSlug,caId: profile?.caId,diff --git a/docs/documentation/platform/pki/applications/enrollment-methods/scep.mdx b/docs/documentation/platform/pki/applications/enrollment-methods/scep.mdxindex ade08bc1ca..ebf6175beb 100644--- a/docs/documentation/platform/pki/applications/enrollment-methods/scep.mdx+++ b/docs/documentation/platform/pki/applications/enrollment-methods/scep.mdx@@ -68,11 +68,11 @@ Infisical supports three challenge authentication modes for SCEP enrollment:Use this mode when devices are managed by Microsoft Intune. It removes the need to distribute a shared password and lets Intune track certificate issuance per device.- - Requires a **Microsoft Intune** [App Connection](/integrations/app-connections/microsoft-intune) with permission to validate SCEP requests.+ - Requires a **Microsoft Intune** [App Connection](/integrations/app-connections/microsoft-intune) with permission to validate SCEP requests. Microsoft Intune is an enterprise App Connection.- Infisical reports issuance success and failure back to Intune for each request.<Warning>- **Do not attach an approval policy to a profile used with Microsoft Intune.** Intune SCEP issues synchronously, so a pending (approval-gated) response makes the device give up and re-enroll instead of installing the certificate.+ **Do not attach an approval policy to a profile used with Microsoft Intune.** Intune SCEP issues synchronously and has no pending state. When issuance cannot complete within the request, Infisical reports the request to Intune as failed and returns a failure to the device rather than leaving either side waiting.</Warning></Tab><Tab title="Dynamic Challenge">@@ -123,9 +123,9 @@ Infisical supports three challenge authentication modes for SCEP enrollment:- **Challenge Password** (static only): A shared secret that SCEP clients must include in their certificate signing request (CSR) to authenticate with Infisical's SCEP server. Must be at least 8 characters.- **Challenge Expiry** (dynamic only): How long each generated challenge remains valid, in minutes.- **Max Pending Challenges** (dynamic only): Maximum number of unused challenges that can exist at once.- - **Sign RA certificate with the CA**: Choose whether the RA certificate is self-signed or signed by this profile's CA. Signing it with the CA makes it chain to your CA root, which strict clients such as Apple (macOS and iOS) and Microsoft Intune require. Currently only internal CAs can sign the RA. Other CAs use a self-signed RA.+ - **Sign RA certificate with the CA**: Choose whether the RA certificate is self-signed or signed by this profile's CA. Signing it with the CA makes it chain to your CA root, which strict clients such as Apple (macOS and iOS) and Microsoft Intune require. Currently only internal CAs can sign the RA, and requesting it for any other CA type is rejected. This cannot be changed once SCEP enrollment exists, because changing it regenerates the RA certificate and breaks devices that already trust the current one. To change it, disable SCEP enrollment and set it up again.- **Include CA Cert in Response**: When enabled, the CA certificate chain is included alongside the RA certificate in the GetCACert response. Most SCEP clients expect this to be enabled (default: enabled).- - **Allow Certificate-Based Renewal**: When enabled, devices that already hold a valid certificate issued by the same CA can renew their certificate without providing the challenge password (default: enabled).+ - **Allow Certificate-Based Renewal**: When enabled, devices that already hold a valid certificate issued by the same CA can renew their certificate without providing the challenge password (default: enabled). This cannot be used with Microsoft Intune validation, because a renewal skips the challenge and would bypass Intune's per-request validation. Enabling it explicitly alongside Intune is rejected.</Step><Step title="Obtain the SCEP endpoint URL">diff --git a/docs/integrations/app-connections/microsoft-intune.mdx b/docs/integrations/app-connections/microsoft-intune.mdxindex 316281fa76..da9cbb6114 100644--- a/docs/integrations/app-connections/microsoft-intune.mdx+++ b/docs/integrations/app-connections/microsoft-intune.mdx@@ -5,19 +5,45 @@ description: "Learn how to configure a Microsoft Intune Connection for InfisicalInfisical's Microsoft Intune Connection lets you validate SCEP certificate requests against Microsoft Intune using Client Secrets. When a device enrolls through a [SCEP enrollment method](/documentation/platform/pki/applications/enrollment-methods/scep) configured with Intune validation, Infisical asks Intune to confirm the device's challenge before issuing the certificate, then reports the outcome back to Intune.+<Note>+ Microsoft Intune is an enterprise App Connection and requires a paid plan.+</Note>+**Prerequisites:**- A Microsoft Entra ID tenant with Microsoft Intune enabled.-- An App Registration in Azure with a Client Secret and the API permissions below.-#### Required Azure permissions+## Setup Azure application++<Steps>+ <Step title="Register an application in Microsoft Entra ID">+ Navigate to Microsoft Entra ID and open **App registrations**, then create a new registration.+ <Info>+ Azure Active Directory is now Microsoft Entra ID.+ </Info>+ + + </Step>+ <Step title="Assign API permissions to the application">+ Set the API permissions of your Azure application to include the following **Application permissions**, then grant admin consent:++ - Microsoft Graph+ - `Application.Read.All`+ - Microsoft Intune+ - `scep_challenge_provider`++ `Application.Read.All` lets Infisical discover the Intune SCEP validation endpoint, and `scep_challenge_provider` lets it validate challenges and report issuance outcomes.-Set the API permissions of your Azure application to include the following **Application permissions**, then grant admin consent:+ + </Step>+ <Step title="Collect the application credentials">+ Obtain the **Directory (Tenant) ID** and **Application (Client) ID** from the application's **Overview** page, then generate a **Client Secret** under **Certificates & secrets**.-- Microsoft Graph- - `Application.Read.All`-- Microsoft Intune- - `scep_challenge_provider`+ + + + </Step>+</Steps>## Setup Microsoft Intune Connection in Infisical@@ -25,7 +51,8 @@ Set the API permissions of your Azure application to include the following **App<Tab title="Infisical UI"><Steps><Step title="Navigate to App Connections">- In your **Certificate Manager** project, go to **Settings** and open the **App Connections** tab, then click **Add Connection**.+ In Certificate Manager, navigate to the **App Connections** tab on the **Settings** page.+ </Step><Step title="Add Connection">Select the **Microsoft Intune** option from the connection options modal.diff --git a/frontend/public/images/integrations/Microsoft Intune.svg b/frontend/public/images/integrations/Microsoft Intune.svgindex 4b493c9544..eb23892c39 100644--- a/frontend/public/images/integrations/Microsoft Intune.svg+++ b/frontend/public/images/integrations/Microsoft Intune.svg@@ -1,16 +1,59 @@-<svg width="64" height="64" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="Microsoft Intune">- <defs>- <linearGradient id="intuneBg" x1="0" y1="0" x2="64" y2="64" gradientUnits="userSpaceOnUse">- <stop offset="0" stop-color="#2E8CE6"/>- <stop offset="1" stop-color="#1B5FB3"/>- </linearGradient>- </defs>- <rect x="4" y="4" width="56" height="56" rx="12" fill="url(#intuneBg)"/>- <path d="M32 14 L46 20 V32 C46 41 40 47 32 50 C24 47 18 41 18 32 V20 Z" fill="#FFFFFF" fill-opacity="0.16"/>- <rect x="24" y="24" width="16" height="20" rx="2" fill="#FFFFFF"/>- <rect x="27" y="28" width="10" height="2" rx="1" fill="#1B5FB3"/>- <rect x="27" y="32" width="10" height="2" rx="1" fill="#1B5FB3"/>- <rect x="27" y="36" width="6" height="2" rx="1" fill="#1B5FB3"/>- <circle cx="41" cy="41" r="6" fill="#0F4C92" stroke="#FFFFFF" stroke-width="1.5"/>- <path d="M38.5 41 L40.3 42.8 L43.6 39.4" stroke="#FFFFFF" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" fill="none"/>-</svg>+<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0.69 5.4 400 390.62">+<g clip-path="url(#clip0_10641_164)">+<path d="M0.685165 65.8523C0.685165 14.7648 67.4855 -13.2029 111.616 19.4083L207.551 90.2535L288.514 44.373C331.305 21.0394 399.874 37.7748 400.685 101.559L400.685 336.622C400.685 387.71 335.845 414.343 291.715 381.732L194.031 309.34L112.973 355.23C69.7783 378.784 0.752625 360.714 0.752625 298.637C0.752654 224.124 0.685165 252.734 0.685165 65.8523Z" fill="url(#paint0_linear_10641_164)"/>+<path d="M0.685165 65.8523C0.685165 14.7648 67.4855 -13.2029 111.616 19.4083L207.551 90.2535L288.514 44.373C331.305 21.0394 399.874 37.7748 400.685 101.559L400.685 336.622C400.685 387.71 335.845 414.343 291.715 381.732L194.031 309.34L112.973 355.23C69.7783 378.784 0.752625 360.714 0.752625 298.637C0.752654 224.124 0.685165 252.734 0.685165 65.8523Z" fill="url(#paint1_radial_10641_164)"/>+<path d="M0.685165 65.8523C0.685165 14.7648 67.4855 -13.2029 111.616 19.4083L207.551 90.2535L288.514 44.373C331.305 21.0394 399.874 37.7748 400.685 101.559L400.685 336.622C400.685 387.71 335.845 414.343 291.715 381.732L194.031 309.34L112.973 355.23C69.7783 378.784 0.752625 360.714 0.752625 298.637C0.752654 224.124 0.685165 252.734 0.685165 65.8523Z" fill="url(#paint2_radial_10641_164)"/>+<path d="M111.616 19.4083C67.4855 -13.2029 0.685165 14.7648 0.685165 65.8523V295.742C0.685165 290.153 3.5327 279.026 3.5327 279.026C16.6954 236.001 72.6487 219.869 111.36 248.223L291.715 381.732C335.845 414.343 400.685 387.71 400.685 336.622V101.559C400.685 145.201 343.643 189.011 289.755 151.051L111.616 19.4083Z" fill="url(#paint3_radial_10641_164)"/>+<path d="M111.616 19.4083C67.4855 -13.2029 0.685165 14.7648 0.685165 65.8523V295.742C0.685165 290.153 3.5327 279.026 3.5327 279.026C16.6954 236.001 72.6487 219.869 111.36 248.223L291.715 381.732C335.845 414.343 400.685 387.71 400.685 336.622V101.559C400.685 145.201 343.643 189.011 289.755 151.051L111.616 19.4083Z" fill="url(#paint4_radial_10641_164)" fill-opacity="0.25"/>+<path d="M111.616 19.4083C67.4855 -13.2029 0.685165 14.7648 0.685165 65.8523V295.742C0.685165 290.153 3.5327 279.026 3.5327 279.026C16.6954 236.001 72.6487 219.869 111.36 248.223L291.715 381.732C335.845 414.343 400.685 387.71 400.685 336.622V101.559C400.685 145.201 343.643 189.011 289.755 151.051L111.616 19.4083Z" fill="url(#paint5_radial_10641_164)" fill-opacity="0.55"/>+<path d="M111.616 149.691C67.4855 117.08 0.685165 145.048 0.685165 196.135L0.685179 65.8523C0.685183 14.7648 67.4855 -13.2029 111.616 19.4083C170.996 63.2888 230.374 107.171 289.755 151.051C343.643 189.011 400.685 145.201 400.685 101.559V234.89C400.685 285.978 333.885 313.946 289.755 281.334C230.374 237.454 170.996 193.572 111.616 149.691Z" fill="url(#paint6_linear_10641_164)"/>+<path d="M111.616 149.691C67.4855 117.08 0.685165 145.048 0.685165 196.135L0.685179 65.8523C0.685183 14.7648 67.4855 -13.2029 111.616 19.4083C170.996 63.2888 230.374 107.171 289.755 151.051C343.643 189.011 400.685 145.201 400.685 101.559V234.89C400.685 285.978 333.885 313.946 289.755 281.334C230.374 237.454 170.996 193.572 111.616 149.691Z" fill="url(#paint7_radial_10641_164)" fill-opacity="0.35"/>+</g>+<defs>+<linearGradient id="paint0_linear_10641_164" x1="171.501" y1="396.026" x2="314.256" y2="90.5646" gradientUnits="userSpaceOnUse">+<stop offset="0.02" stop-color="#1169DA"/>+<stop offset="0.434784" stop-color="#0151BD"/>+<stop offset="0.614436" stop-color="#014DB7"/>+<stop offset="1" stop-color="#126AD9"/>+</linearGradient>+<radialGradient id="paint1_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(358.656 -48.704) rotate(110.224) scale(292.248 218.917)">+<stop offset="0.422966" stop-color="#004AFF" stop-opacity="0.1"/>+<stop offset="0.728672" stop-color="#014DB9"/>+<stop offset="0.836135" stop-color="#014DB9" stop-opacity="0.9"/>+<stop offset="0.955" stop-color="#014DB9" stop-opacity="0"/>+</radialGradient>+<radialGradient id="paint2_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(54.0821 384.087) rotate(-73.6432) scale(232.668 283.419)">+<stop offset="0.0908532" stop-color="#004AFF" stop-opacity="0.1"/>+<stop offset="0.56036" stop-color="#014DB9"/>+<stop offset="0.749466" stop-color="#014DB9" stop-opacity="0.99"/>+<stop offset="1" stop-color="#014DB9" stop-opacity="0"/>+</radialGradient>+<radialGradient id="paint3_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(439.444 5.40101) rotate(134.068) scale(563.957 434.374)">+<stop offset="0.249322" stop-color="#23C0FE"/>+<stop offset="0.717207" stop-color="#23C0FE"/>+<stop offset="0.995168" stop-color="#1C91FF"/>+</radialGradient>+<radialGradient id="paint4_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(119.961 37.1103) rotate(45.9092) scale(403.457 95.9789)">+<stop offset="0.165" stop-color="#096DD6" stop-opacity="0"/>+<stop offset="0.484233" stop-color="#096DD6"/>+<stop offset="0.900505" stop-color="#0876DE" stop-opacity="0.813868"/>+<stop offset="1" stop-color="#029AFF" stop-opacity="0"/>+</radialGradient>+<radialGradient id="paint5_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(385.776 245.022) rotate(91.6099) scale(64.799 58.3555)">+<stop stop-color="#0068B3"/>+<stop offset="0.93" stop-color="#006CB8" stop-opacity="0"/>+</radialGradient>+<linearGradient id="paint6_linear_10641_164" x1="114.72" y1="97.5227" x2="182.067" y2="383.699" gradientUnits="userSpaceOnUse">+<stop stop-color="#92EEFE"/>+<stop offset="0.564559" stop-color="#35DDFF"/>+<stop offset="1" stop-color="#08B1F9"/>+</linearGradient>+<radialGradient id="paint7_radial_10641_164" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="translate(67.7807 5.4011) rotate(69.461) scale(99.6637 80.4988)">+<stop stop-color="#CCF9FF" stop-opacity="0.93"/>+<stop offset="1" stop-color="#35DDFF"/>+</radialGradient>+<clipPath id="clip0_10641_164">+<rect width="400" height="400" fill="white" transform="translate(0.685181 0.713501)"/>+</clipPath>+</defs>+</svg>\ No newline at end of filediff --git a/frontend/src/helpers/appConnections.ts b/frontend/src/helpers/appConnections.tsindex 35846a1dc4..a6965c94e0 100644--- a/frontend/src/helpers/appConnections.ts+++ b/frontend/src/helpers/appConnections.ts@@ -462,6 +462,7 @@ export const APP_CONNECTION_MAP: Record<name: "Microsoft Intune",image: "Microsoft Intune.svg",category: "CERTIFICATES",+ enterprise: true,description: "Validate SCEP certificate requests with Microsoft Intune."},[AppConnection.Venafi]: {diff --git a/frontend/src/hooks/api/ca/capabilities.ts b/frontend/src/hooks/api/ca/capabilities.tsindex 6350e85bb0..dd60a178c2 100644--- a/frontend/src/hooks/api/ca/capabilities.ts+++ b/frontend/src/hooks/api/ca/capabilities.ts@@ -6,6 +6,8 @@ export type CaIssuanceCapabilities = {minRsaKeyBits?: number;};+export const isScepRaCaSigningSupported = (caType?: CaType): boolean => caType === CaType.INTERNAL;+export const getCaIssuanceCapabilities = (caType?: CaType): CaIssuanceCapabilities => {switch (caType) {case CaType.DIGICERT:diff --git a/frontend/src/hooks/api/pkiApplications/types.ts b/frontend/src/hooks/api/pkiApplications/types.tsindex a96dc66059..727ba27a38 100644--- a/frontend/src/hooks/api/pkiApplications/types.ts+++ b/frontend/src/hooks/api/pkiApplications/types.ts@@ -119,7 +119,6 @@ export type TPkiApplicationEnrollmentState = {validationConnectionId: string | null;signRaWithCa: boolean;} | null;- raCaSigningSupported: boolean;caType: CaType;estConfigured: boolean;acmeConfigured: boolean;diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsxindex bc59557b51..ec3d762f80 100644--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ConfigureEnrollmentModal.tsx@@ -1,5 +1,6 @@import { useEffect, useState } from "react";import { Controller, useForm } from "react-hook-form";+import { SingleValue } from "react-select";import { faCheck, faCopy, faDownload } from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { EyeIcon, EyeOffIcon, FileTextIcon, Plus, RotateCwIcon } from "lucide-react";@@ -44,11 +45,13 @@ import {TooltipContent,TooltipTrigger} from "@app/components/v3";-import { useProject } from "@app/context";+import { ProjectPermissionSub, useProject, useProjectPermission } from "@app/context";+import { ProjectPermissionAppConnectionActions } from "@app/context/ProjectPermissionContext/types";import { downloadFile } from "@app/helpers/download";-import { useToggle } from "@app/hooks";+import { usePopUp, useToggle } from "@app/hooks";import { useListAvailableAppConnections } from "@app/hooks/api/appConnections";import { AppConnection } from "@app/hooks/api/appConnections/enums";+import { isScepRaCaSigningSupported } from "@app/hooks/api/ca/capabilities";import { CaType } from "@app/hooks/api/ca/enums";import { useGetPkiApplicationEnrollment } from "@app/hooks/api/pkiApplications";import {@@ -64,11 +67,14 @@ import {useSetPkiApplicationScepEnrollment} from "@app/hooks/api/pkiApplications/mutations";import { ScepChallengeType, TPkiApplicationProfile } from "@app/hooks/api/pkiApplications/types";+import { AddAppConnectionModal } from "@app/pages/organization/AppConnections/AppConnectionsPage/components";import { PkiDocsUrls } from "../../pki-docs-urls";const COPY_RESET_MS = 1000;+const CREATE_CONNECTION_ID = "_create";+type Props = {isOpen: boolean;onOpenChange: (open: boolean) => void;@@ -745,7 +751,6 @@ const ScepPanel = ({profileId,profileSlug,enabled,- raCaSigningSupported,caType,initial}: {@@ -753,7 +758,6 @@ const ScepPanel = ({profileId: string;profileSlug: string;enabled: boolean;- raCaSigningSupported: boolean;caType: CaType;initial: {challengeType: ScepChallengeType;@@ -772,7 +776,7 @@ const ScepPanel = ({const { currentProject } = useProject();const setMutation = useSetPkiApplicationScepEnrollment();const clearMutation = useClearPkiApplicationScepEnrollment();- const { control, handleSubmit, watch, reset } = useForm<{+ const { control, handleSubmit, watch, reset, setValue } = useForm<{challengeType: ScepChallengeType;challengePassword?: string;includeCaCertInResponse: boolean;@@ -813,12 +817,20 @@ const ScepPanel = ({initial?.dynamicChallengeMaxPending,initial?.validationConnectionId,initial?.signRaWithCa,- raCaSigningSupported,reset]);const challengeType = watch("challengeType");const isIntune = challengeType === ScepChallengeType.MICROSOFT_INTUNE;+ const isScepConfigured = Boolean(initial);+ const raCaSigningSupported = isScepRaCaSigningSupported(caType);++ const { permission } = useProjectPermission();+ const { popUp, handlePopUpToggle, handlePopUpOpen } = usePopUp(["addConnection"] as const);+ const canCreateConnection = permission.can(+ ProjectPermissionAppConnectionActions.Create,+ ProjectPermissionSub.AppConnections+ );const { data: intuneConnections, isPending: isIntuneConnectionsLoading } =useListAvailableAppConnections(AppConnection.MicrosoftIntune, currentProject.id, {@@ -966,10 +978,22 @@ const ScepPanel = ({value={selected}isError={Boolean(error)}isLoading={isIntuneConnectionsLoading}- onChange={(newValue) =>- onChange((newValue as { id: string } | null)?.id ?? undefined)- }- options={intuneConnections ?? []}+ onChange={(newValue) => {+ if (+ (newValue as SingleValue<{ id: string }>)?.id === CREATE_CONNECTION_ID+ ) {+ handlePopUpOpen("addConnection");+ onChange(undefined);+ return;+ }+ onChange((newValue as { id: string } | null)?.id ?? undefined);+ }}+ options={[+ ...(canCreateConnection+ ? [{ id: CREATE_CONNECTION_ID, name: "Create Connection" }]+ : []),+ ...(intuneConnections ?? [])+ ]}placeholder="Select connection..."getOptionLabel={(option) => option.name}getOptionValue={(option) => option.id}@@ -979,8 +1003,25 @@ const ScepPanel = ({<FieldDescription>Selecting the connection is all that is required. The transaction andcertificate request arrive in the device request, and the expected subject and- SAN are validated by Intune.+ SAN are validated by Intune. See the{" "}+ <a+ href={PkiDocsUrls.appConnections.microsoftIntune}+ target="_blank"+ rel="noopener noreferrer"+ className="text-primary-500 hover:text-primary-400"+ >+ setup guide+ </a>{" "}+ for what to configure on the Intune side.</FieldDescription>+ {!isIntuneConnectionsLoading &&+ !intuneConnections?.length &&+ !canCreateConnection ? (+ <FieldDescription className="text-warning">+ You do not have access to any Microsoft Intune Connections. Contact an admin+ to create one.+ </FieldDescription>+ ) : null}{error ? (<FieldError>A Microsoft Intune connection is required.</FieldError>) : null}@@ -1068,7 +1109,7 @@ const ScepPanel = ({available for internal certificate authorities.</p></div>- {raCaSigningSupported ? (+ {raCaSigningSupported && !isScepConfigured ? (<Switchvariant="project"id="scep-sign-ra-with-ca"@@ -1082,13 +1123,15 @@ const ScepPanel = ({<Switchvariant="project"id="scep-sign-ra-with-ca"- checked={false}+ checked={raCaSigningSupported && field.value}disabled/></div></TooltipTrigger><TooltipContent>- Not supported for {caType} certificate authorities.+ {raCaSigningSupported+ ? "Cannot be changed once SCEP enrollment is set up. Disable SCEP enrollment and set it up again to change it."+ : `Not supported for ${caType} certificate authorities.`}</TooltipContent></Tooltip>)}@@ -1150,6 +1193,18 @@ const ScepPanel = ({{enabled ? "Save" : "Enable"}</Button></div>+ <AddAppConnectionModal+ isOpen={popUp.addConnection.isOpen}+ onOpenChange={(isAddConnectionOpen) =>+ handlePopUpToggle("addConnection", isAddConnectionOpen)+ }+ projectType={currentProject.type}+ projectId={currentProject.id}+ app={AppConnection.MicrosoftIntune}+ onComplete={(connection) => {+ if (connection) setValue("validationConnectionId", connection.id);+ }}+ /></div>);};@@ -1371,7 +1426,6 @@ export const ConfigureEnrollmentModal = ({profileId={profileId}profileSlug={profile?.profileSlug ?? ""}enabled={Boolean(data?.scepConfigured)}- raCaSigningSupported={Boolean(data?.raCaSigningSupported)}caType={data?.caType ?? CaType.INTERNAL}initial={data?.scep ?? null}/>diff --git a/frontend/src/pages/cert-manager/pki-docs-urls.ts b/frontend/src/pages/cert-manager/pki-docs-urls.tsindex 325c3e7c15..2080f96400 100644--- a/frontend/src/pages/cert-manager/pki-docs-urls.ts+++ b/frontend/src/pages/cert-manager/pki-docs-urls.ts@@ -3,8 +3,13 @@*/const PKI_DOCS_BASE_URL = "https://infisical.com/docs/documentation/platform/pki";+const APP_CONNECTIONS_DOCS_BASE_URL = "https://infisical.com/docs/integrations/app-connections";export const PkiDocsUrls = {+ appConnections: {+ microsoftIntune: `${APP_CONNECTIONS_DOCS_BASE_URL}/microsoft-intune`+ },+// Overviewoverview: `${PKI_DOCS_BASE_URL}/overview`,gettingStarted: `${PKI_DOCS_BASE_URL}/getting-started`,