fluent-plugin-rabbitmq 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d19f4fe4911a5441010f37f67a288b18e47ff6bb8864bc934bf672b8fc66691f
4
- data.tar.gz: 72c7d7999c485d04775acfb10e542f5b35291e6a8aadc76bd4bee627d5acc97d
3
+ metadata.gz: b176f575d9bab4d2bb68bff2a8790e88df1c0f7df266ee0f725f364e14e49c47
4
+ data.tar.gz: 73484875820d9c48ab7c828f49f43e31ec4c067a34dc3b549fe72d9cc261e0e6
5
5
  SHA512:
6
- metadata.gz: d4784b7fbb892914c5605d64d30f1be87b4fbb13328ece921cc00443ca98319b2582b77b51bac19cb3552dfe205f5de20da68a630787fec4bd4f41bdfc588d14
7
- data.tar.gz: 95bc51c1becff3512b1929cb08e453bba8bc8c3d774c72e9c811f08c25d39a5ead02055fb46ce6b5fde1b5d08e622fb6b3681a3ea310d76c80e652271c860281
6
+ metadata.gz: c0c82dbfd41cd7aa0b4ff3642580896c2449dbcf905e77ce2aff0ad5a6ccc5a9f78a167a222e61698b99f4d2c10e98b143beb1e975f41ee0ce8031db52e499b6
7
+ data.tar.gz: 043bc89bb9df0097943a88fdfa9bc1da3b45b4030fa8636fdd16bdb8626492c92c9c59ed5d296d6bc7f4d112dc5f76c7d94c7fcdaf9f6099b8e5d349c49a8d55
data/README.md CHANGED
@@ -113,6 +113,8 @@ tls_cert /path/to/cert
113
113
  tls_key /path/to/key
114
114
  tls_ca_certificates ["/path/to/ca_certificate"]
115
115
  verify_peer true
116
+ tls_protocol TLSv1_3 # pin a TLS version instead of negotiating, e.g. TLSv1_2 or TLSv1_3
117
+ tls_silence_warnings false # suppress Bunny's warnings about a missing client certificate and disabled peer verification
116
118
  ```
117
119
 
118
120
  ### Other Configurations for Input/Output
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  Gem::Specification.new do |spec|
5
5
  spec.name = "fluent-plugin-rabbitmq"
6
- spec.version = "0.1.6"
6
+ spec.version = "0.1.7"
7
7
  spec.authors = ["NTT DOCOMO BUSINESS"]
8
8
  spec.email = ["masaki.matsushita@ntt.com"]
9
9
 
@@ -60,6 +60,8 @@ module Fluent::Plugin
60
60
  config_param :tls_key, :string, default: nil
61
61
  config_param :tls_ca_certificates, :array, default: nil
62
62
  config_param :verify_peer, :bool, default: true
63
+ config_param :tls_protocol, :string, default: nil
64
+ config_param :tls_silence_warnings, :bool, default: nil
63
65
 
64
66
  config_param :queue, :string
65
67
  config_param :durable, :bool, default: false
@@ -109,6 +111,9 @@ module Fluent::Plugin
109
111
  bunny_options[:tls_key] = @tls_key if @tls_key
110
112
  bunny_options[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
111
113
  bunny_options[:verify_peer] = @verify_peer
114
+ # Bunny resolves the version against a table keyed by symbols, e.g. :TLSv1_3
115
+ bunny_options[:tls_protocol] = @tls_protocol.to_sym if @tls_protocol
116
+ bunny_options[:tls_silence_warnings] = @tls_silence_warnings unless @tls_silence_warnings.nil?
112
117
 
113
118
  @parser = parser_create
114
119
 
@@ -48,6 +48,8 @@ module Fluent::Plugin
48
48
  config_param :tls_key, :string, default: nil
49
49
  config_param :tls_ca_certificates, :array, default: nil
50
50
  config_param :verify_peer, :bool, default: true
51
+ config_param :tls_protocol, :string, default: nil
52
+ config_param :tls_silence_warnings, :bool, default: nil
51
53
 
52
54
  config_param :exchange, :string
53
55
  config_param :exchange_type, :string
@@ -96,6 +98,9 @@ module Fluent::Plugin
96
98
  bunny_options[:tls_key] = @tls_key if @tls_key
97
99
  bunny_options[:tls_ca_certificates] = @tls_ca_certificates if @tls_ca_certificates
98
100
  bunny_options[:verify_peer] = @verify_peer
101
+ # Bunny resolves the version against a table keyed by symbols, e.g. :TLSv1_3
102
+ bunny_options[:tls_protocol] = @tls_protocol.to_sym if @tls_protocol
103
+ bunny_options[:tls_silence_warnings] = @tls_silence_warnings unless @tls_silence_warnings.nil?
99
104
 
100
105
  @bunny = Bunny.new(bunny_options)
101
106
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-rabbitmq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - NTT DOCOMO BUSINESS