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
misc: more patches
Sheen Capadnganaf584e1475b4
diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsxindex b0c1f11b70..97222f7498 100644--- a/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx+++ b/frontend/src/pages/cert-manager/ApplicationsPage/components/ConfigureProfilesModal.tsx@@ -1,4 +1,5 @@import { useEffect, useMemo, useState } from "react";+import { Link, useParams } from "@tanstack/react-router";import { createNotification } from "@app/components/notifications";import {@@ -28,7 +29,10 @@ type Props = {};export const ConfigureProfilesModal = ({ application, isOpen, onOpenChange }: Props) => {- const { data: profilesData } = useListCertificateProfiles({ limit: 100 });+ const { projectId, orgId } = useParams({ strict: false });+ const { data: profilesData, isPending: profilesLoading } = useListCertificateProfiles({+ limit: 100+ });const { data: attachedProfiles } = useListPkiApplicationProfiles(application?.id ?? "");const attachProfiles = useAttachPkiApplicationProfiles();@@ -102,6 +106,19 @@ export const ConfigureProfilesModal = ({ application, isOpen, onOpenChange }: Proptions={profileOptions}placeholder="Select profiles..."/>+ {!profilesLoading && !profileOptions.length && (+ <p className="mt-3 text-xs text-yellow-500">+ No certificate profiles available.{" "}+ <Link+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"+ params={{ orgId: orgId ?? "", projectId: projectId ?? "" }}+ search={{ selectedTab: "certificate-profiles" }}+ className="underline hover:text-yellow-400"+ >+ Create one in Settings+ </Link>+ </p>+ )}</div><DialogFooter><Button variant="ghost" onClick={() => onOpenChange(false)}>diff --git a/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx b/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsxindex 8656e99c3f..8316fb8fbd 100644--- a/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx+++ b/frontend/src/pages/cert-manager/ApplicationsPage/components/PkiApplicationModal.tsx@@ -1,6 +1,7 @@import { useEffect, useMemo } from "react";import { Controller, useForm } from "react-hook-form";import { zodResolver } from "@hookform/resolvers/zod";+import { Link, useParams } from "@tanstack/react-router";import { z } from "zod";import { createNotification } from "@app/components/notifications";@@ -50,11 +51,14 @@ type Props = {};export const PkiApplicationModal = ({ popUp, handlePopUpToggle }: Props) => {+ const { projectId, orgId } = useParams({ strict: false });const editing = (popUp?.application?.data as TPkiApplication | undefined) ?? null;const create = useCreatePkiApplication();const update = useUpdatePkiApplication();- const { data: profilesData } = useListCertificateProfiles({ limit: 100 });+ const { data: profilesData, isPending: profilesLoading } = useListCertificateProfiles({+ limit: 100+ });const profileOptions = useMemo(() =>@@ -175,16 +179,26 @@ export const PkiApplicationModal = ({ popUp, handlePopUpToggle }: Props) => {placeholder="Select profiles to attach..."/></FieldContent>- <FieldDescription>- Optionally attach existing profiles now. You can change this later.- </FieldDescription>+ {!profilesLoading && !profileOptions.length && (+ <FieldDescription className="text-yellow-500">+ No certificate profiles available.{" "}+ <Link+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"+ params={{ orgId: orgId ?? "", projectId: projectId ?? "" }}+ search={{ selectedTab: "certificate-profiles" }}+ className="underline hover:text-yellow-400"+ >+ Create one in Settings+ </Link>+ </FieldDescription>+ )}{error ? <FieldError>{error.message}</FieldError> : null}</Field>)}/>) : null}- <DialogFooter>+ <DialogFooter className="mt-4"><Buttontype="button"variant="ghost"diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsxindex 8ce4552509..643111aab6 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningGrantsTab/CodeSigningGrantsTab.tsx@@ -3,12 +3,8 @@ import { useForm } from "react-hook-form";import {faCheckCircle,faChevronRight,- faEllipsisV,- faFileCircleQuestion,faFilter,faInfo,- faMagnifyingGlass,- faSearch,faXmark} from "@fortawesome/free-solid-svg-icons";import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";@@ -16,6 +12,7 @@ import { zodResolver } from "@hookform/resolvers/zod";import { useQuery } from "@tanstack/react-query";import { Link } from "@tanstack/react-router";import { format } from "date-fns";+import { MoreHorizontalIcon, SearchIcon } from "lucide-react";import { twMerge } from "tailwind-merge";import { z } from "zod";@@ -30,25 +27,35 @@ import {DropdownSubMenu,DropdownSubMenuContent,DropdownSubMenuTrigger,- EmptyState,FormControl,- IconButton,- Input,Modal,ModalContent,+ TextArea+} from "@app/components/v2";+import {+ Badge,+ Card,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle,+ Empty,+ EmptyDescription,+ EmptyHeader,+ EmptyTitle,+ IconButton,+ InputGroup,+ InputGroupAddon,+ InputGroupInput,Pagination,+ Skeleton,Table,- TableContainer,- TableSkeleton,- TBody,- Td,- TextArea,- Th,- THead,- Tooltip,- Tr-} from "@app/components/v2";-import { Badge } from "@app/components/v3";+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow+} from "@app/components/v3";import { useOrganization, useProject } from "@app/context";import { getMemberLabel } from "@app/helpers/members";import { usePagination } from "@app/hooks";@@ -203,25 +210,20 @@ export const CodeSigningGrantsTab = () => {const isTableFiltered = filter !== ApprovalGrantStatus.Active;return (- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">- <div className="mb-4">- <div className="flex items-center gap-x-2">- <p className="text-xl font-medium text-mineshaft-100">Signing Grants</p>- </div>- <p className="text-sm text-bunker-300">View and revoke signing access grants</p>- </div>- <div>- <div className="flex gap-2">+ <Card className="mb-6">+ <CardHeader>+ <CardTitle>Signing Grants</CardTitle>+ <CardDescription>View and revoke signing access grants</CardDescription>+ </CardHeader>+ <CardContent>+ <div className="mb-4 flex items-center gap-2"><DropdownMenu><DropdownMenuTrigger asChild><IconButton- ariaLabel="Filter Grants"- variant="plain"- size="sm"- className={twMerge(- "flex h-9.5 w-[2.6rem] items-center justify-center overflow-hidden border border-mineshaft-600 bg-mineshaft-800 p-0 transition-all hover:border-primary/60 hover:bg-primary/10",- isTableFiltered && "border-primary/50 text-primary"- )}+ aria-label="Filter Grants"+ variant={isTableFiltered ? "project" : "outline"}+ size="md"+ className={twMerge(isTableFiltered && "text-primary")}><FontAwesomeIcon icon={faFilter} /></IconButton>@@ -283,176 +285,188 @@ export const CodeSigningGrantsTab = () => {</DropdownSubMenu></DropdownMenuContent></DropdownMenu>- <Input- value={search}- onChange={(e) => setSearch(e.target.value)}- leftIcon={<FontAwesomeIcon icon={faMagnifyingGlass} />}- placeholder="Search signing grants..."- />+ <InputGroup className="flex-1">+ <InputGroupAddon>+ <SearchIcon />+ </InputGroupAddon>+ <InputGroupInput+ value={search}+ onChange={(e) => setSearch(e.target.value)}+ placeholder="Search signing grants..."+ />+ </InputGroup></div>- <TableContainer className="mt-4">- <Table>- <THead>- <Tr>- <Th>Grantee</Th>- <Th>Signer</Th>- <Th>Status</Th>- <Th>Granted</Th>- <Th>Expires</Th>- <Th className="w-5" />- </Tr>- </THead>- <TBody>- {isGrantsLoading && <TableSkeleton columns={6} innerKey="cs-grants" />}- {!isGrantsLoading &&- paginatedGrants.map((grant) => {- const attrs = grant.attributes as CodeSigningGrantAttributes;- const isActive = grant.status === ApprovalGrantStatus.Active;+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Grantee</TableHead>+ <TableHead>Signer</TableHead>+ <TableHead>Status</TableHead>+ <TableHead>Granted</TableHead>+ <TableHead>Expires</TableHead>+ <TableHead className="w-5" />+ </TableRow>+ </TableHeader>+ <TableBody>+ {isGrantsLoading &&+ Array.from({ length: 5 }).map((_, i) => (+ <TableRow key={`grant-skeleton-${i + 1}`}>+ {Array.from({ length: 6 }).map((__, j) => (+ <TableCell key={`grant-skeleton-cell-${j + 1}`}>+ <Skeleton className="h-4 w-full" />+ </TableCell>+ ))}+ </TableRow>+ ))}+ {!isGrantsLoading &&+ paginatedGrants.map((grant) => {+ const attrs = grant.attributes as CodeSigningGrantAttributes;+ const isActive = grant.status === ApprovalGrantStatus.Active;- return (- <Tr key={grant.id} className="group">- <Td>{getGranteeName(grant)}</Td>- <Td>- <span className="text-sm text-mineshaft-200">- {attrs.signerName || "-"}- </span>- </Td>- <Td>- <Badge- variant={- isActive- ? getStatusBadgeColor(ApprovalGrantStatus.Active)- : getStatusBadgeColor(grant.status)- }- className="capitalize"- >- {isActive ? "Active" : grant.status}- </Badge>- </Td>- <Td>+ return (+ <TableRow key={grant.id} className="group">+ <TableCell>{getGranteeName(grant)}</TableCell>+ <TableCell>+ <span className="text-sm text-mineshaft-200">{attrs.signerName || "-"}</span>+ </TableCell>+ <TableCell>+ <Badge+ variant={+ isActive+ ? getStatusBadgeColor(ApprovalGrantStatus.Active)+ : getStatusBadgeColor(grant.status)+ }+ className="capitalize"+ >+ {isActive ? "Active" : grant.status}+ </Badge>+ </TableCell>+ <TableCell>+ <span className="text-sm text-mineshaft-400">+ {format(new Date(grant.createdAt), "MMM d, yyyy")}+ </span>+ </TableCell>+ <TableCell>+ {grant.expiresAt ? (<span className="text-sm text-mineshaft-400">- {format(new Date(grant.createdAt), "MMM d, yyyy")}+ {format(new Date(grant.expiresAt), "MMM d, yyyy")}</span>- </Td>- <Td>- {grant.expiresAt ? (- <span className="text-sm text-mineshaft-400">- {format(new Date(grant.expiresAt), "MMM d, yyyy")}- </span>- ) : (- <span className="text-sm text-mineshaft-500">Never</span>- )}- </Td>- <Td- onClick={(e) => {- e.stopPropagation();- }}- >- {isActive && (- <DropdownMenu>- <DropdownMenuTrigger asChild className="rounded-lg">- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">- <Tooltip content="More options">- <IconButton- ariaLabel="More options"- variant="plain"- className="w-4 p-0"- size="md"- >- <FontAwesomeIcon icon={faEllipsisV} />- </IconButton>- </Tooltip>- </div>- </DropdownMenuTrigger>- <DropdownMenuContent align="end" className="p-1" sideOffset={5}>- {grant.requestId && (- <Link- to="/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId"- params={{- orgId: currentOrg.id,- projectId: currentProject.id,- approvalRequestId: grant.requestId- }}- search={{- policyType: ApprovalPolicyType.CertCodeSigning- }}- >- <DropdownMenuItem icon={<FontAwesomeIcon icon={faInfo} />}>- Request Details- </DropdownMenuItem>- </Link>- )}- <DropdownMenuItem- onClick={(e) => {- e.stopPropagation();- openRevokeModal(grant.id);+ ) : (+ <span className="text-sm text-mineshaft-500">Never</span>+ )}+ </TableCell>+ <TableCell+ onClick={(e) => {+ e.stopPropagation();+ }}+ >+ {isActive && (+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton variant="ghost" size="xs" aria-label="More options">+ <MoreHorizontalIcon />+ </IconButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" className="p-1" sideOffset={5}>+ {grant.requestId && (+ <Link+ to="/organizations/$orgId/projects/cert-manager/$projectId/approvals/$approvalRequestId"+ params={{+ orgId: currentOrg.id,+ projectId: currentProject.id,+ approvalRequestId: grant.requestId+ }}+ search={{+ policyType: ApprovalPolicyType.CertCodeSigning}}- icon={<FontAwesomeIcon icon={faXmark} />}>- Revoke Grant- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- )}- </Td>- </Tr>- );- })}- </TBody>- </Table>- {Boolean(filteredGrants.length) && (- <Pagination- count={filteredGrants.length}- page={page}- perPage={perPage}- onChangePage={setPage}- onChangePerPage={setPerPage}- />- )}- {!isGrantsLoading && !filteredGrants?.length && (- <EmptyState- title={- grants.length ? "No signing grants match search..." : "No signing grants found"- }- icon={grants.length ? faSearch : faFileCircleQuestion}- />- )}- </TableContainer>+ <DropdownMenuItem icon={<FontAwesomeIcon icon={faInfo} />}>+ Request Details+ </DropdownMenuItem>+ </Link>+ )}+ <DropdownMenuItem+ onClick={(e) => {+ e.stopPropagation();+ openRevokeModal(grant.id);+ }}+ icon={<FontAwesomeIcon icon={faXmark} />}+ >+ Revoke Grant+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ )}+ </TableCell>+ </TableRow>+ );+ })}+ {!isGrantsLoading && !filteredGrants?.length && (+ <TableRow>+ <td colSpan={6} className="p-0">+ <Empty className="border-none">+ <EmptyHeader>+ <EmptyTitle>+ {grants.length+ ? "No signing grants match search..."+ : "No signing grants found"}+ </EmptyTitle>+ <EmptyDescription>+ {grants.length+ ? "Try adjusting your search or filters"+ : "Grants will appear here when users are granted signing access"}+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ </td>+ </TableRow>+ )}+ </TableBody>+ </Table>+ {Boolean(filteredGrants.length) && (+ <Pagination+ count={filteredGrants.length}+ page={page}+ perPage={perPage}+ onChangePage={setPage}+ onChangePerPage={setPerPage}+ />+ )}+ </CardContent>- <Modal isOpen={revokeModalOpen} onOpenChange={(open) => !open && closeRevokeModal()}>- <ModalContent- title="Revoke Signing Grant"- subTitle="Are you sure you want to revoke this signing grant? This action cannot be undone."- >- <form onSubmit={handleSubmit(handleRevokeGrant)}>- <FormControl- label="Revocation Reason (Optional)"- isError={Boolean(errors.revocationReason)}- errorText={errors.revocationReason?.message}+ <Modal isOpen={revokeModalOpen} onOpenChange={(open) => !open && closeRevokeModal()}>+ <ModalContent+ title="Revoke Signing Grant"+ subTitle="Are you sure you want to revoke this signing grant? This action cannot be undone."+ >+ <form onSubmit={handleSubmit(handleRevokeGrant)}>+ <FormControl+ label="Revocation Reason (Optional)"+ isError={Boolean(errors.revocationReason)}+ errorText={errors.revocationReason?.message}+ >+ <TextArea+ {...register("revocationReason")}+ placeholder="Provide a reason for revoking this grant..."+ rows={4}+ />+ </FormControl>+ <div className="mt-6 flex items-center space-x-4">+ <Button+ colorSchema="danger"+ type="submit"+ isLoading={isRevoking}+ isDisabled={isRevoking}>- <TextArea- {...register("revocationReason")}- placeholder="Provide a reason for revoking this grant..."- rows={4}- />- </FormControl>- <div className="mt-6 flex items-center space-x-4">- <Button- colorSchema="danger"- type="submit"- isLoading={isRevoking}- isDisabled={isRevoking}- >- Revoke Grant- </Button>- <Button variant="outline_bg" onClick={closeRevokeModal} isDisabled={isRevoking}>- Cancel- </Button>- </div>- </form>- </ModalContent>- </Modal>- </div>- </div>+ Revoke Grant+ </Button>+ <Button variant="outline_bg" onClick={closeRevokeModal} isDisabled={isRevoking}>+ Cancel+ </Button>+ </div>+ </form>+ </ModalContent>+ </Modal>+ </Card>);};diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsxindex 27aeb1c3a2..cec3cd9ada 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/CodeSigningPolicyTab.tsx@@ -1,9 +1,17 @@-import { faPlus } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";+import { PlusIcon } from "lucide-react";import { createNotification } from "@app/components/notifications";import { PermissionDeniedBanner } from "@app/components/permissions";-import { Button, DeleteActionModal } from "@app/components/v2";+import { DeleteActionModal } from "@app/components/v2";+import {+ Button,+ Card,+ CardAction,+ CardContent,+ CardDescription,+ CardHeader,+ CardTitle+} from "@app/components/v3";import { useProject, useProjectPermission } from "@app/context";import { usePopUp } from "@app/hooks";import { ApprovalPolicyType, useDeleteApprovalPolicy } from "@app/hooks/api/approvalPolicies";@@ -48,28 +56,22 @@ export const CodeSigningPolicyTab = () => {};return (- <div className="mb-6 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">- <div className="mb-4 flex items-center">- <div className="flex-1">- <div className="flex items-center gap-x-2">- <p className="text-xl font-medium text-mineshaft-100">Signing Policies</p>- </div>- <p className="text-sm text-bunker-300">- Define policies that require approval before signing operations- </p>- </div>-- <Button- variant="outline_bg"- type="submit"- leftIcon={<FontAwesomeIcon icon={faPlus} />}- onClick={() => handlePopUpOpen("policy")}- >- Create Policy- </Button>- </div>-- <CodeSigningPoliciesTable handlePopUpOpen={handlePopUpOpen} />+ <Card className="mb-6">+ <CardHeader>+ <CardTitle>Signing Policies</CardTitle>+ <CardDescription>+ Define policies that require approval before signing operations+ </CardDescription>+ <CardAction>+ <Button variant="outline" onClick={() => handlePopUpOpen("policy")}>+ <PlusIcon />+ Create Policy+ </Button>+ </CardAction>+ </CardHeader>+ <CardContent>+ <CodeSigningPoliciesTable handlePopUpOpen={handlePopUpOpen} />+ </CardContent><CodeSigningPolicyModal popUp={popUp} handlePopUpToggle={handlePopUpToggle} /><DeleteActionModalisOpen={popUp.deletePolicy.isOpen}@@ -78,6 +80,6 @@ export const CodeSigningPolicyTab = () => {onChange={(isOpen) => handlePopUpToggle("deletePolicy", isOpen)}onDeleteApproved={handleDeletePolicy}/>- </div>+ </Card>);};diff --git a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/components/CodeSigningPoliciesTable.tsx b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/components/CodeSigningPoliciesTable.tsxindex fbd11f1ddd..80ad7b1f9c 100644--- a/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/components/CodeSigningPoliciesTable.tsx+++ b/frontend/src/pages/cert-manager/ApprovalsPage/components/CodeSigningPolicyTab/components/CodeSigningPoliciesTable.tsx@@ -1,31 +1,26 @@import { useMemo } from "react";-import {- faEdit,- faEllipsisV,- faFileCircleQuestion,- faTrash-} from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { useQuery } from "@tanstack/react-query";import { format } from "date-fns";+import { MoreHorizontalIcon, PencilIcon, Trash2Icon } from "lucide-react";import {DropdownMenu,DropdownMenuContent,DropdownMenuItem,DropdownMenuTrigger,- EmptyState,+ Empty,+ EmptyDescription,+ EmptyHeader,+ EmptyTitle,IconButton,+ Skeleton,Table,- TableContainer,- TableSkeleton,- TBody,- Td,- Th,- THead,- Tooltip,- Tr-} from "@app/components/v2";+ TableBody,+ TableCell,+ TableHead,+ TableHeader,+ TableRow+} from "@app/components/v3";import { useProject } from "@app/context";import {approvalPolicyQuery,@@ -61,73 +56,83 @@ export const CodeSigningPoliciesTable = ({ handlePopUpOpen }: Props) => {}, [policies]);return (- <TableContainer>- <Table>- <THead>- <Tr>- <Th>Policy Name</Th>- <Th>Approval Steps</Th>- <Th>Created</Th>- <Th className="w-5" />- </Tr>- </THead>- <TBody>- {isPoliciesLoading && <TableSkeleton columns={4} innerKey="cs-approval-policies" />}- {!isPoliciesLoading &&- sortedPolicies.map((policy) => (- <Tr key={policy.id} className="group">- <Td>- <div className="text-sm font-medium text-mineshaft-100">{policy.name}</div>- </Td>- <Td>- <span className="text-sm text-mineshaft-200">- {policy.steps.length} step{policy.steps.length !== 1 ? "s" : ""}- </span>- </Td>- <Td>- <span className="text-sm text-mineshaft-400">- {format(new Date(policy.createdAt), "MMM d, yyyy")}- </span>- </Td>- <Td>- <DropdownMenu>- <DropdownMenuTrigger asChild className="rounded-lg">- <div className="hover:text-primary-400 data-[state=open]:text-primary-400">- <Tooltip content="More options">- <IconButton- ariaLabel="More options"- variant="plain"- className="w-4 p-0"- size="md"- >- <FontAwesomeIcon icon={faEllipsisV} />- </IconButton>- </Tooltip>- </div>- </DropdownMenuTrigger>- <DropdownMenuContent align="end" className="p-1" sideOffset={5}>- <DropdownMenuItem- onClick={() => handlePopUpOpen("policy", { policyId: policy.id, policy })}- icon={<FontAwesomeIcon icon={faEdit} />}- >- Edit Policy- </DropdownMenuItem>- <DropdownMenuItem- onClick={() => handlePopUpOpen("deletePolicy", { policyId: policy.id })}- icon={<FontAwesomeIcon icon={faTrash} />}- >- Delete Policy- </DropdownMenuItem>- </DropdownMenuContent>- </DropdownMenu>- </Td>- </Tr>- ))}- </TBody>- </Table>- {!isPoliciesLoading && !sortedPolicies.length && (- <EmptyState title="No signing policies found" icon={faFileCircleQuestion} />- )}- </TableContainer>+ <Table>+ <TableHeader>+ <TableRow>+ <TableHead>Policy Name</TableHead>+ <TableHead>Approval Steps</TableHead>+ <TableHead>Created</TableHead>+ <TableHead className="w-5" />+ </TableRow>+ </TableHeader>+ <TableBody>+ {isPoliciesLoading &&+ Array.from({ length: 3 }).map((_, i) => (+ <TableRow key={`policy-skeleton-${i + 1}`}>+ {Array.from({ length: 4 }).map((__, j) => (+ <TableCell key={`policy-skeleton-cell-${j + 1}`}>+ <Skeleton className="h-4 w-full" />+ </TableCell>+ ))}+ </TableRow>+ ))}+ {!isPoliciesLoading &&+ sortedPolicies.map((policy) => (+ <TableRow key={policy.id} className="group">+ <TableCell>+ <div className="text-sm font-medium text-foreground">{policy.name}</div>+ </TableCell>+ <TableCell>+ <span className="text-sm text-accent">+ {policy.steps.length} step{policy.steps.length !== 1 ? "s" : ""}+ </span>+ </TableCell>+ <TableCell>+ <span className="text-sm text-accent">+ {format(new Date(policy.createdAt), "MMM d, yyyy")}+ </span>+ </TableCell>+ <TableCell>+ <DropdownMenu>+ <DropdownMenuTrigger asChild>+ <IconButton variant="ghost" size="xs" aria-label="More options">+ <MoreHorizontalIcon />+ </IconButton>+ </DropdownMenuTrigger>+ <DropdownMenuContent align="end" sideOffset={2}>+ <DropdownMenuItem+ onClick={() => handlePopUpOpen("policy", { policyId: policy.id, policy })}+ >+ <PencilIcon />+ Edit Policy+ </DropdownMenuItem>+ <DropdownMenuItem+ variant="danger"+ onClick={() => handlePopUpOpen("deletePolicy", { policyId: policy.id })}+ >+ <Trash2Icon />+ Delete Policy+ </DropdownMenuItem>+ </DropdownMenuContent>+ </DropdownMenu>+ </TableCell>+ </TableRow>+ ))}+ {!isPoliciesLoading && !sortedPolicies.length && (+ <TableRow>+ <td colSpan={4} className="p-0">+ <Empty className="border-none">+ <EmptyHeader>+ <EmptyTitle>No signing policies found</EmptyTitle>+ <EmptyDescription>+ Create a policy to require approval before signing operations+ </EmptyDescription>+ </EmptyHeader>+ </Empty>+ </td>+ </TableRow>+ )}+ </TableBody>+ </Table>);};diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateAuthorityOption.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateAuthorityOption.tsxdeleted file mode 100644index 35e45e53e4..0000000000--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CertificateAuthorityOption.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { components, OptionProps } from "react-select";-import { faPlus } from "@fortawesome/free-solid-svg-icons";-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";--export type CaOption =- | { id: string; name: string; groupType?: string }- | { id: "_create"; name: string };--export const CertificateAuthorityOption = ({- isSelected,- children,- ...props-}: OptionProps<CaOption>) => {- const isCreateOption = props.data.id === "_create";-- return (- <components.Option isSelected={isSelected} {...props}>- <div className="flex items-center">- {isCreateOption ? (- <div className="flex items-center gap-x-1 text-mineshaft-400">- <FontAwesomeIcon icon={faPlus} size="sm" />- <span>Create New CA</span>- </div>- ) : (- <p className="mr-auto truncate">{children}</p>- )}- </div>- </components.Option>- );-};diff --git a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsxindex 0610a8b1bf..23564cbf6e 100644--- a/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx+++ b/frontend/src/pages/cert-manager/PoliciesPage/components/CertificateProfilesTab/CreateProfileModal.tsx@@ -6,7 +6,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";import { Tab } from "@headlessui/react";import { zodResolver } from "@hookform/resolvers/zod";import { useQueryClient } from "@tanstack/react-query";-import { useNavigate, useParams } from "@tanstack/react-router";+import { Link, useParams } from "@tanstack/react-router";import { z } from "zod";import { createNotification } from "@app/components/notifications";@@ -69,7 +69,6 @@ import {} from "@app/pages/cert-manager/PoliciesPage/components/CertificatePoliciesTab/shared/certificate-constants";import { CreatePolicyModal } from "../CertificatePoliciesTab/CreatePolicyModal";-import { CaOption, CertificateAuthorityOption } from "./CertificateAuthorityOption";import { CertificatePolicyOption } from "./CertificatePolicyOption";const certificateDefaultsSchema = z@@ -589,7 +588,6 @@ export const CreateProfileModal = ({ isOpen, onClose, profile, mode = "create" }orgId?: string;projectId?: string;};- const navigate = useNavigate();const { popUp, handlePopUpToggle, handlePopUpOpen } = usePopUp(["createPolicy"] as const);const queryClient = useQueryClient();@@ -1142,51 +1140,52 @@ export const CreateProfileModal = ({ isOpen, onClose, profile, mode = "create" }render={({ field: { onChange, value }, fieldState: { error } }) => {const hasCas = certificateAuthorities.length > 0;return (- <FormControl- label="Issuing CA"- isRequired- isError={Boolean(error)}- errorText={error?.message}- >- <FilterableSelect- value={certificateAuthorities.find((ca) => ca.id === value) || null}- onChange={(selectedCaValue) => {- const selected = selectedCaValue as SingleValue<CaOption>;- if (selected?.id === "_create") {- navigate({- to: "/organizations/$orgId/projects/cert-manager/$projectId/settings",- params: { orgId: orgId ?? "", projectId: projectId ?? "" },- search: { selectedTab: "certificate-authorities" }- });- return;- }- if (Array.isArray(selectedCaValue)) {- onChange(selectedCaValue[0]?.id || "");- } else if (- selectedCaValue &&- typeof selectedCaValue === "object" &&- "id" in selectedCaValue- ) {- onChange(selectedCaValue.id || "");- } else {- onChange("");- }- }}- getOptionLabel={(ca) => ca.name}- getOptionValue={(ca) => ca.id}- options={- hasCas- ? certificateAuthorities- : ([{ id: "_create", name: "Create New CA" }] as CaOption[])- }- groupBy={hasCas ? "groupType" : undefined}- getGroupHeaderLabel={hasCas ? getGroupHeaderLabel : undefined}- placeholder="Select a certificate authority"- isDisabled={Boolean(isEdit)}- className="w-full"- components={hasCas ? undefined : { Option: CertificateAuthorityOption }}- />- </FormControl>+ <div>+ <FormControl+ label="Issuing CA"+ isRequired+ isError={Boolean(error)}+ errorText={error?.message}+ >+ <FilterableSelect+ value={certificateAuthorities.find((ca) => ca.id === value) || null}+ onChange={(selectedCaValue) => {+ if (Array.isArray(selectedCaValue)) {+ onChange(selectedCaValue[0]?.id || "");+ } else if (+ selectedCaValue &&+ typeof selectedCaValue === "object" &&+ "id" in selectedCaValue+ ) {+ onChange(selectedCaValue.id || "");+ } else {+ onChange("");+ }+ }}+ getOptionLabel={(ca) => ca.name}+ getOptionValue={(ca) => ca.id}+ options={certificateAuthorities}+ groupBy={hasCas ? "groupType" : undefined}+ getGroupHeaderLabel={hasCas ? getGroupHeaderLabel : undefined}+ placeholder="Select a certificate authority"+ isDisabled={Boolean(isEdit)}+ className="w-full"+ />+ </FormControl>+ {!hasCas && (+ <p className="-mt-2 mb-4 text-xs text-yellow-500">+ No certificate authorities available.{" "}+ <Link+ to="/organizations/$orgId/projects/cert-manager/$projectId/settings"+ params={{ orgId: orgId ?? "", projectId: projectId ?? "" }}+ search={{ selectedTab: "certificate-authorities" }}+ className="underline hover:text-yellow-400"+ >+ Create one in Certificate Authorities+ </Link>+ </p>+ )}+ </div>);}}/>diff --git a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsxindex cf4b56fc04..ae138005fe 100644--- a/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx+++ b/frontend/src/pages/project/AccessControlPage/components/ProjectRoleListTab/components/ProjectRoleList/ProjectRoleList.tsx@@ -228,7 +228,7 @@ export const ProjectRoleList = () => {<Card><CardHeader><CardTitle>- {isCertManager ? "Certificate Manager Roles" : "Project Roles"}+ {isCertManager ? "Roles" : "Project Roles"}<DocumentationLinkBadge href="https://infisical.com/docs/documentation/platform/access-controls/role-based-access-controls#project-level-access-controls" /></CardTitle><CardDescription>diff --git a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsxindex 9b64cfc38b..48ace79336 100644--- a/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx+++ b/frontend/src/pages/project/IdentityDetailsByIDPage/components/IdentityRoleDetailsSection/IdentityRoleDetailsSection.tsx@@ -132,7 +132,7 @@ export const IdentityRoleDetailsSection = ({<><Card><CardHeader>- <CardTitle>{isCertManager ? "Certificate Manager Roles" : "Project Roles"}</CardTitle>+ <CardTitle>{isCertManager ? "Roles" : "Project Roles"}</CardTitle><CardDescription>Manage roles assigned to this machine identity</CardDescription>{hasRoles && (<CardAction>diff --git a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsxindex bec30cdb9c..e7df425915 100644--- a/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx+++ b/frontend/src/pages/project/MemberDetailsByIDPage/components/MemberRoleDetailsSection/MemberRoleDetailsSection.tsx@@ -139,7 +139,7 @@ export const MemberRoleDetailsSection = ({<><Card><CardHeader>- <CardTitle>{isCertManager ? "Certificate Manager Roles" : "Project Roles"}</CardTitle>+ <CardTitle>{isCertManager ? "Roles" : "Project Roles"}</CardTitle><CardDescription>Manage roles assigned to this user</CardDescription>{!isOwnProjectMembershipDetails && hasRoles && (<CardAction>diff --git a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsxindex d9c2b72477..6f005a8a0f 100644--- a/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx+++ b/frontend/src/pages/project/RoleDetailsBySlugPage/RoleDetailsBySlugPage.tsx@@ -99,7 +99,7 @@ const Page = () => {className="mb-4 flex items-center gap-x-2 text-sm text-muted"><ChevronLeftIcon className="size-4" />- {isCertManager ? "Certificate Manager Roles" : "Project Roles"}+ {isCertManager ? "Roles" : "Project Roles"}</Link><PageHeaderscope={currentProject.type}