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

Update system cert pool update for Go 1.8 #27

Merged
merged 1 commit into from
Feb 3, 2017

Conversation

dmcgowan
Copy link
Contributor

Go 1.8 adds support for windows certificate pool, ensure
that the system cert pool is just called directly. Any
error in windows should propagate to the caller.

Change log message for windows error from warn to info
since it is not actionable in go 1.7.

@dmcgowan
Copy link
Contributor Author

Addresses moby/moby#30450

@thaJeztah
Copy link
Member

ping @aaronlehmann @cyli PTAL

@@ -14,7 +14,7 @@ import (
func SystemCertPool() (*x509.CertPool, error) {
certpool, err := x509.SystemCertPool()
if err != nil && runtime.GOOS == "windows" {
logrus.Warnf("Unable to use system certificate pool: %v", err)
logrus.Info("Unable to use system certificate pool: %v", err)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be Infof

Go 1.8 adds support for windows certificate pool, ensure
that the system cert pool is just called directly. Any
error in windows should propagate to the caller.

Change log message for windows error from warn to info
since it is not actionable in go 1.7.

Signed-off-by: Derek McGowan <derek@mcgstyle.net> (github: dmcgowan)
@dmcgowan
Copy link
Contributor Author

dmcgowan commented Feb 3, 2017

Updated, Stephen thinks this should remain at Warnf, but my concern is that it is not actionable by the user and we still haven't figured out why it is always being shown on the client. If we can figure that out I am fine keeping it a warning. Until then this is disconcerting to users.

@aaronlehmann
Copy link

LGTM

1 similar comment
@LK4D4
Copy link
Contributor

LK4D4 commented Feb 3, 2017

LGTM

@LK4D4 LK4D4 merged commit c972f11 into docker:master Feb 3, 2017
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

Successfully merging this pull request may close these issues.

None yet

4 participants