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

transport: warn on user-provided CA #7145

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

heyitsanthony
Copy link
Contributor

@heyitsanthony heyitsanthony commented Jan 12, 2017

ServerName is ignored for a user-provided CA for backwards compatibility. This
breaks PKI, so warn it is deprecated.

#6440 is the right thing to do, but etcd needs to warn before fully deprecating first.

/cc @lclarkmichalek @xiang90

ServerName is ignored for a user-provided CA for backwards compatibility. This
breaks PKI, so warn it is deprecated.
@xiang90
Copy link
Contributor

xiang90 commented Jan 12, 2017

lgtm

@xiang90
Copy link
Contributor

xiang90 commented Jan 12, 2017

we need to add this into release note.

@codecov-io
Copy link

Current coverage is 64.44% (diff: 100%)

No coverage report found for master at 824277c.

Powered by Codecov. Last update 824277c...da8fd18

@gyuho
Copy link
Contributor

gyuho commented Jan 12, 2017

lgtm

@heyitsanthony heyitsanthony merged commit 34136a6 into etcd-io:master Jan 12, 2017
@heyitsanthony heyitsanthony deleted the warn-ca-ignore branch January 12, 2017 19:14
@lclarkmichalek
Copy link
Contributor

Great 👍

@Sartner
Copy link

Sartner commented Mar 2, 2017

But how to fix the warn "ignoring ServerName for user-provided CA for backwards compatibility is deprecated" ?
Where to set ServerName ?

@peteeckel
Copy link

Looking at the relevant part of the code in pkg/transport/transport.go I'd expect you just can't get rid of the warning when you are using your own CA file. It is issued whether or not your certificate contains the correct server name.

I've downgraded to 3.0.15 (which fixes the problem for the time being) and expect 3.2.x to work without any problem or warning as soon as it gets released.

@xiang90
Copy link
Contributor

xiang90 commented Mar 14, 2017

@peteeckel Sorry. I did not really understand your issue. Maybe you can create a new issue to clearly state the problem you are facing.

@peteeckel
Copy link

@xiang90

I was referring to @Sartner's question on how to get rid of the warning, and as long as you use your own CA file I don't see how you can. I ran into the same issue today after upgrading from 3.0.15 to 3.1.0, and the current version in the repo (presumably to become 3.2.x) doesn't contain the code for the warning anymore.

So as I see it downgrading helps as a workaround, and upgrading will help as well (as long as your server names are correctly reflected in the cert).

@xiang90
Copy link
Contributor

xiang90 commented Mar 14, 2017

@peteeckel You are right. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

7 participants