Skip to content

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

chore(pam): trim verbose comments

bernie-gf6411d2ea4a6
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index b8379045ac..4e19ff7f0e 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -756,11 +756,8 @@ export const pamAccountServiceFactory = ({
});
}
- // Returns the account row plus the canonical identity to feed the approval
- // layer. For domain accounts we prefix with the FQDN from the domain row
- // (not the caller's hint) so casing is normalized and grants/policies
- // created against domain accounts can't be matched by a same-named local
- // grant (which would otherwise let one grant authorize both buckets).
+ // accountIdentity is fed to the approval layer; the FQDN prefix on domain
+ // accounts prevents a like-named local-account grant from matching.
const lookupAccount = async () => {
if (!isDomainAccount) {
const localAccount = await pamAccountDAL.findOne({
diff --git a/backend/src/ee/services/pam-session/pam-session-schemas.ts b/backend/src/ee/services/pam-session/pam-session-schemas.ts
index 00d26ae60a..ade73a4e49 100644
--- a/backend/src/ee/services/pam-session/pam-session-schemas.ts
+++ b/backend/src/ee/services/pam-session/pam-session-schemas.ts
@@ -10,10 +10,7 @@ export const PamSessionCommandLogSchema = z.object({
timestamp: z.coerce.date()
});
-// Terminal-channel event types. SSH uses input / output / resize / error.
-// "rdp" tags an RDP-tap event whose `data` field carries an RDP-specific
-// JSON envelope (target_frame / keyboard / unicode / mouse) -- the player on
-// the frontend decodes that envelope after AAD-bound chunk decryption.
+// "rdp" events carry a JSON envelope in `data` (target_frame / keyboard / unicode / mouse).
export const TerminalEventTypeSchema = z.enum(["input", "output", "resize", "error", "rdp"]);
export const TerminalChannelTypeSchema = z.nativeEnum(TerminalChannelType);
diff --git a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
index ccc41524ed..0a4f84cb35 100644
--- a/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
+++ b/frontend/src/pages/pam/PamAccountByIDPage/PamAccountByIDPage.tsx
@@ -90,9 +90,6 @@ const PageContent = () => {
const { data: account, isPending } = useGetPamAccountById(accountId);
- // Domain accounts use the AD FQDN to disambiguate from a like-named local
- // account. Fetch the full domain row for connectionDetails.domain so the
- // approval-layer identity matches what the backend computes.
const { data: domain } = useGetPamDomainById(
(account?.domain?.domainType as PamDomainType) ?? PamDomainType.ActiveDirectory,
account?.domainId || undefined,
@@ -378,8 +375,6 @@ const PageContent = () => {
domainType={account.domain.domainType}
domainId={account.domain.id}
onSelect={async (resource) => {
- // Domain accounts pass `<fqdn>:<slug>` to the approval layer so a
- // like-named local-account grant can't authorize this access.
const accountIdentity = domain?.connectionDetails.domain
? `${domain.connectionDetails.domain}:${account.name}`
: account.name;
diff --git a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
index 79328d1c3b..e9582db86b 100644
--- a/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
+++ b/frontend/src/pages/pam/PamResourceByIDPage/components/PamResourceAccountsSection.tsx
@@ -256,8 +256,6 @@ export const PamResourceAccountsSection = ({ resource }: Props) => {
};
const accessAccount = async (account: TPamAccount) => {
- // Domain accounts pass `<fqdn>:<slug>` to the approval layer so a
- // like-named local-account grant can't authorize this access.
const accountIdentity =
account.domainId && domainData?.connectionDetails.domain
? `${domainData.connectionDetails.domain}:${account.name}`