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
Add missing stuff for ui
Fang-Pen Lin69381fa6dded
diff --git a/backend/src/services/certificate-profile/certificate-profile-schemas.ts b/backend/src/services/certificate-profile/certificate-profile-schemas.tsindex 8ac494fe64..bf88593bd0 100644--- a/backend/src/services/certificate-profile/certificate-profile-schemas.ts+++ b/backend/src/services/certificate-profile/certificate-profile-schemas.ts@@ -27,7 +27,8 @@ export const createCertificateProfileSchema = zautoRenew: z.boolean().default(false),renewBeforeDays: z.number().min(1).max(30).optional()})- .optional()+ .optional(),+ acmeConfig: z.object({}).optional()}).refine((data) => {@@ -38,6 +39,9 @@ export const createCertificateProfileSchema = zif (data.apiConfig) {return false;}+ if (data.acmeConfig) {+ return false;+ }}if (data.enrollmentType === EnrollmentType.API) {if (!data.apiConfig) {@@ -46,6 +50,20 @@ export const createCertificateProfileSchema = zif (data.estConfig) {return false;}+ if (data.acmeConfig) {+ return false;+ }+ }+ if (data.enrollmentType === EnrollmentType.ACME) {+ if (!data.acmeConfig) {+ return false;+ }+ if (data.estConfig) {+ return false;+ }+ if (data.apiConfig) {+ return false;+ }}return true;},diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsxindex 3ad2290b27..c3ed8478ad 100644--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx@@ -288,6 +288,8 @@ export const CreateProfileModal = ({ isOpen, onClose, profile, mode = "create" }};} else if (data.enrollmentType === "api" && data.apiConfig) {createData.apiConfig = data.apiConfig;+ } else if (data.enrollmentType === "acme" && data.acmeConfig) {+ createData.acmeConfig = data.acmeConfig;}await createProfile.mutateAsync(createData);