Skip to content

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

chore: Add PAN private key warning on UI certificate step

Carlos Monastyrskiffd2e7aa504f
diff --git a/frontend/src/components/pki-syncs/forms/CreatePkiSyncForm.tsx b/frontend/src/components/pki-syncs/forms/CreatePkiSyncForm.tsx
index a2cda477e0..e023c82fef 100644
--- a/frontend/src/components/pki-syncs/forms/CreatePkiSyncForm.tsx
+++ b/frontend/src/components/pki-syncs/forms/CreatePkiSyncForm.tsx
@@ -29,6 +29,7 @@ import {
import { useProject } from "@app/context";
import {
isPaloAltoNetworksPkiSync,
+ PALO_ALTO_NETWORKS_PRIVATE_KEY_NOTE,
PKI_SYNC_MAP,
PRESERVE_ARN_DESTINATIONS,
PRESERVE_ITEM_ON_RENEWAL_DESTINATIONS
@@ -378,6 +379,10 @@ export const CreatePkiSyncForm = ({
const currentKey = FORM_TABS[selectedTabIndex].key;
const currentName = FORM_TABS[selectedTabIndex].name;
const currentDetail = STEP_META[currentKey];
+ const rightDescription =
+ currentKey === "certificates" && isPaloAltoNetworksPkiSync(destination)
+ ? `${currentDetail.rightDescription}\n\n${PALO_ALTO_NETWORKS_PRIVATE_KEY_NOTE}`
+ : currentDetail.rightDescription;
return (
<form
@@ -477,7 +482,7 @@ export const CreatePkiSyncForm = ({
/>
</div>
<p className="mt-4 text-sm font-semibold text-foreground">What this step does</p>
- {currentDetail.rightDescription.split("\n\n").map((paragraph) => (
+ {rightDescription.split("\n\n").map((paragraph) => (
<p key={paragraph} className="mt-2 text-sm leading-relaxed text-muted">
{paragraph}
</p>
diff --git a/frontend/src/components/pki-syncs/forms/EditPkiSyncForm.tsx b/frontend/src/components/pki-syncs/forms/EditPkiSyncForm.tsx
index 120fe604b0..dfdf6ed450 100644
--- a/frontend/src/components/pki-syncs/forms/EditPkiSyncForm.tsx
+++ b/frontend/src/components/pki-syncs/forms/EditPkiSyncForm.tsx
@@ -29,6 +29,7 @@ import {
import {
getCertificateDisplayName,
isPaloAltoNetworksPkiSync,
+ PALO_ALTO_NETWORKS_PRIVATE_KEY_NOTE,
PKI_SYNC_MAP
} from "@app/helpers/pkiSyncs";
import { AppConnection } from "@app/hooks/api/appConnections/enums";
@@ -170,8 +171,9 @@ const getFormSteps = (
title: "Certificates",
subtitle: "Describe the certificates this sync holds.",
rightLabel: "CERTIFICATES",
- rightDescription:
- "Anything in the application matching these filters is synced as it is issued, and anything that stops matching is no longer synced. Nothing changes until you save."
+ rightDescription: `Anything in the application matching these filters is synced as it is issued, and anything that stops matching is no longer synced. Nothing changes until you save.${
+ isPaloAltoNetworksPkiSync(destination) ? `\n\n${PALO_ALTO_NETWORKS_PRIVATE_KEY_NOTE}` : ""
+ }`
});
steps.push({
diff --git a/frontend/src/helpers/pkiSyncs.ts b/frontend/src/helpers/pkiSyncs.ts
index 4112de53fa..88c8ebac7b 100644
--- a/frontend/src/helpers/pkiSyncs.ts
+++ b/frontend/src/helpers/pkiSyncs.ts
@@ -201,6 +201,9 @@ export const INCLUDE_ROOT_CA_UNSUPPORTED_DESTINATIONS: PkiSync[] = [
PkiSync.PaloAltoNetworksSslTlsProfile
];
+export const PALO_ALTO_NETWORKS_PRIVATE_KEY_NOTE =
+ "Palo Alto Networks needs each certificate's private key. Certificates without one, such as those issued from a CSR generated outside Infisical, are skipped.";
+
export const isPaloAltoNetworksPkiSync = (destination?: PkiSync) =>
destination === PkiSync.PaloAltoNetworks || destination === PkiSync.PaloAltoNetworksSslTlsProfile;