Skip to content

Commit

Permalink
Add verify_cert option
Browse files Browse the repository at this point in the history
Fixes #13
  • Loading branch information
andrewvc authored and jordansissel committed Aug 5, 2015
1 parent 01b5f19 commit c7106be
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# 1.0.2
* Add 'verify_cert' config option
# 1.0.1
* Default to 0 automatic_retries
# 1.0.0
Expand Down
9 changes: 7 additions & 2 deletions lib/logstash/plugin_mixins/http_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 :verify_cert, :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
Expand Down Expand Up @@ -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: @verify_cert
}

if @proxy
Expand Down
2 changes: 1 addition & 1 deletion logstash-mixin-http_client.gemspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit c7106be

Please sign in to comment.