-
Notifications
You must be signed in to change notification settings - Fork 714
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
Error running kubeadm init creating secret #104
Comments
AFAIK DNS is case-insensitive. |
What would one need to do to reproduce this? I can't hit it with latest unstable packages or a freshly compiled master kubeadm, do I need a new apiserver image of some version to see it? Anyone know how a secret metadata name would be getting treated like a URL? |
And the error is coming from here: |
@pires is right, the problem is the capitalization of the 97C8F0. |
@mikedanese should we fix this or lowercase the token? I can take care of this if no one else is already. |
Found the culprit, kubernetes/kubernetes#38090. |
just generate lowe-case randoms, please? In fact, you should use https://github.com/kubernetes/kubernetes/blob/master/pkg/util/rand/rand.go#L79 |
Yes, dns labels in k8s should always be lowercase, and kubeadm should do that as well. @pires Please just make kubeadm use/convert to lowercase tokens. |
I'm ok with lower-casing the token but I'm not sure we should enforce tokens without vowels. Waiting on @mikedanese feedback before proceeding. |
I don't know what you're doing with this token - the function I linked to
is for human-facing strings, mostly.
…On Mon, Jan 9, 2017 at 1:14 PM, Lucas Käldström ***@***.***> wrote:
@pires <https://github.com/pires> Vowels are ok for the validation, it's
just the random method that @thockin <https://github.com/thockin>
suggested that doesn't generate such strings. We already have the token
generator, so the only thing we have to do is to lowercase the token in all
cases.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVN3WOfZxi8ugcRsS8xOpQgs-uH2Mks5rQqM9gaJpZM4LdUF1>
.
|
Yes, I read the totally reasonable issue about and fix for not having vowels in user-facing generated strings :) @thockin The token is kind of a password for being able to authenticate from a node to a master before knowing about or trusting the CA certs. Then a JWS flow follows. See https://github.com/kubernetes/community/blob/master/contributors/design-proposals/bootstrap-discovery.md for more info |
If it is meant to be cut-and-pasted, that's fine. If it is meant to be
read and typed by humans, we have another PR in flight that purports to
make more phonetic random names.
…On Mon, Jan 9, 2017 at 1:37 PM, Lucas Käldström ***@***.***> wrote:
Yes, I read the totally reasonable issue about and fix for not having
vowels in user-facing generated strings :)
@thockin <https://github.com/thockin> The token is kind of a password for
being able to authenticate from a node to a master before knowing about or
trusting the CA certs. Then a JWS flow follows. See
https://github.com/kubernetes/community/blob/master/
contributors/design-proposals/bootstrap-discovery.md for more info
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#104 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFVgVKqvw-FUJj92BioaYom1NH7VVtJNks5rQqiegaJpZM4LdUF1>
.
|
@thockin Cut-and-pasted |
The bootstrap secret name seems to be invalid?
cc @dgoodwin
The text was updated successfully, but these errors were encountered: