1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-24 11:19:19 +03:00

557 Commits

Author SHA1 Message Date
Max
9eb6bc3a9b Merge pull request #237 from smallstep/steppath-doc-tweak
Add tip about STEPPATH to step path docs.
2020-04-09 15:25:20 -07:00
Max
11602a26fd Merge pull request #229 from smallstep/seb/ssh-hosts-formatting
Cosmetic improvement: avoid unintentional concat of columns
2020-04-09 15:23:24 -07:00
Max
a09fb03fba Merge pull request #234 from TopherIsSwell/master
Fixed ssh revoke help documentation to reflect actual revoke usage.
2020-04-09 15:18:21 -07:00
Max
c37a9cffba Merge pull request #238 from smallstep/fix-ssh-fingerprint-usage
Usage summary for `step ssh fingerprint`
2020-04-09 15:14:33 -07:00
Mariano Cano
e8a9c548f5 Merge pull request #252 from smallstep/token-and-principal-usage
Clarify principals flag for SSH certificates
2020-04-09 10:17:22 -07:00
max furman
c06650abac Log the common name of the certificate renewed by the renewDaemon 2020-04-08 16:24:09 -07:00
Carl Tashian
edca641c81 Typo fix 2020-04-07 09:53:06 -07:00
Carl Tashian
027c916b9c Clarify principals flag for SSH certificates 2020-04-06 15:53:15 -07:00
David Cowden
e77ad2440e ssh/hosts: Use tags intead of groups
Tags are a more general, flexible, strategy.
2020-04-06 05:37:52 -07:00
David Cowden
fee5dc3d58 ssh/certificate: Carry over host-id if it exists
If the user re-runs the `ssh certificate` command, try to pull the
host-id out of a previous identity cert. This will make it less annoying
for someone who runs the command not knowing that it will clobber their
old host-id and result in a new host (requireing them to also
re-register).
2020-03-31 19:59:02 -07:00
Carl Tashian
c13b8912e5 Fix the Usage summary for step ssh fingerprint 2020-03-31 11:06:24 -07:00
Carl Tashian
07566adf3f Add tip about STEPPATH to step path docs. 2020-03-31 10:48:35 -07:00
David Cowden
8d3073d3dc 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.
2020-03-26 17:38:18 -07:00
Mariano Cano
b0df3f0c31 Fix --provisioner-password-file flag in step ssh login. 2020-03-19 13:57:19 -07:00
Christopher Morrow
f41a774460 Fixed ssh revoke help documentation to reflect revoke usage instead of ssh-renew usage 2020-03-17 09:59:09 -07:00
David Cowden
a48822af05 Merge branch 'master' into dcow/host-id 2020-03-16 17:17:01 -07:00
David Cowden
82e457df4a ssh/certificate: Fix typo in usage
And use a consistent error message when the user tries to use the
--host-id flag without also specifying the --host flag.
2020-03-16 17:15:49 -07:00
David Cowden
c15a339687 ssh/certificate: Use blake2b instead of sha256
The short of it is that blake2b is designed to be a MAC. So let's use it
instead of worrying about whether we've used hmac|sha256 with a big
enough key, etc.
2020-03-16 17:14:27 -07:00
Mariano Cano
ad19c036f4 Add hack to be able to sign a CSR with URIs. 2020-03-13 19:38:19 -07:00
David Cowden
4b5b57fe50 ssh/certificate: Brush up error reporting
Add error details and inform the user if the try to pass `--host-id` but
have not specified `--host`. Also add a hint about what the potental
problem could be and a resolution option when we can't derive a host-id
from '/etc/machine-id'.
2020-03-13 18:00:34 -07:00
David Cowden
3197f48c32 ssh/certificate: Regenerate the CSR on update
After we set the URI, we need to regenerate the CSR in order for the new
data to be reflected.
2020-03-13 17:32:42 -07:00
Sebastian Tiedtke
8ac590c59e Avoid unintentional concat of columns 2020-03-13 09:08:45 -07:00
Sebastian Tiedtke
46ff96b58d This is tags now (cc @maraino @dcow) 2020-03-12 20:46:55 -07:00
David Cowden
9059e02238 ssh: Add machine-id hash to host certificate
Alternatively, allow the user to specify their own UUID. Adding an ID
derived from the machine ID allows us to authorize hosts to access their
own resources by ID. The machine-id is not supposed to be sent around as
a raw UUID. So we HMAC it with an application "secret" and use the first
sixteen bytes of the resulting sha256 sum to as the entropy source when
generating a new "random" UUIDv4.
2020-03-12 20:36:49 -07:00
max furman
2756490986 Documentation syntax fix for ca provisioner add 2020-03-11 13:43:29 -07:00
Shulhan
12aa70b52f command/path: fix typo on command description
Previously, the Description for “step path” command is
“step ca command prints …”, it should be “step path command prints …”.

This changes fix the typo.
2020-01-31 12:08:45 +07:00
Mariano Cano
41f51c565c Add support for OpenSSH private keys in step crypto key format. 2020-01-28 13:34:01 -08:00
Mariano Cano
ab36b827de Do not ask twice for password on open ssh keys. 2020-01-28 13:34:01 -08:00
David Cowden
2028998a61 teams: Add --team-url option
Allow users to specify the endpoint that `step ssh config --team` uses
to pull initial configuration. If no endpoint is specified, default to

    https://api.smallstep.com/v1/teams/<name>/cas/default

If the user-specified endpoint contains any "<>" sequences, replace them
with the team name.
2020-01-28 13:34:00 -08:00
Mariano Cano
1511dae25b Get the public instead of writing the private key. 2020-01-28 13:34:00 -08:00
Mariano Cano
ad7ab9ee37 Add command step crypto key public 2020-01-28 13:34:00 -08:00
David Cowden
26dc7e79f3 oauth: Add terminal redirect URL option
Add a `--redirect-url` string option to the boostrap command that allows
the terminal redirect in the OAuth flow to be configured. This is useful
if you want to display a more interesting page than the locally hosted
basebones "Success" page.

If the user configures step-cli using the `ssh config` command and
passes the `--team` option, set the redirect url to:

    https://smallstep.com/app/teams/sso/success

so that the flow ends on a page that instructs users on what to do next.
2020-01-28 13:34:00 -08:00
Mariano Cano
93a358c301 Remove unused step ssh proxy command. 2020-01-28 13:34:00 -08:00
Mariano Cano
3c4aa2228d Fix lint errors. 2020-01-28 13:34:00 -08:00
Mariano Cano
b47ea68840 Use crypto/ed25519 2020-01-28 13:34:00 -08:00
Mariano Cano
e36cfcbed6 Remove the use of custom x509 package. 2020-01-28 13:34:00 -08:00
Mariano Cano
01304131b4 Renew identity on ssh renew and rekey. 2020-01-28 13:34:00 -08:00
max furman
538f49f862 Remove final doubleprint of STEPDEBUG 2020-01-28 13:34:00 -08:00
max furman
34742e5b3e Double printing STEPDEBUG message 2020-01-28 13:34:00 -08:00
max furman
a8754c1c4b Add a few graceful errors to checkHost 2020-01-28 13:34:00 -08:00
Mariano Cano
513e8c8fdd Fix typo. 2020-01-28 13:34:00 -08:00
Mariano Cano
abe8443629 Update certificates and addapt api. 2020-01-28 13:34:00 -08:00
max furman
a4670fc632 Use x5cInsecure token in step ssh check-host
* token allows the use of expired identity certificates to authenticate
the /ssh/check-host endpoint.
2020-01-28 13:34:00 -08:00
Mariano Cano
4c8c5638bf Remove authentication to step ssh renew and improve usage. 2020-01-28 13:34:00 -08:00
Mariano Cano
c9f4b2868f Remove authentication to step ssh renew.
Improve usage.
2020-01-28 13:34:00 -08:00
Alan Christopher Thomas
bbf25ede72 Redirect to hosted sso success page after oauth flow 2020-01-28 13:34:00 -08:00
Mariano Cano
0cf9f99339 Rename argument to identity. 2020-01-28 13:34:00 -08:00
Mariano Cano
3e9ef0052a Fail if no ssh-agent, force the user to login before. 2020-01-28 13:34:00 -08:00
Mariano Cano
88d192a4ab Improve step ssh docs. 2020-01-28 13:34:00 -08:00
Mariano Cano
62f1090c96 Remove expired keys. 2020-01-28 13:34:00 -08:00