Revise ssh host alias PR

This commit is contained in:
Tuan Dang
2025-04-26 18:18:22 -07:00
parent de63c8cb6c
commit 3d89a7f45d
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ export const registerSshHostRouter = async (server: FastifyZodProvider) => {
message: "Alias must be a valid slug" message: "Alias must be a valid slug"
}) })
.optional() .optional()
.describe(SSH_HOSTS.CREATE.alias), .describe(SSH_HOSTS.UPDATE.alias),
userCertTtl: z userCertTtl: z
.string() .string()
.refine((val) => ms(val) > 0, "TTL must be a positive number") .refine((val) => ms(val) > 0, "TTL must be a positive number")
+4 -1
View File
@@ -34,7 +34,7 @@ This command enables you to obtain SSH credentials used to access a remote host.
The path to write the SSH credentials to such as `~/.ssh`, `./some_folder`, `./some_folder/id_rsa-cert.pub`. If not provided, the credentials will be added to the SSH agent and used to establish an interactive SSH connection. The path to write the SSH credentials to such as `~/.ssh`, `./some_folder`, `./some_folder/id_rsa-cert.pub`. If not provided, the credentials will be added to the SSH agent and used to establish an interactive SSH connection.
</Accordion> </Accordion>
<Accordion title="--token"> <Accordion title="--token">
An authenticated token to use to authenticate with Infisical. Use a machine identity access token
</Accordion> </Accordion>
</Accordion> </Accordion>
@@ -56,6 +56,9 @@ This command enables you to obtain SSH credentials used to access a remote host.
<Accordion title="--hostname"> <Accordion title="--hostname">
Hostname of the SSH host (required) Hostname of the SSH host (required)
</Accordion> </Accordion>
<Accordion title="--alias">
Alias for the SSH host (optional)
</Accordion>
<Accordion title="--write-user-ca-to-file"> <Accordion title="--write-user-ca-to-file">
Write User CA public key to `/etc/ssh/infisical_user_ca.pub` Write User CA public key to `/etc/ssh/infisical_user_ca.pub`
@@ -35,8 +35,8 @@ type Props = {
const schema = z const schema = z
.object({ .object({
hostname: z.string(), hostname: z.string().trim(),
alias: z.string(), alias: z.string().trim(),
userCertTtl: z userCertTtl: z
.string() .string()
.trim() .trim()