1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-09 03:22:43 +03:00

ssh/certificate: Generate a random UUID by default

Apparently some images don't properly handle the machine-id and it ends
up not being unique. By default play it safe and generate our own UUID.
Deriving a UUID from `/etc/machine-id` is still supported. To trigger
that behavior, pass 'machine' as the `--host-id` flag.
This commit is contained in:
David Cowden
2020-03-26 17:19:53 -07:00
parent bf4af2274b
commit 8d3073d3dc
2 changed files with 26 additions and 6 deletions

View File

@@ -114,8 +114,9 @@ var (
}
sshHostIDFlag = cli.StringFlag{
Name: "host-id",
Usage: `Specify a <UUID> to identify the host rather than using an auto-generated UUID derived from the machine-id.`,
Name: "host-id",
Usage: `Specify a <UUID> to identify the host rather than using an auto-generated UUID.
If "machine" is passed, derive a UUID from "/etc/machine-id."`,
}
sshSignFlag = cli.BoolFlag{