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
fix(pam): style joined-domain row as a blue badge with the FQDN
bernie-g0c37162daa0c
diff --git a/backend/src/db/migrations/20260428141725_pam-session-selected-resource.ts b/backend/src/db/migrations/20260428141725_pam-session-selected-resource.tsindex 47e7a868c5..cceb5784e6 100644--- a/backend/src/db/migrations/20260428141725_pam-session-selected-resource.ts+++ b/backend/src/db/migrations/20260428141725_pam-session-selected-resource.ts@@ -2,8 +2,8 @@ import { Knex } from "knex";import { TableName } from "../schemas";-// Records the user-selected target for domain-account sessions, which have no-// owning resource. Reads resolve via COALESCE(selectedResourceId, account.resourceId).+// Records the user-selected target for domain-account sessions (e.g. AD), which+// have no owning resource of their own.export async function up(knex: Knex): Promise<void> {if (await knex.schema.hasTable(TableName.PamSession)) {const hasCol = await knex.schema.hasColumn(TableName.PamSession, "selectedResourceId");diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsxindex 674fcf7b50..295403f9a0 100644--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsx+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceDetailsSection.tsx@@ -3,7 +3,14 @@ import { format } from "date-fns";import { PencilIcon } from "lucide-react";import { ProjectPermissionCan } from "@app/components/permissions";-import { Detail, DetailGroup, DetailLabel, DetailValue, IconButton } from "@app/components/v3";+import {+ Badge,+ Detail,+ DetailGroup,+ DetailLabel,+ DetailValue,+ IconButton+} from "@app/components/v3";import { ProjectPermissionActions, ProjectPermissionSub, useOrganization } from "@app/context";import { TPamResource } from "@app/hooks/api/pam";import { PamDomainType, useGetPamDomainById } from "@app/hooks/api/pamDomain";@@ -60,9 +67,11 @@ export const PamResourceDetailsSection = ({ resource, onEdit }: Props) => {domainType: domain.domainType,domainId: domain.id}}- className="text-primary hover:underline"+ className="hover:underline">- {domain.name}+ <Badge variant="info" className="text-xs">+ {domain.connectionDetails.domain}+ </Badge></Link></DetailValue></Detail>