Skip to content

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

feat: review comments

=ca317a2247b0
diff --git a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SshPasswordRotationParametersFields.tsx b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SshPasswordRotationParametersFields.tsx
index 2c2b9a73c1..488dff4fc1 100644
--- a/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SshPasswordRotationParametersFields.tsx
+++ b/frontend/src/components/secret-rotations-v2/forms/SecretRotationV2ParametersFields/SshPasswordRotationParametersFields.tsx
@@ -34,7 +34,8 @@ export const SshPasswordRotationParametersFields = () => {
<ul className="mt-2 ml-4 flex list-disc flex-col gap-2">
<li>
<span className="font-medium">Login as Root</span> - The SSH connection
- credentials (admin) will be used to change the target user&#39;s password.
+ credentials of the app connection linked will be used to change the target
+ user&#39;s password.
</li>
<li>
<span className="font-medium">Login as Target</span> - The target user will
diff --git a/frontend/src/components/secret-rotations-v2/forms/schemas/ssh-password-rotation-schema.ts b/frontend/src/components/secret-rotations-v2/forms/schemas/ssh-password-rotation-schema.ts
index 0db8c40c71..098e4f3375 100644
--- a/frontend/src/components/secret-rotations-v2/forms/schemas/ssh-password-rotation-schema.ts
+++ b/frontend/src/components/secret-rotations-v2/forms/schemas/ssh-password-rotation-schema.ts
@@ -15,11 +15,11 @@ export const SshPasswordRotationSchema = z
}),
secretsMapping: z.object({
username: z.string().trim().min(1, "Username required"),
- password: z.string().trim().min(1, "Password required")
+ password: z.string().trim().optional()
}),
temporaryParameters: z
.object({
- password: z.string().min(1, "Password required")
+ password: z.string().optional()
})
.optional()
})