Skip to content

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

Merge remote-tracking branch 'origin/main' into feat/PKI-87

Carlos Monastyrski7ff01c7e032a
diff --cc frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
index 75f365c7bb,9677e8a686..57102efb98
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificateIssuanceModal.tsx
@@@ -36,11 -29,10 +36,11 @@@ import
import { AlgorithmSelectors } from "./AlgorithmSelectors";
import { CertificateContent } from "./CertificateContent";
-import { filterUsages, formatSubjectAltNames, getAttributeValue } from "./certificateUtils";
+import { filterUsages, formatSubjectAltNames } from "./certificateUtils";
import { KeyUsageSection } from "./KeyUsageSection";
import { SubjectAltNamesField } from "./SubjectAltNamesField";
+import { SubjectAttributesField } from "./SubjectAttributesField";
- import { useCertificateTemplate } from "./useCertificateTemplate";
+ import { useCertificatePolicy } from "./useCertificatePolicy";
const createSchema = (shouldShowSubjectSection: boolean) => {
return z.object({
diff --cc frontend/src/pages/cert-manager/CertificatesPage/components/useCertificatePolicy.ts
index 685031e970,eb1467b6cb..871298193b
--- a/frontend/src/pages/cert-manager/CertificatesPage/components/useCertificatePolicy.ts
+++ b/frontend/src/pages/cert-manager/CertificatesPage/components/useCertificatePolicy.ts
@@@ -40,14 -39,11 +40,14 @@@ export type TemplateConstraints =
allowedSignatureAlgorithms: string[];
allowedKeyAlgorithms: string[];
allowedSanTypes: CertSubjectAlternativeNameType[];
+ allowedSubjectAttributeTypes: CertSubjectAttributeType[];
shouldShowSanSection: boolean;
shouldShowSubjectSection: boolean;
+ templateAllowsCA: boolean;
+ maxPathLength?: number;
};
- export const useCertificateTemplate = (
+ export const useCertificatePolicy = (
templateData: any,
selectedProfile: any,
isModalOpen: boolean,