mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Revise ssh host alias PR
This commit is contained in:
@@ -193,7 +193,7 @@ export const registerSshHostRouter = async (server: FastifyZodProvider) => {
|
||||
message: "Alias must be a valid slug"
|
||||
})
|
||||
.optional()
|
||||
.describe(SSH_HOSTS.CREATE.alias),
|
||||
.describe(SSH_HOSTS.UPDATE.alias),
|
||||
userCertTtl: z
|
||||
.string()
|
||||
.refine((val) => ms(val) > 0, "TTL must be a positive number")
|
||||
|
||||
@@ -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.
|
||||
</Accordion>
|
||||
<Accordion title="--token">
|
||||
An authenticated token to use to authenticate with Infisical.
|
||||
Use a machine identity access token
|
||||
</Accordion>
|
||||
|
||||
</Accordion>
|
||||
@@ -56,6 +56,9 @@ This command enables you to obtain SSH credentials used to access a remote host.
|
||||
<Accordion title="--hostname">
|
||||
Hostname of the SSH host (required)
|
||||
</Accordion>
|
||||
<Accordion title="--alias">
|
||||
Alias for the SSH host (optional)
|
||||
</Accordion>
|
||||
<Accordion title="--write-user-ca-to-file">
|
||||
Write User CA public key to `/etc/ssh/infisical_user_ca.pub`
|
||||
|
||||
|
||||
@@ -35,8 +35,8 @@ type Props = {
|
||||
|
||||
const schema = z
|
||||
.object({
|
||||
hostname: z.string(),
|
||||
alias: z.string(),
|
||||
hostname: z.string().trim(),
|
||||
alias: z.string().trim(),
|
||||
userCertTtl: z
|
||||
.string()
|
||||
.trim()
|
||||
|
||||
Reference in New Issue
Block a user