diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f79b69..78b1492 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,5 @@ +# 1.0.2 + * Add 'verify_cert' config option # 1.0.1 * Default to 0 automatic_retries # 1.0.0 diff --git a/lib/logstash/plugin_mixins/http_client.rb b/lib/logstash/plugin_mixins/http_client.rb index 454f358..2de36c6 100644 --- a/lib/logstash/plugin_mixins/http_client.rb +++ b/lib/logstash/plugin_mixins/http_client.rb @@ -39,7 +39,11 @@ def setup_http_client_config # How many times should the client retry a failing URL? Default is `0` config :automatic_retries, :validate => :number, :default => 0 - # If you need to use a custom X.509 CA (`.pem` certs) specify the path to that here + # Set this to false to disable SSL/TLS certificate validation + # Note: setting this to false is generally considered insecure! + config :ssl_certificate_validation, :validate => :boolean, :default => true + + # If you need to use a custom X.509 CA (.pem certs) specify the path to that here config :cacert, :validate => :path # If you need to use a custom keystore (`.jks`) specify that here @@ -80,7 +84,8 @@ def client_config pool_max: @pool_max, pool_max_per_route: @pool_max_per_route, cookies: @cookies, - keepalive: @keepalive + keepalive: @keepalive, + verify: @ssl_certificate_validation } if @proxy diff --git a/logstash-mixin-http_client.gemspec b/logstash-mixin-http_client.gemspec index 25f0b04..4f0593e 100644 --- a/logstash-mixin-http_client.gemspec +++ b/logstash-mixin-http_client.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |s| s.name = 'logstash-mixin-http_client' - s.version = '1.0.1' + s.version = '1.0.2' s.licenses = ['Apache License (2.0)'] s.summary = "AWS mixins to provide a unified interface for Amazon Webservice" s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"