-
Notifications
You must be signed in to change notification settings - Fork 342
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
Implemented TLS client certificate authentication #86
Implemented TLS client certificate authentication #86
Conversation
@Fluepke thx for the PR! we'll review it and get back to you shortly |
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.
Hi @Fluepke!
The PR looks good! I found a small problem -- please see my comment.
Additionally, could you possibly run gofmt
against the code as it is not properly formatted?
exporter.go
Outdated
log.Fatalf("Loading CA cert failed: %v", err) | ||
} | ||
sslCaCertPool := x509.NewCertPool() | ||
sslCaCertPool.AppendCertsFromPEM(caCert) |
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.
AppendCertsFromPEM
function reports whether any certificates were successfully parsed in a boolean returned argument. Could you possible check that result and fatal with an error if there is a problem?
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.
Looks good @Fluepke! Just a small suggestion.
Hi @Fluepke just wanted to check if you're planning to address our suggestions or if you want us to take over the PR 🙂 Thanks |
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.
Looks good!
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.
👍
Proposed changes
Implemented options to specify:
Checklist
Before creating a PR, run through this checklist and mark each as complete.