Skip to content

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

fix(pki): include project ID when creating collections (#8840)

Andrew Huang3eeb07cef843
diff --git a/frontend/src/hooks/api/pkiCollections/types.ts b/frontend/src/hooks/api/pkiCollections/types.ts
index 97236a0760..c9f7d38992 100644
--- a/frontend/src/hooks/api/pkiCollections/types.ts
+++ b/frontend/src/hooks/api/pkiCollections/types.ts
@@ -8,6 +8,7 @@ export type TPkiCollection = {
};
export type TCreatePkiCollectionDTO = {
+ projectId: string;
name: string;
description: string;
};
diff --git a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
index 81e18b99ea..652106c071 100644
--- a/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
+++ b/frontend/src/pages/cert-manager/AlertingPage/components/PkiCollectionModal.tsx
@@ -75,6 +75,7 @@ export const PkiCollectionModal = ({ popUp, handlePopUpToggle }: Props) => {
} else {
// create
const { id: collectionId } = await createPkiCollection({
+ projectId,
name,
description
});