mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-03 18:26:04 +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"
|
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")
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user