-
Notifications
You must be signed in to change notification settings - Fork 215
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
Certificate generation: SAN not present with latest step CLI #858
Comments
Can confirm that this works when used with templates. There are multiple places where we use step and it has to be updated everywhere like https://github.com/linkerd/website/pull/809/files @alpeb @adleong Should we use this (so that we can use the latest versions of step) or pin to specific older version where |
I ran into the exact same issues and ended up here. I think either editing the docs to use the command provided above or using another tool to generate the certificates in the documentation would make sense. Otherwise more and more linkerd users will run into this. Pinning the docs to an older version seems like a bad choice, both UX and security wise. |
Pinning to an older version of step which supports the |
I'd go even farther and say that even if we want to use the current latest version of step, we should still pin to that version. This prevents the behavior from changing out from under us and lets us upgrade the pinned version at our own pace. |
I agree, from a maintenance perspective it definitely makes sense to add the version for which the documentation is intended/tested. It probably makes sense to wait for the outcome of smallstep/cli#386. |
Based on the latest comment from step folks, I creatd smallstep/cli#386 (comment) to track this as a higher level issue. @msvechla @frigus02 @adleong Feel free to add any feedback! @frigus02 Thank you so much for all your help on this! :) |
No worries. Thanks for looking into this. What does this mean for this documentation issue? Should we leave it until you found a solution? Until this is solved, should we add a note to the various pages in the docs, pinning the step CLI to version 1.4? If so, I'd be happy to prepare a PR. |
Fixes linkerd/linkerd2#5228, #858 Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com>
Fixes linkerd/linkerd2#5228, #858 Signed-off-by: Tarun Pothulapati <tarunpothulapati@outlook.com> Co-authored-by: Alejandro Pedraza <alejandro@buoyant.io>
Go 1.15 expects certificates to have a SAN (see golang/go#39568). This means also the latest Kubernetes requires certificates to have a SAN.
PR #809 added the
--san
option to allstep
command in this documentation.With the latesy step CLI (currently version 0.15.3), this option is ignored for intermediate and root certificates. See also smallstep/cli#386.
One possible solution is to use a custom certificate template with
step
, which includes SANs. This would mean commands would change like this:It seems this would make the commands quite a bit harder to understand. Can anyone think of another solution?
The text was updated successfully, but these errors were encountered: