1
0
mirror of https://github.com/smallstep/cli.git synced 2025-08-07 16:02:54 +03:00

Admin workflow CLI v1

This commit is contained in:
max furman
2021-05-06 17:02:49 -07:00
parent 74aef56439
commit cce2ea8ef2
32 changed files with 2851 additions and 105 deletions

View File

@@ -32,7 +32,7 @@ func proxycommandCommand() cli.Command {
Action: command.ActionFunc(proxycommandAction),
Usage: "proxy ssh connections according to the host registry",
UsageText: `**step ssh proxycommand** <user> <host> <port>
[**--provisioner**=<name>] [**--set**=<key=value>] [**--set-file**=<path>]
[**--provisioner**=<name>] [**--set**=<key=value>] [**--set-file**=<path>]
[**--ca-url**=<uri>] [**--root**=<file>] [**--offline**] [**--ca-config**=<path>]`,
Description: `**step ssh proxycommand** looks into the host registry
and proxies the ssh connection according to its configuration. This command
@@ -207,11 +207,7 @@ func doLoginIfNeeded(ctx *cli.Context, subject string) error {
}
// Add certificate and private key to agent
if err := agent.AddCertificate(subject, resp.Certificate.Certificate, priv); err != nil {
return err
}
return nil
return agent.AddCertificate(subject, resp.Certificate.Certificate, priv)
}
func getBastion(ctx *cli.Context, user, host string) (*api.SSHBastionResponse, error) {