Skip to content

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

helper text for postgres credential account selector

Andreyaab2dd9d2f43
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
index eccc0c9bfe..30e1165fbd 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/AddDiscoverySourceSheet.tsx
@@ -294,6 +294,7 @@ const HostRangeSourceForm = ({
control={control as unknown as Control<{ credentialAccountIds: string[] }>}
accountType={source.accountType}
placeholder={source.placeholder}
+ description={source.description}
warning={source.warning}
/>
<GatewayField
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoveryConfigFields.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoveryConfigFields.tsx
index 3dffee0544..c844b1e8f8 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoveryConfigFields.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoveryConfigFields.tsx
@@ -170,6 +170,8 @@ export const HOST_RANGE_SOURCES = {
[PamDiscoveryType.Unix]: {
accountType: PamAccountType.SSH,
placeholder: "Select SSH accounts",
+ description:
+ "A target is matched to an account by host, otherwise each account is tried until one connects.",
warning:
"Password accounts send their password to every host scanned in the range, including hosts you don't control. We recommend a key or certificate account for scanning.",
configKey: "cidrRanges",
@@ -181,6 +183,8 @@ export const HOST_RANGE_SOURCES = {
[PamDiscoveryType.Postgres]: {
accountType: PamAccountType.Postgres,
placeholder: "Select PostgreSQL accounts",
+ description:
+ "The username and password authenticate to each instance scanned. The account's database and TLS settings are reused for the connection.",
warning:
"The account password is sent to every instance scanned, including any you don't control. Only list hosts you trust.",
configKey: "hosts",
@@ -242,11 +246,13 @@ export const CredentialAccountsField = ({
control,
accountType,
placeholder,
+ description,
warning
}: {
control: Control<{ credentialAccountIds: string[] }>;
accountType: PamAccountType;
placeholder: string;
+ description: string;
warning: string;
}) => {
const { data: accounts = [] } = useListPamAccounts();
@@ -271,10 +277,7 @@ export const CredentialAccountsField = ({
getOptionLabel={(a) => (a.folderName ? `${a.folderName} / ${a.name}` : a.name)}
placeholder={placeholder}
/>
- <FieldDescription>
- A target is matched to an account by host, otherwise each account is tried until one
- connects.
- </FieldDescription>
+ <FieldDescription>{description}</FieldDescription>
<FieldError>{fieldState.error?.message}</FieldError>
<Alert variant="warning" className="mt-1">
<AlertTriangle />
diff --git a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
index e4710bc3f5..9005b73194 100644
--- a/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
+++ b/frontend/src/pages/pam/PamDiscoveryPage/components/DiscoverySourceDetailSheet.tsx
@@ -302,6 +302,7 @@ const HostRangeConfigForm = ({
control={control as unknown as Control<{ credentialAccountIds: string[] }>}
accountType={sourceMeta.accountType}
placeholder={sourceMeta.placeholder}
+ description={sourceMeta.description}
warning={sourceMeta.warning}
/>
<GatewayField