Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document step ssh login and step ssh certificate usage and best practices #60

Open
mikemaxey opened this issue Feb 8, 2022 · 1 comment

Comments

@mikemaxey
Copy link
Contributor

These new features are included in our latest release (version 18.1).

New behavior includes:
Running step ssh login without any positional argument (without an email or username) will produce a certificate with your default posix username and email address as principals, as determined by the CA. In other words, it should just "do the right thing".

We've also added a --principal flag to step ssh login if you want to explicitly specify the principal(s) to include in a certificate.
Running step ssh logout without any positional arguments will automatically remove all certificates signed by your SSH CA (and associated keys) from your SSH Agent. Again, it should just "do the right thing".
I think what this means for you is that your UI tool can be simplified to just a "login" and "logout" button that exec step ssh login and step ssh logout, respectively. You could get fancier than that, but I think that would be sufficient.

@maraino
Copy link
Contributor

maraino commented Feb 17, 2022

We haven't changed step ssh certificate when is used like:

step ssh certificate [email protected] jane

That will request the principal jane with the key id [email protected]. So the behavior right now is different than step ssh login, even when a positional argument is used.

We didn't change it because there was already a way to do the desired request using the --principal flags, and we don't want to remove the positional arguments in this request. So it works fine if your username matches your email, and you were able to use --principal if doesn't.

I'm not sure if we want to keep doing that or not.

@tashian tashian transferred this issue from smallstep/docs-old Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants