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: improved unchanged placeholder
Sheen Capadngana4f3b5d037d5
diff --git a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/shared/SshAccountFields.tsx b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/shared/SshAccountFields.tsxindex 0ca294fb9d..091120c4eb 100644--- a/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/shared/SshAccountFields.tsx+++ b/frontend/src/pages/pam/PamAccountsPage/components/PamAccountForm/shared/SshAccountFields.tsx@@ -110,8 +110,13 @@ export const SshAccountFields = ({ isUpdate }: { isUpdate: boolean }) => {><TextArea{...field}+ value={field.value === UNCHANGED_PASSWORD_SENTINEL ? "" : field.value}className="min-h-32 resize-y font-mono text-xs"- placeholder="-----BEGIN OPENSSH PRIVATE KEY----- ... -----END OPENSSH PRIVATE KEY-----"+ placeholder={+ isUpdate && field.value === UNCHANGED_PASSWORD_SENTINEL+ ? "Private key unchanged - click to update"+ : "-----BEGIN OPENSSH PRIVATE KEY-----\n...\n-----END OPENSSH PRIVATE KEY-----"+ }onFocus={() => {if (isUpdate && field.value === UNCHANGED_PASSWORD_SENTINEL) {field.onChange("");