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

Unsecure ssl support #92

Open
wants to merge 11 commits into
base: master
Choose a base branch
from

Conversation

royshahaf
Copy link

@royshahaf royshahaf commented Sep 5, 2018

Hey,

While using this repo on-prem and trying to get https to work (I write both the server and the client, and was trying to self-sign certificates while our CA was unavailable), I encountered the following issue:
When influxdb is using an unsecure certificate (for example, if the CA that signed it is not trusted), InfluxDbHttpSender cannot send metrics to influxdb (client will refuse to connect to an untrusted influxdb).

While I agree this default behavior sounds like a good choice, I wanted to allow unsecure https for the sake of https integration when a CA is unavailable.

I made the changes in my own fork (on-prem) but thought it may be nice to port them back to the community.

InfluxDbHttpSender - using
http://www.nakov.com/blog/2009/07/16/disable-certificate-validation-in-java-ssl-connections/
as reference, use additional parameters to disable cert/hostname
verification, if unsecure ssl is required.

InfluxDbReporterFactory - support the new parameters when read through
json properties

README.md - updated to reflect additional parameters and their default
values
InfluxDbHttpSenderTest.shouldThrowConnectException throws
SocketTimeoutException for slow / non-responsive setups, fixed by making
the timeout 0
@coveralls
Copy link

coveralls commented Sep 5, 2018

Coverage Status

Coverage increased (+0.7%) to 79.559% when pulling e0513a1 on royshahaf:unsecure-ssl-support into 05e68bd on iZettle:master.

@royshahaf
Copy link
Author

Well, some response would be nice...
Is this project discontinued?

@royshahaf royshahaf closed this Sep 12, 2018
@royshahaf royshahaf reopened this Sep 12, 2018
@pp-tim
Copy link
Contributor

pp-tim commented Apr 7, 2020

Hi @royshahaf yes it is somewhat in a state of dormancy and contributions aren't actively inspected as you can see by the very late reply here!

@royshahaf
Copy link
Author

Hi @royshahaf yes it is somewhat in a state of dormancy and contributions are actively inspected as you can see by the very late reply here!

I see :)
That's ok.

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.

3 participants