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

Add verify_cert option #13

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 :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
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: @ssl_certificate_validation
}

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