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

Fix segfault in x509_cert #4874

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Fix segfault in x509_cert #4874

merged 1 commit into from
Oct 17, 2018

Conversation

mcfedr
Copy link
Contributor

@mcfedr mcfedr commented Oct 17, 2018

  • When no tls params are in config, tlsCfg will be nil
  • fix setting hostname in tlsCfg it will contain the port number and never correctly match server certs
  • Add a test that shows that it now works
  • Fix readme as port number is required in soruces

Its currently possible to workaround the crash by adding insecure_skip_verify = true to the conf

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

- When no tls params are in config, tlsCfg will be nil
- fix setting hostname in tlsCfg it will contain the port number and never correctly match server certs
- Add a test that shows that it now works
- Fix readme as port number is required in soruces
@danielnelson danielnelson added this to the 1.8.2 milestone Oct 17, 2018
@danielnelson danielnelson added the fix pr to fix corresponding bug label Oct 17, 2018
@glinton glinton merged commit 48745c3 into influxdata:master Oct 17, 2018
glinton pushed a commit that referenced this pull request Oct 17, 2018
(cherry picked from commit 48745c3)
@mcfedr mcfedr deleted the x509 branch October 18, 2018 10:38
@astellingwerf
Copy link

@glinton , when can I expected a Docker image with this fix (telegraf:1.8.2-alpine)? The milestone was closed 7 days ago, but I'm unable to use it.

@glinton
Copy link
Contributor

glinton commented Oct 29, 2018

Oops, it seems circle ci was having trouble hitting mit's gpg servers and the tests failed, I've restarted them and will keep a close eye on it today and make sure it gets done today. Thanks for the heads up/reminder.

otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
dupondje pushed a commit to dupondje/telegraf that referenced this pull request Apr 22, 2019
athoune pushed a commit to bearstech/telegraf that referenced this pull request Apr 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix pr to fix corresponding bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants