Skip to content

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

Add profile/policy detail views

Carlos Monastyrski64409e361276
diff --git a/frontend/src/const/routes.ts b/frontend/src/const/routes.ts
index 9ba139014b..f5d0dd417f 100644
--- a/frontend/src/const/routes.ts
+++ b/frontend/src/const/routes.ts
@@ -319,6 +319,14 @@ export const ROUTE_PATHS = Object.freeze({
"/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/ca/$caId"
),
+ CertificateProfileDetailsByIDPage: setRoute(
+ "/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId"
+ ),
+ CertificatePolicyDetailsByIDPage: setRoute(
+ "/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId"
+ ),
SubscribersPage: setRoute(
"/organizations/$orgId/projects/cert-manager/$projectId/subscribers",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers"
diff --git a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
index 9c702db236..82ef77fb97 100644
--- a/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
+++ b/frontend/src/pages/cert-manager/ApplicationDetailsByIDPage/components/ApplicationSettingsTab.tsx
@@ -590,7 +590,20 @@ export const ApplicationSettingsTab = ({ application, profiles }: Props) => {
const hasMethods = methods.length > 0;
return (
<TableRow key={p.profileId}>
- <TableCell className="font-mono">{p.profileSlug}</TableCell>
+ <TableCell className="font-mono">
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId"
+ params={{
+ orgId: orgId ?? "",
+ projectId: projectId ?? "",
+ profileId: p.profileId
+ }}
+ search={{ from: "application", applicationName: application.name }}
+ className="text-mineshaft-200 hover:text-primary-400"
+ >
+ {p.profileSlug}
+ </Link>
+ </TableCell>
<TableCell>
{/* eslint-disable-next-line no-nested-ternary */}
{canConfigureEnrollment ? (
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
index ee335b5dc0..390bc44b0d 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/CertAuthDetailsByIDPage.tsx
@@ -2,7 +2,7 @@ import { Helmet } from "react-helmet";
import { subject } from "@casl/ability";
import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { Link, useNavigate, useParams } from "@tanstack/react-router";
+import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
import { EllipsisIcon } from "lucide-react";
import { createNotification } from "@app/components/notifications";
@@ -24,6 +24,7 @@ import {
} from "@app/context";
import { CaType, useDeleteCa, useGetCa } from "@app/hooks/api";
import { TInternalCertificateAuthority } from "@app/hooks/api/ca/types";
+import { useGetCertificateProfileById } from "@app/hooks/api/certificateProfiles";
import { ProjectType } from "@app/hooks/api/projects/types";
import { usePopUp } from "@app/hooks/usePopUp";
@@ -48,6 +49,9 @@ const Page = () => {
from: ROUTE_PATHS.CertManager.CertAuthDetailsByIDPage.id
});
const { caId } = params as { caId: string };
+ const search = useSearch({
+ from: ROUTE_PATHS.CertManager.CertAuthDetailsByIDPage.id
+ }) as { from?: "settings" | "profile"; profileId?: string };
const { data } = useGetCa({
caId,
type: CaType.INTERNAL
@@ -55,6 +59,12 @@ const Page = () => {
const projectId = currentProject?.id || "";
+ const cameFromProfile = search.from === "profile" && Boolean(search.profileId);
+
+ const { data: sourceProfile } = useGetCertificateProfileById({
+ profileId: cameFromProfile && search.profileId ? search.profileId : ""
+ });
+
const { mutateAsync: deleteCa } = useDeleteCa();
const { popUp, handlePopUpOpen, handlePopUpClose, handlePopUpToggle } = usePopUp([
@@ -101,18 +111,33 @@ const Page = () => {
{(isAllowed) =>
isAllowed ? (
<div className="mx-auto mb-6 w-full max-w-8xl">
- <Link
- to="/organizations/$orgId/projects/cert-manager/$projectId/settings"
- params={{
- orgId: currentOrg.id,
- projectId
- }}
- search={{ selectedTab: "certificate-authorities" }}
- className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
- >
- <FontAwesomeIcon icon={faChevronLeft} />
- Certificate Authorities
- </Link>
+ {cameFromProfile && search.profileId ? (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId"
+ params={{
+ orgId: currentOrg.id,
+ projectId,
+ profileId: search.profileId
+ }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ {sourceProfile?.slug || "Certificate Profile"}
+ </Link>
+ ) : (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"
+ params={{
+ orgId: currentOrg.id,
+ projectId
+ }}
+ search={{ selectedTab: "certificate-authorities" }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ Certificate Authorities
+ </Link>
+ )}
<PageHeader
scope={ProjectType.CertificateManager}
description="Manage certificate authority"
diff --git a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
index a1053bfc44..15050bb3e5 100644
--- a/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
+++ b/frontend/src/pages/cert-manager/CertAuthDetailsByIDPage/route.tsx
@@ -1,11 +1,19 @@
import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
import { CertAuthDetailsByIDPage } from "./CertAuthDetailsByIDPage";
+const caDetailsSearchSchema = z.object({
+ from: z.enum(["settings", "profile"]).optional(),
+ profileId: z.string().optional()
+});
+
export const Route = createFileRoute(
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/ca/$caId"
)({
component: CertAuthDetailsByIDPage,
+ validateSearch: zodValidator(caDetailsSearchSchema),
beforeLoad: ({ context, params }) => {
return {
breadcrumbs: [
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
new file mode 100644
index 0000000000..f00aeeefa7
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/CertificatePolicyDetailsByIDPage.tsx
@@ -0,0 +1,223 @@
+import { useState } from "react";
+import { Helmet } from "react-helmet";
+import { subject } from "@casl/ability";
+import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
+import { EllipsisIcon } from "lucide-react";
+
+import { createNotification } from "@app/components/notifications";
+import { ProjectPermissionCan } from "@app/components/permissions";
+import { AccessRestrictedBanner, DeleteActionModal, PageHeader } from "@app/components/v2";
+import {
+ Button,
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger
+} from "@app/components/v3";
+import { ROUTE_PATHS } from "@app/const/routes";
+import { useOrganization, useProject } from "@app/context";
+import {
+ ProjectPermissionCertificatePolicyActions,
+ ProjectPermissionSub
+} from "@app/context/ProjectPermissionContext/types";
+import {
+ useDeleteCertificatePolicy,
+ useGetCertificatePolicyById
+} from "@app/hooks/api/certificatePolicies";
+import { useGetCertificateProfileById } from "@app/hooks/api/certificateProfiles";
+import { ProjectType } from "@app/hooks/api/projects/types";
+
+import { CreatePolicyModal } from "../PoliciesPage/components/CertificatePoliciesTab/CreatePolicyModal";
+import {
+ PolicyAlgorithmsSection,
+ PolicyDetailsSection,
+ PolicyKeyUsagesSection,
+ PolicySansRulesSection,
+ PolicySubjectRulesSection,
+ PolicyValiditySection
+} from "./components";
+
+const Page = () => {
+ const { currentProject } = useProject();
+ const { currentOrg } = useOrganization();
+ const navigate = useNavigate();
+ const params = useParams({
+ from: ROUTE_PATHS.CertManager.CertificatePolicyDetailsByIDPage.id
+ });
+ const { policyId } = params as { policyId: string };
+ const search = useSearch({
+ from: ROUTE_PATHS.CertManager.CertificatePolicyDetailsByIDPage.id
+ }) as { from?: "settings" | "profile"; profileId?: string };
+
+ const { data: policy } = useGetCertificatePolicyById({ policyId });
+ const { mutateAsync: deletePolicy } = useDeleteCertificatePolicy();
+
+ const cameFromProfile = search.from === "profile" && Boolean(search.profileId);
+
+ const { data: sourceProfile } = useGetCertificateProfileById({
+ profileId: cameFromProfile && search.profileId ? search.profileId : ""
+ });
+
+ const [isEditModalOpen, setIsEditModalOpen] = useState(false);
+ const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
+
+ const projectId = currentProject?.id || "";
+
+ const handleDeleteConfirm = async () => {
+ if (!policy) return;
+
+ await deletePolicy({ policyId: policy.id });
+
+ createNotification({
+ text: `Certificate policy "${policy.name}" deleted successfully`,
+ type: "success"
+ });
+
+ setIsDeleteModalOpen(false);
+ navigate({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/settings",
+ params: {
+ orgId: currentOrg.id,
+ projectId
+ },
+ search: { selectedTab: "certificate-policies" }
+ });
+ };
+
+ return (
+ <div className="mx-auto flex flex-col justify-between bg-bunker-800 text-white">
+ {policy && (
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificatePolicyActions.Read}
+ a={subject(ProjectPermissionSub.CertificatePolicies, { name: policy.name })}
+ >
+ {(isAllowed) =>
+ isAllowed ? (
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ {cameFromProfile && search.profileId ? (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId"
+ params={{
+ orgId: currentOrg.id,
+ projectId,
+ profileId: search.profileId
+ }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ {sourceProfile?.slug || "Certificate Profile"}
+ </Link>
+ ) : (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"
+ params={{
+ orgId: currentOrg.id,
+ projectId
+ }}
+ search={{ selectedTab: "certificate-policies" }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ Certificate Policies
+ </Link>
+ )}
+ <PageHeader
+ scope={ProjectType.CertificateManager}
+ description="Manage certificate policy"
+ title={policy.name}
+ >
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline">
+ Options
+ <EllipsisIcon />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificatePolicyActions.Edit}
+ a={subject(ProjectPermissionSub.CertificatePolicies, {
+ name: policy.name
+ })}
+ >
+ {(canEdit) => (
+ <DropdownMenuItem
+ isDisabled={!canEdit}
+ onClick={() => setIsEditModalOpen(true)}
+ >
+ Edit Policy
+ </DropdownMenuItem>
+ )}
+ </ProjectPermissionCan>
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificatePolicyActions.Delete}
+ a={subject(ProjectPermissionSub.CertificatePolicies, {
+ name: policy.name
+ })}
+ >
+ {(canDelete) => (
+ <DropdownMenuItem
+ variant="danger"
+ isDisabled={!canDelete}
+ onClick={() => setIsDeleteModalOpen(true)}
+ >
+ Delete Policy
+ </DropdownMenuItem>
+ )}
+ </ProjectPermissionCan>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </PageHeader>
+ <div className="flex flex-col gap-5 lg:flex-row">
+ <div className="w-full lg:max-w-[24rem]">
+ <PolicyDetailsSection policy={policy} />
+ </div>
+ <div className="flex flex-1 flex-col gap-y-5">
+ <PolicyValiditySection policy={policy} />
+ <PolicySubjectRulesSection policy={policy} />
+ <PolicySansRulesSection policy={policy} />
+ <PolicyKeyUsagesSection policy={policy} />
+ <PolicyAlgorithmsSection policy={policy} />
+ </div>
+ </div>
+
+ <CreatePolicyModal
+ isOpen={isEditModalOpen}
+ onClose={() => setIsEditModalOpen(false)}
+ policy={policy}
+ mode="edit"
+ />
+
+ <DeleteActionModal
+ isOpen={isDeleteModalOpen}
+ title={`Delete Certificate Policy ${policy.name}?`}
+ onChange={(isOpen) => setIsDeleteModalOpen(isOpen)}
+ deleteKey={policy.name}
+ onDeleteApproved={handleDeleteConfirm}
+ />
+ </div>
+ ) : (
+ <div className="container mx-auto flex h-full items-center justify-center">
+ <AccessRestrictedBanner />
+ </div>
+ )
+ }
+ </ProjectPermissionCan>
+ )}
+ </div>
+ );
+};
+
+export const CertificatePolicyDetailsByIDPage = () => {
+ return (
+ <>
+ <Helmet>
+ <title>Certificate Policy</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Helmet>
+ <Page />
+ </>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyAlgorithmsSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyAlgorithmsSection.tsx
new file mode 100644
index 0000000000..82ed7ef325
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyAlgorithmsSection.tsx
@@ -0,0 +1,76 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+import {
+ CertKeyAlgorithm,
+ CertSignatureAlgorithm,
+ getKeyAlgorithmDisplayName,
+ getSignatureAlgorithmDisplayName,
+ mapPolicyKeyAlgorithmToApi,
+ mapPolicySignatureAlgorithmToApi
+} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+export const PolicyAlgorithmsSection = ({ policy }: Props) => {
+ const signatures = policy.algorithms?.signature ?? [];
+ const keys = policy.algorithms?.keyAlgorithm ?? [];
+
+ if (signatures.length === 0 && keys.length === 0) {
+ return null;
+ }
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Algorithms</CardTitle>
+ <CardDescription>Allowed cryptographic algorithms for issued certificates</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {signatures.length > 0 && (
+ <Detail>
+ <DetailLabel>Signature Algorithms</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {signatures.map((sig) => (
+ <Badge key={sig} variant="neutral">
+ {getSignatureAlgorithmDisplayName(
+ mapPolicySignatureAlgorithmToApi(sig) as CertSignatureAlgorithm
+ )}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ )}
+
+ {keys.length > 0 && (
+ <Detail>
+ <DetailLabel>Key Algorithms</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {keys.map((key) => (
+ <Badge key={key} variant="neutral">
+ {getKeyAlgorithmDisplayName(
+ mapPolicyKeyAlgorithmToApi(key) as CertKeyAlgorithm
+ )}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyDetailsSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyDetailsSection.tsx
new file mode 100644
index 0000000000..373e754f7c
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyDetailsSection.tsx
@@ -0,0 +1,94 @@
+import { format } from "date-fns";
+import { CheckIcon, ClipboardListIcon } from "lucide-react";
+
+import {
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue,
+ IconButton,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger
+} from "@app/components/v3";
+import { useTimedReset } from "@app/hooks";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+export const PolicyDetailsSection = ({ policy }: Props) => {
+ const [, isCopyingId, setCopyTextId] = useTimedReset<string>({
+ initialState: "Copy ID to clipboard"
+ });
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Details</CardTitle>
+ <CardDescription>Certificate policy details</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ <Detail>
+ <DetailLabel>Name</DetailLabel>
+ <DetailValue>{policy.name}</DetailValue>
+ </Detail>
+
+ <Detail>
+ <DetailLabel>Policy ID</DetailLabel>
+ <DetailValue className="flex items-center gap-x-1">
+ <span className="break-all">{policy.id}</span>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <IconButton
+ variant="ghost"
+ size="xs"
+ onClick={() => {
+ navigator.clipboard.writeText(policy.id);
+ setCopyTextId("Copied");
+ }}
+ >
+ {isCopyingId ? <CheckIcon /> : <ClipboardListIcon className="text-label" />}
+ </IconButton>
+ </TooltipTrigger>
+ <TooltipContent>{isCopyingId ? "Copied" : "Copy ID to clipboard"}</TooltipContent>
+ </Tooltip>
+ </DetailValue>
+ </Detail>
+
+ {policy.description && (
+ <Detail>
+ <DetailLabel>Description</DetailLabel>
+ <DetailValue>{policy.description}</DetailValue>
+ </Detail>
+ )}
+
+ {policy.createdAt && (
+ <Detail>
+ <DetailLabel>Created</DetailLabel>
+ <DetailValue>
+ {format(new Date(policy.createdAt), "MMM d, yyyy 'at' h:mm a")}
+ </DetailValue>
+ </Detail>
+ )}
+
+ {policy.updatedAt && (
+ <Detail>
+ <DetailLabel>Last Updated</DetailLabel>
+ <DetailValue>
+ {format(new Date(policy.updatedAt), "MMM d, yyyy 'at' h:mm a")}
+ </DetailValue>
+ </Detail>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx
new file mode 100644
index 0000000000..b76ddea61c
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyKeyUsagesSection.tsx
@@ -0,0 +1,92 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+import {
+ CertExtendedKeyUsageType,
+ CertKeyUsageType,
+ formatExtendedKeyUsage,
+ formatKeyUsage
+} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+const RuleList = ({
+ label,
+ values,
+ formatter
+}: {
+ label: string;
+ values?: string[];
+ formatter: (value: string) => string;
+}) => {
+ if (!values || values.length === 0) return null;
+ return (
+ <Detail>
+ <DetailLabel>{label}</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {values.map((value) => (
+ <Badge key={`${label}-${value}`} variant="neutral">
+ {formatter(value)}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ );
+};
+
+export const PolicyKeyUsagesSection = ({ policy }: Props) => {
+ const ku = policy.keyUsages;
+ const eku = policy.extendedKeyUsages;
+
+ const hasKu = ku && (ku.allowed?.length || ku.required?.length || ku.denied?.length);
+ const hasEku = eku && (eku.allowed?.length || eku.required?.length || eku.denied?.length);
+
+ if (!hasKu && !hasEku) {
+ return null;
+ }
+
+ const formatKu = (v: string) => formatKeyUsage(v as CertKeyUsageType);
+ const formatEku = (v: string) => formatExtendedKeyUsage(v as CertExtendedKeyUsageType);
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Key Usages</CardTitle>
+ <CardDescription>Allowed, required, and denied certificate key usages</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {hasKu && (
+ <div className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0">
+ <div className="text-sm font-medium text-foreground">Key Usages</div>
+ <RuleList label="Allowed" values={ku?.allowed} formatter={formatKu} />
+ <RuleList label="Required" values={ku?.required} formatter={formatKu} />
+ <RuleList label="Denied" values={ku?.denied} formatter={formatKu} />
+ </div>
+ )}
+
+ {hasEku && (
+ <div className="flex flex-col gap-y-3">
+ <div className="text-sm font-medium text-foreground">Extended Key Usages</div>
+ <RuleList label="Allowed" values={eku?.allowed} formatter={formatEku} />
+ <RuleList label="Required" values={eku?.required} formatter={formatEku} />
+ <RuleList label="Denied" values={eku?.denied} formatter={formatEku} />
+ </div>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx
new file mode 100644
index 0000000000..6a40551fb2
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySansRulesSection.tsx
@@ -0,0 +1,77 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+import {
+ CertSubjectAlternativeNameType,
+ formatSANType
+} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+const RuleList = ({ label, values }: { label: string; values?: string[] }) => {
+ if (!values || values.length === 0) return null;
+ return (
+ <Detail>
+ <DetailLabel>{label}</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {values.map((value) => (
+ <Badge key={`${label}-${value}`} variant="neutral">
+ {value}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ );
+};
+
+export const PolicySansRulesSection = ({ policy }: Props) => {
+ const entries = (policy.sans ?? []).filter(
+ (rule) =>
+ (rule.allowed && rule.allowed.length > 0) ||
+ (rule.required && rule.required.length > 0) ||
+ (rule.denied && rule.denied.length > 0)
+ );
+
+ if (entries.length === 0) {
+ return null;
+ }
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Subject Alternative Names</CardTitle>
+ <CardDescription>Constraints on SAN entries in issued certificates</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {entries.map((rule, idx) => (
+ <div
+ // eslint-disable-next-line react/no-array-index-key
+ key={`${rule.type}-${idx}`}
+ className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0"
+ >
+ <div className="text-sm font-medium text-foreground">
+ {formatSANType(rule.type as CertSubjectAlternativeNameType)}
+ </div>
+ <RuleList label="Allowed" values={rule.allowed} />
+ <RuleList label="Required" values={rule.required} />
+ <RuleList label="Denied" values={rule.denied} />
+ </div>
+ ))}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx
new file mode 100644
index 0000000000..d0793f4897
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicySubjectRulesSection.tsx
@@ -0,0 +1,77 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+import {
+ CertSubjectAttributeType,
+ formatSubjectAttributeType
+} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+const RuleList = ({ label, values }: { label: string; values?: string[] }) => {
+ if (!values || values.length === 0) return null;
+ return (
+ <Detail>
+ <DetailLabel>{label}</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {values.map((value) => (
+ <Badge key={`${label}-${value}`} variant="neutral">
+ {value}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ );
+};
+
+export const PolicySubjectRulesSection = ({ policy }: Props) => {
+ const entries = (policy.subject ?? []).filter(
+ (rule) =>
+ (rule.allowed && rule.allowed.length > 0) ||
+ (rule.required && rule.required.length > 0) ||
+ (rule.denied && rule.denied.length > 0)
+ );
+
+ if (entries.length === 0) {
+ return null;
+ }
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Subject Rules</CardTitle>
+ <CardDescription>Constraints on the certificate subject distinguished name</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {entries.map((rule, idx) => (
+ <div
+ // eslint-disable-next-line react/no-array-index-key
+ key={`${rule.type}-${idx}`}
+ className="flex flex-col gap-y-3 border-b border-mineshaft-700 pb-3 last:border-b-0 last:pb-0"
+ >
+ <div className="text-sm font-medium text-foreground">
+ {formatSubjectAttributeType(rule.type as CertSubjectAttributeType)}
+ </div>
+ <RuleList label="Allowed" values={rule.allowed} />
+ <RuleList label="Required" values={rule.required} />
+ <RuleList label="Denied" values={rule.denied} />
+ </div>
+ ))}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyValiditySection.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyValiditySection.tsx
new file mode 100644
index 0000000000..913d5374bc
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/PolicyValiditySection.tsx
@@ -0,0 +1,85 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificatePolicy } from "@app/hooks/api/certificatePolicies";
+import { CertPolicyState } from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ policy: TCertificatePolicy;
+};
+
+const policyStateLabel: Record<CertPolicyState, string> = {
+ [CertPolicyState.ALLOWED]: "Allowed",
+ [CertPolicyState.REQUIRED]: "Required",
+ [CertPolicyState.DENIED]: "Denied"
+};
+
+const policyStateVariant = (state: CertPolicyState): "success" | "info" | "danger" | "neutral" => {
+ switch (state) {
+ case CertPolicyState.REQUIRED:
+ return "success";
+ case CertPolicyState.DENIED:
+ return "danger";
+ case CertPolicyState.ALLOWED:
+ return "info";
+ default:
+ return "neutral";
+ }
+};
+
+export const PolicyValiditySection = ({ policy }: Props) => {
+ const maxValidity = policy.validity?.max;
+ const basicConstraints = policy.basicConstraints;
+
+ if (!maxValidity && !basicConstraints) {
+ return null;
+ }
+
+ const isCAState = basicConstraints?.isCA as CertPolicyState | undefined;
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Validity & Constraints</CardTitle>
+ <CardDescription>
+ Lifetime and basic constraints applied to issued certificates
+ </CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {maxValidity && (
+ <Detail>
+ <DetailLabel>Maximum Validity</DetailLabel>
+ <DetailValue>{maxValidity}</DetailValue>
+ </Detail>
+ )}
+
+ {isCAState && (
+ <Detail>
+ <DetailLabel>Is CA</DetailLabel>
+ <DetailValue>
+ <Badge variant={policyStateVariant(isCAState)}>{policyStateLabel[isCAState]}</Badge>
+ </DetailValue>
+ </Detail>
+ )}
+
+ {basicConstraints?.maxPathLength !== undefined && (
+ <Detail>
+ <DetailLabel>Max Path Length</DetailLabel>
+ <DetailValue>{basicConstraints.maxPathLength}</DetailValue>
+ </Detail>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/index.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/index.tsx
new file mode 100644
index 0000000000..cc9dedfd0a
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/components/index.tsx
@@ -0,0 +1,6 @@
+export { PolicyAlgorithmsSection } from "./PolicyAlgorithmsSection";
+export { PolicyDetailsSection } from "./PolicyDetailsSection";
+export { PolicyKeyUsagesSection } from "./PolicyKeyUsagesSection";
+export { PolicySansRulesSection } from "./PolicySansRulesSection";
+export { PolicySubjectRulesSection } from "./PolicySubjectRulesSection";
+export { PolicyValiditySection } from "./PolicyValiditySection";
diff --git a/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/route.tsx b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/route.tsx
new file mode 100644
index 0000000000..5d88f27ad6
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificatePolicyDetailsByIDPage/route.tsx
@@ -0,0 +1,38 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
+
+import { CertificatePolicyDetailsByIDPage } from "./CertificatePolicyDetailsByIDPage";
+
+const policyDetailsSearchSchema = z.object({
+ from: z.enum(["settings", "profile"]).optional(),
+ profileId: z.string().optional()
+});
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId"
+)({
+ component: CertificatePolicyDetailsByIDPage,
+ validateSearch: zodValidator(policyDetailsSearchSchema),
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Certificate Policies",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/settings",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: { selectedTab: "certificate-policies" }
+ })
+ },
+ {
+ label: params.policyId
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
new file mode 100644
index 0000000000..8ef3fb3f18
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/CertificateProfileDetailsByIDPage.tsx
@@ -0,0 +1,230 @@
+import { useState } from "react";
+import { Helmet } from "react-helmet";
+import { subject } from "@casl/ability";
+import { faChevronLeft } from "@fortawesome/free-solid-svg-icons";
+import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { Link, useNavigate, useParams, useSearch } from "@tanstack/react-router";
+import { EllipsisIcon } from "lucide-react";
+
+import { createNotification } from "@app/components/notifications";
+import { ProjectPermissionCan } from "@app/components/permissions";
+import { AccessRestrictedBanner, DeleteActionModal, PageHeader } from "@app/components/v2";
+import {
+ Button,
+ DropdownMenu,
+ DropdownMenuContent,
+ DropdownMenuItem,
+ DropdownMenuTrigger
+} from "@app/components/v3";
+import { ROUTE_PATHS } from "@app/const/routes";
+import { useOrganization, useProject } from "@app/context";
+import {
+ ProjectPermissionCertificateProfileActions,
+ ProjectPermissionSub
+} from "@app/context/ProjectPermissionContext/types";
+import {
+ useDeleteCertificateProfile,
+ useGetCertificateProfileById
+} from "@app/hooks/api/certificateProfiles";
+import { ProjectType } from "@app/hooks/api/projects/types";
+
+import { CreateProfileModal } from "../PoliciesPage/components/CertificateProfilesTab/CreateProfileModal";
+import {
+ ProfileDefaultsSection,
+ ProfileDetailsSection,
+ ProfileIssuerSection,
+ ProfilePolicySection
+} from "./components";
+
+const Page = () => {
+ const { currentProject } = useProject();
+ const { currentOrg } = useOrganization();
+ const navigate = useNavigate();
+ const params = useParams({
+ from: ROUTE_PATHS.CertManager.CertificateProfileDetailsByIDPage.id
+ });
+ const { profileId } = params as { profileId: string };
+ const search = useSearch({
+ from: ROUTE_PATHS.CertManager.CertificateProfileDetailsByIDPage.id
+ }) as { from?: "settings" | "application"; applicationName?: string };
+
+ const { data: profile } = useGetCertificateProfileById({ profileId });
+ const { mutateAsync: deleteProfile } = useDeleteCertificateProfile();
+
+ const [isEditModalOpen, setIsEditModalOpen] = useState(false);
+ const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
+
+ const projectId = currentProject?.id || "";
+
+ const cameFromApplication = search.from === "application" && Boolean(search.applicationName);
+
+ const navigateBack = () => {
+ if (cameFromApplication && search.applicationName) {
+ navigate({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName",
+ params: {
+ orgId: currentOrg.id,
+ projectId,
+ applicationName: search.applicationName
+ }
+ });
+ return;
+ }
+
+ navigate({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/settings",
+ params: {
+ orgId: currentOrg.id,
+ projectId
+ },
+ search: { selectedTab: "certificate-profiles" }
+ });
+ };
+
+ const handleDeleteConfirm = async () => {
+ if (!profile) return;
+
+ await deleteProfile({ profileId: profile.id });
+
+ createNotification({
+ text: `Certificate profile "${profile.slug}" deleted successfully`,
+ type: "success"
+ });
+
+ setIsDeleteModalOpen(false);
+ navigateBack();
+ };
+
+ return (
+ <div className="mx-auto flex flex-col justify-between bg-bunker-800 text-white">
+ {profile && (
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificateProfileActions.Read}
+ a={subject(ProjectPermissionSub.CertificateProfiles, { slug: profile.slug })}
+ >
+ {(isAllowed) =>
+ isAllowed ? (
+ <div className="mx-auto mb-6 w-full max-w-8xl">
+ {cameFromApplication && search.applicationName ? (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName"
+ params={{
+ orgId: currentOrg.id,
+ projectId,
+ applicationName: search.applicationName
+ }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ {search.applicationName}
+ </Link>
+ ) : (
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"
+ params={{
+ orgId: currentOrg.id,
+ projectId
+ }}
+ search={{ selectedTab: "certificate-profiles" }}
+ className="mb-4 flex items-center gap-x-2 text-sm text-mineshaft-400"
+ >
+ <FontAwesomeIcon icon={faChevronLeft} />
+ Certificate Profiles
+ </Link>
+ )}
+ <PageHeader
+ scope={ProjectType.CertificateManager}
+ description="Manage certificate profile"
+ title={profile.slug}
+ >
+ <DropdownMenu>
+ <DropdownMenuTrigger asChild>
+ <Button variant="outline">
+ Options
+ <EllipsisIcon />
+ </Button>
+ </DropdownMenuTrigger>
+ <DropdownMenuContent align="end">
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificateProfileActions.Edit}
+ a={subject(ProjectPermissionSub.CertificateProfiles, {
+ slug: profile.slug
+ })}
+ >
+ {(canEdit) => (
+ <DropdownMenuItem
+ isDisabled={!canEdit}
+ onClick={() => setIsEditModalOpen(true)}
+ >
+ Edit Profile
+ </DropdownMenuItem>
+ )}
+ </ProjectPermissionCan>
+ <ProjectPermissionCan
+ I={ProjectPermissionCertificateProfileActions.Delete}
+ a={subject(ProjectPermissionSub.CertificateProfiles, {
+ slug: profile.slug
+ })}
+ >
+ {(canDelete) => (
+ <DropdownMenuItem
+ variant="danger"
+ isDisabled={!canDelete}
+ onClick={() => setIsDeleteModalOpen(true)}
+ >
+ Delete Profile
+ </DropdownMenuItem>
+ )}
+ </ProjectPermissionCan>
+ </DropdownMenuContent>
+ </DropdownMenu>
+ </PageHeader>
+ <div className="flex flex-col gap-5 lg:flex-row">
+ <div className="w-full lg:max-w-[24rem]">
+ <ProfileDetailsSection profile={profile} />
+ <ProfileIssuerSection profile={profile} />
+ <ProfilePolicySection profile={profile} />
+ </div>
+ <div className="flex flex-1 flex-col gap-y-5">
+ <ProfileDefaultsSection profile={profile} />
+ </div>
+ </div>
+
+ <CreateProfileModal
+ isOpen={isEditModalOpen}
+ onClose={() => setIsEditModalOpen(false)}
+ profile={profile}
+ mode="edit"
+ />
+
+ <DeleteActionModal
+ isOpen={isDeleteModalOpen}
+ title={`Delete Certificate Profile ${profile.slug}?`}
+ onChange={(isOpen) => setIsDeleteModalOpen(isOpen)}
+ deleteKey={profile.slug}
+ onDeleteApproved={handleDeleteConfirm}
+ />
+ </div>
+ ) : (
+ <div className="container mx-auto flex h-full items-center justify-center">
+ <AccessRestrictedBanner />
+ </div>
+ )
+ }
+ </ProjectPermissionCan>
+ )}
+ </div>
+ );
+};
+
+export const CertificateProfileDetailsByIDPage = () => {
+ return (
+ <>
+ <Helmet>
+ <title>Certificate Profile</title>
+ <link rel="icon" href="/infisical.ico" />
+ </Helmet>
+ <Page />
+ </>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDefaultsSection.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDefaultsSection.tsx
new file mode 100644
index 0000000000..d98c1f582a
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDefaultsSection.tsx
@@ -0,0 +1,187 @@
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { TCertificateProfileWithDetails } from "@app/hooks/api/certificateProfiles";
+import {
+ CertExtendedKeyUsageType,
+ CertKeyUsageType,
+ formatExtendedKeyUsage,
+ formatKeyUsage
+} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";
+
+type Props = {
+ profile: TCertificateProfileWithDetails;
+};
+
+export const ProfileDefaultsSection = ({ profile }: Props) => {
+ const defaults = profile.defaults ?? null;
+
+ const hasSubjectDefaults = Boolean(
+ defaults?.commonName ||
+ defaults?.organization ||
+ defaults?.organizationalUnit ||
+ defaults?.country ||
+ defaults?.state ||
+ defaults?.locality
+ );
+
+ const hasCryptoDefaults = Boolean(
+ defaults?.keyAlgorithm ||
+ defaults?.signatureAlgorithm ||
+ defaults?.ttlDays ||
+ (defaults?.keyUsages && defaults.keyUsages.length > 0) ||
+ (defaults?.extendedKeyUsages && defaults.extendedKeyUsages.length > 0) ||
+ defaults?.basicConstraints
+ );
+
+ if (!defaults || (!hasSubjectDefaults && !hasCryptoDefaults)) {
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Defaults</CardTitle>
+ <CardDescription>Values applied when issuing certificates</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <div className="text-sm text-label">No defaults configured for this profile.</div>
+ </CardContent>
+ </Card>
+ );
+ }
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Defaults</CardTitle>
+ <CardDescription>Values applied when issuing certificates</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {defaults.ttlDays !== undefined && defaults.ttlDays !== null && (
+ <Detail>
+ <DetailLabel>TTL</DetailLabel>
+ <DetailValue>{defaults.ttlDays} days</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.keyAlgorithm && (
+ <Detail>
+ <DetailLabel>Key Algorithm</DetailLabel>
+ <DetailValue>
+ <Badge variant="neutral">{defaults.keyAlgorithm}</Badge>
+ </DetailValue>
+ </Detail>
+ )}
+
+ {defaults.signatureAlgorithm && (
+ <Detail>
+ <DetailLabel>Signature Algorithm</DetailLabel>
+ <DetailValue>
+ <Badge variant="neutral">{defaults.signatureAlgorithm}</Badge>
+ </DetailValue>
+ </Detail>
+ )}
+
+ {defaults.keyUsages && defaults.keyUsages.length > 0 && (
+ <Detail>
+ <DetailLabel>Key Usages</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {defaults.keyUsages.map((usage) => (
+ <Badge key={usage} variant="neutral">
+ {formatKeyUsage(usage as CertKeyUsageType)}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ )}
+
+ {defaults.extendedKeyUsages && defaults.extendedKeyUsages.length > 0 && (
+ <Detail>
+ <DetailLabel>Extended Key Usages</DetailLabel>
+ <DetailValue className="flex flex-wrap gap-1">
+ {defaults.extendedKeyUsages.map((usage) => (
+ <Badge key={usage} variant="neutral">
+ {formatExtendedKeyUsage(usage as CertExtendedKeyUsageType)}
+ </Badge>
+ ))}
+ </DetailValue>
+ </Detail>
+ )}
+
+ {defaults.basicConstraints && (
+ <>
+ <Detail>
+ <DetailLabel>Is CA</DetailLabel>
+ <DetailValue>
+ <Badge variant={defaults.basicConstraints.isCA ? "success" : "neutral"}>
+ {defaults.basicConstraints.isCA ? "Yes" : "No"}
+ </Badge>
+ </DetailValue>
+ </Detail>
+ {defaults.basicConstraints.pathLength !== undefined && (
+ <Detail>
+ <DetailLabel>Max Path Length</DetailLabel>
+ <DetailValue>{defaults.basicConstraints.pathLength}</DetailValue>
+ </Detail>
+ )}
+ </>
+ )}
+
+ {hasSubjectDefaults && (
+ <>
+ {defaults.commonName && (
+ <Detail>
+ <DetailLabel>Common Name (CN)</DetailLabel>
+ <DetailValue>{defaults.commonName}</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.organization && (
+ <Detail>
+ <DetailLabel>Organization (O)</DetailLabel>
+ <DetailValue>{defaults.organization}</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.organizationalUnit && (
+ <Detail>
+ <DetailLabel>Organizational Unit (OU)</DetailLabel>
+ <DetailValue>{defaults.organizationalUnit}</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.country && (
+ <Detail>
+ <DetailLabel>Country (C)</DetailLabel>
+ <DetailValue>{defaults.country}</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.state && (
+ <Detail>
+ <DetailLabel>State/Province (ST)</DetailLabel>
+ <DetailValue>{defaults.state}</DetailValue>
+ </Detail>
+ )}
+
+ {defaults.locality && (
+ <Detail>
+ <DetailLabel>Locality (L)</DetailLabel>
+ <DetailValue>{defaults.locality}</DetailValue>
+ </Detail>
+ )}
+ </>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDetailsSection.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDetailsSection.tsx
new file mode 100644
index 0000000000..1eda62779c
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileDetailsSection.tsx
@@ -0,0 +1,129 @@
+import { format } from "date-fns";
+import { CheckIcon, ClipboardListIcon } from "lucide-react";
+
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue,
+ IconButton,
+ Tooltip,
+ TooltipContent,
+ TooltipTrigger
+} from "@app/components/v3";
+import { useTimedReset } from "@app/hooks";
+import {
+ EnrollmentType,
+ IssuerType,
+ TCertificateProfileWithDetails
+} from "@app/hooks/api/certificateProfiles";
+
+type Props = {
+ profile: TCertificateProfileWithDetails;
+};
+
+const enrollmentTypeLabels: Record<EnrollmentType, string> = {
+ [EnrollmentType.API]: "API",
+ [EnrollmentType.EST]: "EST",
+ [EnrollmentType.ACME]: "ACME",
+ [EnrollmentType.SCEP]: "SCEP"
+};
+
+const issuerTypeLabels: Record<IssuerType, string> = {
+ [IssuerType.CA]: "Certificate Authority",
+ [IssuerType.SELF_SIGNED]: "Self-Signed"
+};
+
+export const ProfileDetailsSection = ({ profile }: Props) => {
+ const [, isCopyingId, setCopyTextId] = useTimedReset<string>({
+ initialState: "Copy ID to clipboard"
+ });
+
+ return (
+ <Card className="w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Details</CardTitle>
+ <CardDescription>Certificate profile details</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ <Detail>
+ <DetailLabel>Name</DetailLabel>
+ <DetailValue>{profile.slug}</DetailValue>
+ </Detail>
+
+ <Detail>
+ <DetailLabel>Profile ID</DetailLabel>
+ <DetailValue className="flex items-center gap-x-1">
+ <span className="break-all">{profile.id}</span>
+ <Tooltip>
+ <TooltipTrigger asChild>
+ <IconButton
+ variant="ghost"
+ size="xs"
+ onClick={() => {
+ navigator.clipboard.writeText(profile.id);
+ setCopyTextId("Copied");
+ }}
+ >
+ {isCopyingId ? <CheckIcon /> : <ClipboardListIcon className="text-label" />}
+ </IconButton>
+ </TooltipTrigger>
+ <TooltipContent>{isCopyingId ? "Copied" : "Copy ID to clipboard"}</TooltipContent>
+ </Tooltip>
+ </DetailValue>
+ </Detail>
+
+ {profile.description && (
+ <Detail>
+ <DetailLabel>Description</DetailLabel>
+ <DetailValue>{profile.description}</DetailValue>
+ </Detail>
+ )}
+
+ <Detail>
+ <DetailLabel>Enrollment Type</DetailLabel>
+ <DetailValue>
+ <Badge variant="info">{enrollmentTypeLabels[profile.enrollmentType]}</Badge>
+ </DetailValue>
+ </Detail>
+
+ <Detail>
+ <DetailLabel>Issuer Type</DetailLabel>
+ <DetailValue>
+ <Badge
+ variant={profile.issuerType === IssuerType.SELF_SIGNED ? "warning" : "neutral"}
+ >
+ {issuerTypeLabels[profile.issuerType]}
+ </Badge>
+ </DetailValue>
+ </Detail>
+
+ {profile.createdAt && (
+ <Detail>
+ <DetailLabel>Created</DetailLabel>
+ <DetailValue>
+ {format(new Date(profile.createdAt), "MMM d, yyyy 'at' h:mm a")}
+ </DetailValue>
+ </Detail>
+ )}
+
+ {profile.updatedAt && (
+ <Detail>
+ <DetailLabel>Last Updated</DetailLabel>
+ <DetailValue>
+ {format(new Date(profile.updatedAt), "MMM d, yyyy 'at' h:mm a")}
+ </DetailValue>
+ </Detail>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileIssuerSection.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileIssuerSection.tsx
new file mode 100644
index 0000000000..88903129e6
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfileIssuerSection.tsx
@@ -0,0 +1,108 @@
+import { Link } from "@tanstack/react-router";
+import { ExternalLinkIcon } from "lucide-react";
+
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { useOrganization, useProject } from "@app/context";
+import { useGetInternalCaById } from "@app/hooks/api/ca/queries";
+import { IssuerType, TCertificateProfileWithDetails } from "@app/hooks/api/certificateProfiles";
+
+type Props = {
+ profile: TCertificateProfileWithDetails;
+};
+
+export const ProfileIssuerSection = ({ profile }: Props) => {
+ const { currentOrg } = useOrganization();
+ const { currentProject } = useProject();
+
+ const isSelfSigned = profile.issuerType === IssuerType.SELF_SIGNED;
+ const isInternalCa = !isSelfSigned && !profile.certificateAuthority?.isExternal;
+
+ const { data: internalCa } = useGetInternalCaById(
+ isInternalCa && profile.caId ? profile.caId : ""
+ );
+
+ return (
+ <Card className="mt-4 w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Issuer</CardTitle>
+ <CardDescription>Where certificates issued through this profile are signed</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ {isSelfSigned ? (
+ <Detail>
+ <DetailLabel>Issuer</DetailLabel>
+ <DetailValue>
+ <Badge variant="warning">Self-Signed</Badge>
+ </DetailValue>
+ </Detail>
+ ) : (
+ <>
+ <Detail>
+ <DetailLabel>Source</DetailLabel>
+ <DetailValue>
+ <Badge variant="neutral">
+ {profile.certificateAuthority?.isExternal
+ ? "External CA"
+ : "Internal CA"}
+ </Badge>
+ </DetailValue>
+ </Detail>
+
+ <Detail className="min-w-0">
+ <DetailLabel>Certificate Authority</DetailLabel>
+ <DetailValue className="flex min-w-0 max-w-full">
+ {isInternalCa && profile.caId ? (
+ <Badge variant="neutral" isTruncatable className="max-w-full" asChild>
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ caId: profile.caId
+ }}
+ search={{ from: "profile", profileId: profile.id }}
+ >
+ <span className="min-w-0">
+ {internalCa?.configuration?.friendlyName ||
+ internalCa?.configuration?.commonName ||
+ profile.caId}
+ </span>
+ <ExternalLinkIcon />
+ </Link>
+ </Badge>
+ ) : (
+ <span className="min-w-0 break-all">
+ {profile.certificateAuthority?.name || "N/A"}
+ </span>
+ )}
+ </DetailValue>
+ </Detail>
+
+ {profile.certificateAuthority?.isExternal &&
+ profile.certificateAuthority.externalType && (
+ <Detail>
+ <DetailLabel>External Type</DetailLabel>
+ <DetailValue>
+ <Badge variant="info">{profile.certificateAuthority.externalType}</Badge>
+ </DetailValue>
+ </Detail>
+ )}
+ </>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfilePolicySection.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfilePolicySection.tsx
new file mode 100644
index 0000000000..108fc12164
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/ProfilePolicySection.tsx
@@ -0,0 +1,67 @@
+import { Link } from "@tanstack/react-router";
+import { ExternalLinkIcon } from "lucide-react";
+
+import {
+ Badge,
+ Card,
+ CardContent,
+ CardDescription,
+ CardHeader,
+ CardTitle,
+ Detail,
+ DetailGroup,
+ DetailLabel,
+ DetailValue
+} from "@app/components/v3";
+import { useOrganization, useProject } from "@app/context";
+import { TCertificateProfileWithDetails } from "@app/hooks/api/certificateProfiles";
+
+type Props = {
+ profile: TCertificateProfileWithDetails;
+};
+
+export const ProfilePolicySection = ({ profile }: Props) => {
+ const { currentOrg } = useOrganization();
+ const { currentProject } = useProject();
+
+ return (
+ <Card className="mt-4 w-full">
+ <CardHeader className="border-b">
+ <CardTitle>Certificate Policy</CardTitle>
+ <CardDescription>Rules applied to certificates issued by this profile</CardDescription>
+ </CardHeader>
+ <CardContent>
+ <DetailGroup>
+ <Detail className="min-w-0">
+ <DetailLabel>Policy</DetailLabel>
+ <DetailValue className="flex min-w-0 max-w-full">
+ <Badge variant="neutral" isTruncatable className="max-w-full" asChild>
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ policyId: profile.certificatePolicyId
+ }}
+ search={{ from: "profile", profileId: profile.id }}
+ >
+ <span className="min-w-0">
+ {profile.certificatePolicy?.name || profile.certificatePolicyId}
+ </span>
+ <ExternalLinkIcon />
+ </Link>
+ </Badge>
+ </DetailValue>
+ </Detail>
+
+ {profile.certificatePolicy?.description && (
+ <Detail>
+ <DetailLabel>Description</DetailLabel>
+ <DetailValue>{profile.certificatePolicy.description}</DetailValue>
+ </Detail>
+ )}
+ </DetailGroup>
+ </CardContent>
+ </Card>
+ );
+};
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/index.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/index.tsx
new file mode 100644
index 0000000000..63966e9d7e
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/components/index.tsx
@@ -0,0 +1,4 @@
+export { ProfileDefaultsSection } from "./ProfileDefaultsSection";
+export { ProfileDetailsSection } from "./ProfileDetailsSection";
+export { ProfileIssuerSection } from "./ProfileIssuerSection";
+export { ProfilePolicySection } from "./ProfilePolicySection";
diff --git a/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/route.tsx b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/route.tsx
new file mode 100644
index 0000000000..893b4cf48e
--- /dev/null
+++ b/frontend/src/pages/cert-manager/CertificateProfileDetailsByIDPage/route.tsx
@@ -0,0 +1,38 @@
+import { createFileRoute, linkOptions } from "@tanstack/react-router";
+import { zodValidator } from "@tanstack/zod-adapter";
+import { z } from "zod";
+
+import { CertificateProfileDetailsByIDPage } from "./CertificateProfileDetailsByIDPage";
+
+const profileDetailsSearchSchema = z.object({
+ from: z.enum(["settings", "application"]).optional(),
+ applicationName: z.string().optional()
+});
+
+export const Route = createFileRoute(
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId"
+)({
+ component: CertificateProfileDetailsByIDPage,
+ validateSearch: zodValidator(profileDetailsSearchSchema),
+ beforeLoad: ({ context, params }) => {
+ return {
+ breadcrumbs: [
+ ...context.breadcrumbs,
+ {
+ label: "Certificate Profiles",
+ link: linkOptions({
+ to: "/organizations/$orgId/projects/cert-manager/$projectId/settings",
+ params: {
+ orgId: params.orgId,
+ projectId: params.projectId
+ },
+ search: { selectedTab: "certificate-profiles" }
+ })
+ },
+ {
+ label: params.profileId
+ }
+ ]
+ };
+ }
+});
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/PolicyList.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/PolicyList.tsx
index 51bfad86fc..a66d7f27ae 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/PolicyList.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/PolicyList.tsx
@@ -9,6 +9,7 @@ import {
faTrash
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { Link } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
import { ProjectPermissionCan } from "@app/components/permissions";
@@ -32,7 +33,7 @@ import {
TableHeader,
TableRow
} from "@app/components/v3";
-import { useProject } from "@app/context";
+import { useOrganization, useProject } from "@app/context";
import {
ProjectPermissionCertificatePolicyActions,
ProjectPermissionSub
@@ -47,6 +48,7 @@ interface Props {
export const PolicyList = ({ onEditPolicy, onDeletePolicy }: Props) => {
const { currentProject } = useProject();
+ const { currentOrg } = useOrganization();
const [isIdCopied, setIsIdCopied] = useToggle(false);
const { data, isLoading } = useListCertificatePolicies({
@@ -114,7 +116,17 @@ export const PolicyList = ({ onEditPolicy, onDeletePolicy }: Props) => {
<TableRow key={policy.id}>
<TableCell>
<div className="flex items-center gap-2">
- <div className="text-mineshaft-200">{policy.name}</div>
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ policyId: policy.id
+ }}
+ className="text-mineshaft-200 hover:text-primary-400"
+ >
+ {policy.name}
+ </Link>
{policy.description && (
<Tooltip content={policy.description}>
<FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx
index d48d2fa6e4..dc2f492aaf 100644
--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx
+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/ProfileRow.tsx
@@ -10,6 +10,7 @@ import {
faTrash
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
+import { Link } from "@tanstack/react-router";
import { createNotification } from "@app/components/notifications";
import { ProjectPermissionCan } from "@app/components/permissions";
@@ -21,6 +22,7 @@ import {
Tooltip
} from "@app/components/v2";
import { TableCell, TableRow } from "@app/components/v3";
+import { useOrganization, useProject } from "@app/context";
import {
ProjectPermissionCertificateProfileActions,
ProjectPermissionSub
@@ -37,6 +39,8 @@ interface Props {
}
export const ProfileRow = ({ profile, onEditProfile, onDeleteProfile }: Props) => {
+ const { currentOrg } = useOrganization();
+ const { currentProject } = useProject();
const isInternalCa = !profile.certificateAuthority?.isExternal;
const { data: caData } = useGetInternalCaById(isInternalCa ? (profile.caId ?? "") : "");
@@ -62,7 +66,17 @@ export const ProfileRow = ({ profile, onEditProfile, onDeleteProfile }: Props) =
<TableRow key={profile.id}>
<TableCell>
<div className="flex items-center gap-2">
- <div className="text-mineshaft-300">{profile.slug}</div>
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ profileId: profile.id
+ }}
+ className="text-mineshaft-300 hover:text-primary-400"
+ >
+ {profile.slug}
+ </Link>
{profile.description && (
<Tooltip content={profile.description}>
<FontAwesomeIcon icon={faCircleInfo} className="text-mineshaft-400" />
@@ -82,9 +96,17 @@ export const ProfileRow = ({ profile, onEditProfile, onDeleteProfile }: Props) =
</span>
</TableCell>
<TableCell>
- <span className="text-sm text-mineshaft-300">
+ <Link
+ to="/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId"
+ params={{
+ orgId: currentOrg.id,
+ projectId: currentProject.id,
+ policyId: profile.certificatePolicyId
+ }}
+ className="text-sm text-mineshaft-300 hover:text-primary-400"
+ >
{policyData?.name || profile.certificatePolicyId}
- </span>
+ </Link>
</TableCell>
<TableCell className="text-right">
<DropdownMenu>
diff --git a/frontend/src/routeTree.gen.ts b/frontend/src/routeTree.gen.ts
index 13a98b3153..fcd4cf5429 100644
--- a/frontend/src/routeTree.gen.ts
+++ b/frontend/src/routeTree.gen.ts
@@ -170,6 +170,8 @@ import { Route as certManagerPkiSyncDetailsByIDPageRouteImport } from './pages/c
import { Route as certManagerDiscoveryDetailsByIDPageRouteImport } from './pages/cert-manager/DiscoveryDetailsByIDPage/route'
import { Route as certManagerSignerDetailPageRouteImport } from './pages/cert-manager/SignerDetailPage/route'
import { Route as certManagerCertificateDetailsByIDPageRouteImport } from './pages/cert-manager/CertificateDetailsByIDPage/route'
+import { Route as certManagerCertificateProfileDetailsByIDPageRouteImport } from './pages/cert-manager/CertificateProfileDetailsByIDPage/route'
+import { Route as certManagerCertificatePolicyDetailsByIDPageRouteImport } from './pages/cert-manager/CertificatePolicyDetailsByIDPage/route'
import { Route as certManagerCertAuthDetailsByIDPageRouteImport } from './pages/cert-manager/CertAuthDetailsByIDPage/route'
import { Route as certManagerApprovalRequestDetailPageRouteImport } from './pages/cert-manager/ApprovalRequestDetailPage/route'
import { Route as certManagerApplicationDetailsByIDPageRouteImport } from './pages/cert-manager/ApplicationDetailsByIDPage/route'
@@ -1801,6 +1803,20 @@ const certManagerCertificateDetailsByIDPageRouteRoute =
getParentRoute: () => certManagerLayoutRoute,
} as any)
+const certManagerCertificateProfileDetailsByIDPageRouteRoute =
+ certManagerCertificateProfileDetailsByIDPageRouteImport.update({
+ id: '/certificate-profiles/$profileId',
+ path: '/certificate-profiles/$profileId',
+ getParentRoute: () => certManagerLayoutRoute,
+ } as any)
+
+const certManagerCertificatePolicyDetailsByIDPageRouteRoute =
+ certManagerCertificatePolicyDetailsByIDPageRouteImport.update({
+ id: '/certificate-policies/$policyId',
+ path: '/certificate-policies/$policyId',
+ getParentRoute: () => certManagerLayoutRoute,
+ } as any)
+
const certManagerCertAuthDetailsByIDPageRouteRoute =
certManagerCertAuthDetailsByIDPageRouteImport.update({
id: '/ca/$caId',
@@ -3873,6 +3889,20 @@ declare module '@tanstack/react-router' {
preLoaderRoute: typeof certManagerCertAuthDetailsByIDPageRouteImport
parentRoute: typeof certManagerLayoutImport
}
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId'
+ path: '/certificate-policies/$policyId'
+ fullPath: '/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId'
+ preLoaderRoute: typeof certManagerCertificatePolicyDetailsByIDPageRouteImport
+ parentRoute: typeof certManagerLayoutImport
+ }
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId': {
+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId'
+ path: '/certificate-profiles/$profileId'
+ fullPath: '/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId'
+ preLoaderRoute: typeof certManagerCertificateProfileDetailsByIDPageRouteImport
+ parentRoute: typeof certManagerLayoutImport
+ }
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId': {
id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId'
path: '/certificates/$certificateId'
@@ -5039,6 +5069,8 @@ interface certManagerLayoutRouteChildren {
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutIntegrationsRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutIntegrationsRouteWithChildren
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersRouteWithChildren
certManagerCertAuthDetailsByIDPageRouteRoute: typeof certManagerCertAuthDetailsByIDPageRouteRoute
+ certManagerCertificatePolicyDetailsByIDPageRouteRoute: typeof certManagerCertificatePolicyDetailsByIDPageRouteRoute
+ certManagerCertificateProfileDetailsByIDPageRouteRoute: typeof certManagerCertificateProfileDetailsByIDPageRouteRoute
certManagerCertificateDetailsByIDPageRouteRoute: typeof certManagerCertificateDetailsByIDPageRouteRoute
projectGroupDetailsByIDPageRouteCertManagerRoute: typeof projectGroupDetailsByIDPageRouteCertManagerRoute
projectIdentityDetailsByIDPageRouteCertManagerRoute: typeof projectIdentityDetailsByIDPageRouteCertManagerRoute
@@ -5080,6 +5112,10 @@ const certManagerLayoutRouteChildren: certManagerLayoutRouteChildren = {
AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsCertManagerProjectIdCertManagerLayoutSubscribersRouteWithChildren,
certManagerCertAuthDetailsByIDPageRouteRoute:
certManagerCertAuthDetailsByIDPageRouteRoute,
+ certManagerCertificatePolicyDetailsByIDPageRouteRoute:
+ certManagerCertificatePolicyDetailsByIDPageRouteRoute,
+ certManagerCertificateProfileDetailsByIDPageRouteRoute:
+ certManagerCertificateProfileDetailsByIDPageRouteRoute,
certManagerCertificateDetailsByIDPageRouteRoute:
certManagerCertificateDetailsByIDPageRouteRoute,
projectGroupDetailsByIDPageRouteCertManagerRoute:
@@ -6355,6 +6391,8 @@ export interface FileRoutesByFullPath {
'/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName': typeof certManagerApplicationDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId': typeof certManagerApprovalRequestDetailPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId': typeof certManagerCertificatePolicyDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId': typeof certManagerCertificateProfileDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId': typeof certManagerSignerDetailPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/discovery/$discoveryId': typeof certManagerDiscoveryDetailsByIDPageRouteRoute
@@ -6623,6 +6661,8 @@ export interface FileRoutesByTo {
'/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName': typeof certManagerApplicationDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId': typeof certManagerApprovalRequestDetailPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId': typeof certManagerCertificatePolicyDetailsByIDPageRouteRoute
+ '/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId': typeof certManagerCertificateProfileDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId': typeof certManagerSignerDetailPageRouteRoute
'/organizations/$orgId/projects/cert-manager/$projectId/discovery/$discoveryId': typeof certManagerDiscoveryDetailsByIDPageRouteRoute
@@ -6921,6 +6961,8 @@ export interface FileRoutesById {
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications/$applicationName': typeof certManagerApplicationDetailsByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals/$approvalRequestId': typeof certManagerApprovalRequestDetailPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/ca/$caId': typeof certManagerCertAuthDetailsByIDPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId': typeof certManagerCertificatePolicyDetailsByIDPageRouteRoute
+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId': typeof certManagerCertificateProfileDetailsByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId': typeof certManagerCertificateDetailsByIDPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/code-signing/$signerId': typeof certManagerSignerDetailPageRouteRoute
'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/discovery/$discoveryId': typeof certManagerDiscoveryDetailsByIDPageRouteRoute
@@ -7214,6 +7256,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName'
| '/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId'
| '/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId'
+ | '/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId'
+ | '/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId'
| '/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId'
| '/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId'
| '/organizations/$orgId/projects/cert-manager/$projectId/discovery/$discoveryId'
@@ -7481,6 +7525,8 @@ export interface FileRouteTypes {
| '/organizations/$orgId/projects/cert-manager/$projectId/applications/$applicationName'
| '/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId'
| '/organizations/$orgId/projects/cert-manager/$projectId/ca/$caId'
+ | '/organizations/$orgId/projects/cert-manager/$projectId/certificate-policies/$policyId'
+ | '/organizations/$orgId/projects/cert-manager/$projectId/certificate-profiles/$profileId'
| '/organizations/$orgId/projects/cert-manager/$projectId/certificates/$certificateId'
| '/organizations/$orgId/projects/cert-manager/$projectId/code-signing/$signerId'
| '/organizations/$orgId/projects/cert-manager/$projectId/discovery/$discoveryId'
@@ -7777,6 +7823,8 @@ export interface FileRouteTypes {
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/applications/$applicationName'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/approvals/$approvalRequestId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/ca/$caId'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId'
+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/code-signing/$signerId'
| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/discovery/$discoveryId'
@@ -8453,6 +8501,8 @@ export const routeTree = rootRoute
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/integrations",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/subscribers",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/ca/$caId",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId",
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/groups/$groupId",
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/identities/$identityId",
@@ -8991,6 +9041,14 @@ export const routeTree = rootRoute
"filePath": "cert-manager/CertAuthDetailsByIDPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"
},
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-policies/$policyId": {
+ "filePath": "cert-manager/CertificatePolicyDetailsByIDPage/route.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"
+ },
+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificate-profiles/$profileId": {
+ "filePath": "cert-manager/CertificateProfileDetailsByIDPage/route.tsx",
+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"
+ },
"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout/certificates/$certificateId": {
"filePath": "cert-manager/CertificateDetailsByIDPage/route.tsx",
"parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout"
diff --git a/frontend/src/routes.ts b/frontend/src/routes.ts
index 9392fa3e4f..1d7e84210c 100644
--- a/frontend/src/routes.ts
+++ b/frontend/src/routes.ts
@@ -304,6 +304,14 @@ const certManagerRoutes = route("/organizations/$orgId/projects/cert-manager/$pr
route("/$approvalRequestId", "cert-manager/ApprovalRequestDetailPage/route.tsx")
]),
route("/ca/$caId", "cert-manager/CertAuthDetailsByIDPage/route.tsx"),
+ route(
+ "/certificate-profiles/$profileId",
+ "cert-manager/CertificateProfileDetailsByIDPage/route.tsx"
+ ),
+ route(
+ "/certificate-policies/$policyId",
+ "cert-manager/CertificatePolicyDetailsByIDPage/route.tsx"
+ ),
route("/certificates/$certificateId", "cert-manager/CertificateDetailsByIDPage/route.tsx"),
route("/pki-collections/$collectionId", "cert-manager/PkiCollectionDetailsByIDPage/routes.tsx"),
route("/integrations", [