1
0
mirror of https://github.com/smallstep/cli.git synced 2026-10-29 00:17:23 +03:00
Commit Graph

125 Commits

Author SHA1 Message Date
Mariano Cano
2c9b200510 Add missing key ids. 2020-09-02 18:17:41 -07:00
Mariano Cano
323847349a Revert "Remove ssh template flags and parameters."
This reverts commit b5cf069f97.
2020-08-27 16:57:40 -07:00
Mariano Cano
b5cf069f97 Remove ssh template flags and parameters. 2020-08-14 11:46:27 -07:00
Mariano Cano
0fdbf20b22 Add --set and --set-file flags to the necessary ssh parameters. 2020-08-04 18:33:52 -07:00
Mariano Cano
bd79b16d5d Do not send OIDC principals as empty.
Use the classic logic for OIDC principals, sending them empty is
problematic for admin users.
2020-08-03 15:33:13 -07:00
Mariano Cano
9fabb59e56 Add --set and --set-file flags for step ssh certificate. 2020-07-30 18:50:15 -07:00
gucchisk
06ebb3ee65 Fix typo (rerekey -> rekey) 2020-07-14 20:13:01 +09:00
max furman
1145bf9332 Don't reuse san and principal flags to avoid confusing usage.
Fixes #262
2020-07-07 18:57:59 -07:00
max furman
ebab8433f8 wip 2020-06-25 13:57:00 -07:00
max furman
7e0b3b3c10 wip 2020-06-24 23:24:48 -07:00
Joost van Dijk
abc660c65f Fix typo in ssh list command usage 2020-06-18 17:09:57 +02:00
Mariano Cano
fc389f08b3 Rename Add User to Add User Certificate 2020-04-24 10:50:43 -07:00
Mariano Cano
c55c576580 Remove dot for consistency. 2020-04-23 19:13:31 -07:00
Mariano Cano
62d27920b7 Avoids panic when the add user certificate is not provided.
Partialy fixes #268

On OIDC provisioner the certificate has two identities and
step-certificates does not create a user provisioner certificate.
This change avoid the panic and displays a proper message.

A fix in certificates is required to allow user provisioner
certificates with OIDC provisioners.
2020-04-23 19:04:17 -07:00
Mariano Cano
2585d5ab8d Improve the step ca bootstrap to fully support the --team flag. 2020-04-23 18:07:15 -07:00
max furman
3691a1e9be Fix linter error 2020-04-21 10:26:00 -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
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
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
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
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
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
Mariano Cano
0cf9f99339 Rename argument to identity. 2020-01-28 13:34:00 -08:00