Skip to content

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

Fix UI

Fang-Pen Lin3ac3f44f1a9e
diff --git a/frontend/src/global.d.ts b/frontend/src/global.d.ts
index 30b80cb706..a6de7ac8cb 100644
--- a/frontend/src/global.d.ts
+++ b/frontend/src/global.d.ts
@@ -7,6 +7,7 @@ declare global {
POSTHOG_API_KEY?: string;
INTERCOM_ID?: string;
TELEMETRY_CAPTURING_ENABLED: string;
+ ACME_FEATURE_ENABLED?: boolean;
};
}
}
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
index 9ee2387430..78517b49fa 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateProfilesTab.tsx
@@ -113,14 +113,16 @@ export const CertificateProfilesTab = () => {
mode="edit"
/>
- <RevealAcmeEabSecretModal
- isOpen={isRevealProfileAcmeEabSecretModalOpen}
- onClose={() => {
- setIsRevealProfileAcmeEabSecretModalOpen(false);
- setSelectedProfile(null);
- }}
- profile={selectedProfile}
- />
+ {selectedProfile.enrollmentType === "acme" && (
+ <RevealAcmeEabSecretModal
+ isOpen={isRevealProfileAcmeEabSecretModalOpen}
+ onClose={() => {
+ setIsRevealProfileAcmeEabSecretModalOpen(false);
+ setSelectedProfile(null);
+ }}
+ profile={selectedProfile}
+ />
+ )}
<DeleteActionModal
isOpen={isDeleteModalOpen}
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/RevealAcmeEabSecretModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/RevealAcmeEabSecretModal.tsx
index 7156fc7e4c..84163633fe 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/RevealAcmeEabSecretModal.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/RevealAcmeEabSecretModal.tsx
@@ -26,7 +26,6 @@ export const RevealAcmeEabSecretModal = ({ isOpen, onClose, profile }: Props) =>
const [isEabSecretCopied, setIsEabSecretCopied] = useToggle(false);
const revealAcmeEabSecret = useRevealAcmeEabSecret({ profileId: profile.id });
const { data, isLoading, isError, error } = revealAcmeEabSecret;
-
const { directoryUrl } = profile.acmeConfig!;
const { eabKid, eabSecret } = data ?? { eabKid: "", eabSecret: "" };