-
Notifications
You must be signed in to change notification settings - Fork 262
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
Allow stdin input of cert for needs-renewal #1157
Conversation
7065c1a
to
ba1685d
Compare
Now requires: smallstep/crypto#490 edit: these were merged |
ba1685d
to
2e78bf9
Compare
Hey @redrac 👋. Thanks for submitting this PR, and apologies for the radio silence! Overall, this looks good and useful. However, the exit codes that are being returned by this command are intentional and in some cases I think the proposed changes may result in an exit code that does not line up with the documentation. I will try to comment on those exact cases. See the exit code documentation here - https://github.com/smallstep/cli/blob/master/command/ssh/needsRenewal.go#L39-L43. |
command/ssh/needsRenewal.go
Outdated
case 1: | ||
name = ctx.Args().First() | ||
default: | ||
return errs.TooManyArguments(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we want to exit with code 255
here.
Ah thanks! I will fix this this afternoon most likely |
2e78bf9
to
f36bb35
Compare
f36bb35
to
17f02aa
Compare
Okay fixed :)
|
Name of feature:
Allow stdin input of cert for needs-renewal
Pain or issue this feature alleviates:
This allows users who have ephemeral certs (certs only in agents) to use needs-renewal without writing the cert to disk. This functionality already exists for inspect; I merely ported it over.