logstash-input-http_poller 5.4.0 → 5.5.0

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: 959498284e07e414f7be7e02b9df125372526da763a4d273b55fc609186b777c
4
- data.tar.gz: 6a6f4dc0da77770581920f719e9de03f3d81bdc079a61fdb43874e5c09d3afa8
3
+ metadata.gz: f9bb6ac628c27b0cf39017e53059d0c95ed97943bca3484d09bf31e7bd533e3d
4
+ data.tar.gz: be2e97a737e96ab65d098b62f2406676c53219133988516e2f0956bf20099e8e
5
5
  SHA512:
6
- metadata.gz: d3af6dc69528053dcc66ccdef55fbd9dfc56bede4cd383ccd44689a884f601b14b630f1d3accc7d56e86ca41f4bbe544379e7dc8cc23d8794db8b2c6d9fd4711
7
- data.tar.gz: 693a73cc6a442b7b78d15987ea99d84a6a3b5a6143b12261a95eda1a7bfec070650771f66c2a652709470e4c5cebdc5e8f0921c6e3265c3942d168d8bb32aea2
6
+ metadata.gz: cf985f8d5afb0d7209be01db0205837bbe9282a72cbc0ba45f97f5e8bd707f64f2d334f8af5e99f97fc08de4f469ffbad1a502a737d82d71f0c4bc0c2b2f914d
7
+ data.tar.gz: 3b7e745356b87ea2c06a6035aac006f6368996806154f0b4b7e7e299ba158d3427855844607b40abcb15d54c61a2ecd355bf628eea71f3a1406e73e7d2e0eced
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## 5.5.0
2
+ - Added standardized SSL settings and deprecates their non-standard counterparts. Deprecated settings will continue to work, and will provide pipeline maintainers with guidance toward using their standardized counterparts [#141](https://github.com/logstash-plugins/logstash-input-http_poller/pull/141)
3
+ - Added new `ssl_truststore_path`, `ssl_truststore_password`, and `ssl_truststore_type` settings for configuring SSL-trust using a PKCS-12 or JKS trust store, deprecating their `truststore`, `truststore_password`, and `truststore_type` counterparts.
4
+ - Added new `ssl_certificate_authorities` setting for configuring SSL-trust using a PEM-formatted list certificate authorities, deprecating its `cacert` counterpart.
5
+ - Added new `ssl_keystore_path`, `ssl_keystore_password`, and `ssl_keystore_type` settings for configuring SSL-identity using a PKCS-12 or JKS key store, deprecating their `keystore`, `keystore_password`, and `keystore_type` counterparts.
6
+ - Added new `ssl_certificate` and `ssl_key` settings for configuring SSL-identity using a PEM-formatted certificate/key pair, deprecating their `client_cert` and `client_key` counterparts.
7
+ - Added the `ssl_cipher_suites` option
8
+
1
9
  ## 5.4.0
2
10
  - Refactor: start using scheduler mixin [#134](https://github.com/logstash-plugins/logstash-input-http_poller/pull/134)
3
11
 
data/docs/index.asciidoc CHANGED
@@ -126,17 +126,17 @@ This plugin supports the following configuration options plus the <<plugins-{typ
126
126
  |=======================================================================
127
127
  |Setting |Input type|Required
128
128
  | <<plugins-{type}s-{plugin}-automatic_retries>> |<<number,number>>|No
129
- | <<plugins-{type}s-{plugin}-cacert>> |a valid filesystem path|No
130
- | <<plugins-{type}s-{plugin}-client_cert>> |a valid filesystem path|No
131
- | <<plugins-{type}s-{plugin}-client_key>> |a valid filesystem path|No
129
+ | <<plugins-{type}s-{plugin}-cacert>> |a valid filesystem path|__Deprecated__
130
+ | <<plugins-{type}s-{plugin}-client_cert>> |a valid filesystem path|__Deprecated__
131
+ | <<plugins-{type}s-{plugin}-client_key>> |a valid filesystem path|__Deprecated__
132
132
  | <<plugins-{type}s-{plugin}-connect_timeout>> |<<number,number>>|No
133
133
  | <<plugins-{type}s-{plugin}-cookies>> |<<boolean,boolean>>|No
134
134
  | <<plugins-{type}s-{plugin}-ecs_compatibility>> | <<string,string>>|No
135
135
  | <<plugins-{type}s-{plugin}-follow_redirects>> |<<boolean,boolean>>|No
136
136
  | <<plugins-{type}s-{plugin}-keepalive>> |<<boolean,boolean>>|No
137
- | <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|No
138
- | <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|No
139
- | <<plugins-{type}s-{plugin}-keystore_type>> |<<string,string>>|No
137
+ | <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|__Deprecated__
138
+ | <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|__Deprecated__
139
+ | <<plugins-{type}s-{plugin}-keystore_type>> |<<string,string>>|__Deprecated__
140
140
  | <<plugins-{type}s-{plugin}-metadata_target>> |<<string,string>>|No
141
141
  | <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
142
142
  | <<plugins-{type}s-{plugin}-pool_max>> |<<number,number>>|No
@@ -146,12 +146,21 @@ This plugin supports the following configuration options plus the <<plugins-{typ
146
146
  | <<plugins-{type}s-{plugin}-retry_non_idempotent>> |<<boolean,boolean>>|No
147
147
  | <<plugins-{type}s-{plugin}-schedule>> |<<hash,hash>>|Yes
148
148
  | <<plugins-{type}s-{plugin}-socket_timeout>> |<<number,number>>|No
149
- | <<plugins-{type}s-{plugin}-ssl_supported_protocols>> |<<string,string>>|No
149
+ | <<plugins-{type}s-{plugin}-ssl_certificate>> |<<path,path>>|No
150
+ | <<plugins-{type}s-{plugin}-ssl_certificate_authorities>> |list of <<path,path>>|No
151
+ | <<plugins-{type}s-{plugin}-ssl_cipher_suites>> |list of <<string,string>>|No
152
+ | <<plugins-{type}s-{plugin}-ssl_keystore_password>> |<<password,password>>|No
153
+ | <<plugins-{type}s-{plugin}-ssl_keystore_path>> |<<path,path>>|No
154
+ | <<plugins-{type}s-{plugin}-ssl_keystore_type>> |<<string,string>>|No
155
+ | <<plugins-{type}s-{plugin}-ssl_truststore_password>> |<<password,password>>|No
156
+ | <<plugins-{type}s-{plugin}-ssl_truststore_path>> |<<path,path>>|No
157
+ | <<plugins-{type}s-{plugin}-ssl_truststore_type>> |<<string,string>>|No
158
+ | <<plugins-{type}s-{plugin}-ssl_verification_mode>> |<<string,string>>, one of `["full", "none"]`|No
150
159
  | <<plugins-{type}s-{plugin}-ssl_verification_mode>> |<<string,string>>|No
151
160
  | <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
152
- | <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|No
153
- | <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|No
154
- | <<plugins-{type}s-{plugin}-truststore_type>> |<<string,string>>|No
161
+ | <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|__Deprecated__
162
+ | <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|__Deprecated__
163
+ | <<plugins-{type}s-{plugin}-truststore_type>> |<<string,string>>|__Deprecated__
155
164
  | <<plugins-{type}s-{plugin}-urls>> |<<hash,hash>>|Yes
156
165
  | <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
157
166
  | <<plugins-{type}s-{plugin}-validate_after_inactivity>> |<<number,number>>|No
@@ -174,6 +183,7 @@ Note: if `retry_non_idempotent` is set only GET, HEAD, PUT, DELETE, OPTIONS, and
174
183
 
175
184
  [id="plugins-{type}s-{plugin}-cacert"]
176
185
  ===== `cacert`
186
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate_authorities>>]
177
187
 
178
188
  * Value type is <<path,path>>
179
189
  * There is no default value for this setting.
@@ -182,6 +192,7 @@ If you need to use a custom X.509 CA (.pem certs) specify the path to that here
182
192
 
183
193
  [id="plugins-{type}s-{plugin}-client_cert"]
184
194
  ===== `client_cert`
195
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate>>]
185
196
 
186
197
  * Value type is <<path,path>>
187
198
  * There is no default value for this setting.
@@ -190,6 +201,7 @@ If you'd like to use a client certificate (note, most people don't want this) se
190
201
 
191
202
  [id="plugins-{type}s-{plugin}-client_key"]
192
203
  ===== `client_key`
204
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_key>>]
193
205
 
194
206
  * Value type is <<path,path>>
195
207
  * There is no default value for this setting.
@@ -307,6 +319,7 @@ one with this to fix interactions with broken keepalive implementations.
307
319
 
308
320
  [id="plugins-{type}s-{plugin}-keystore"]
309
321
  ===== `keystore`
322
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_path>>]
310
323
 
311
324
  * Value type is <<path,path>>
312
325
  * There is no default value for this setting.
@@ -315,6 +328,7 @@ If you need to use a custom keystore (`.jks`) specify that here. This does not w
315
328
 
316
329
  [id="plugins-{type}s-{plugin}-keystore_password"]
317
330
  ===== `keystore_password`
331
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_password>>]
318
332
 
319
333
  * Value type is <<password,password>>
320
334
  * There is no default value for this setting.
@@ -324,6 +338,7 @@ Note, most .jks files created with keytool require a password!
324
338
 
325
339
  [id="plugins-{type}s-{plugin}-keystore_type"]
326
340
  ===== `keystore_type`
341
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_type>>]
327
342
 
328
343
  * Value type is <<string,string>>
329
344
  * Default value is `"JKS"`
@@ -415,6 +430,67 @@ See: rufus/scheduler for details about different schedule options and value stri
415
430
 
416
431
  Timeout (in seconds) to wait for data on the socket. Default is `10s`
417
432
 
433
+ [id="plugins-{type}s-{plugin}-ssl_certificate"]
434
+ ===== `ssl_certificate`
435
+ * Value type is <<path,path>>
436
+ * There is no default value for this setting.
437
+
438
+ SSL certificate to use to authenticate the client. This certificate should be an OpenSSL-style X.509 certificate file.
439
+
440
+ NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-ssl_key>> is set.
441
+
442
+ [id="plugins-{type}s-{plugin}-ssl_certificate_authorities"]
443
+ ===== `ssl_certificate_authorities`
444
+
445
+ * Value type is a list of <<path,path>>
446
+ * There is no default value for this setting
447
+
448
+ The .cer or .pem CA files to validate the server's certificate.
449
+
450
+ [id="plugins-{type}s-{plugin}-ssl_cipher_suites"]
451
+ ===== `ssl_cipher_suites`
452
+
453
+ * Value type is a list of <<string,string>>
454
+ * There is no default value for this setting
455
+
456
+ The list of cipher suites to use, listed by priorities.
457
+ Supported cipher suites vary depending on the Java and protocol versions.
458
+
459
+ [id="plugins-{type}s-{plugin}-ssl_key"]
460
+ ===== `ssl_key`
461
+
462
+ * Value type is <<path,path>>
463
+ * There is no default value for this setting.
464
+
465
+ OpenSSL-style RSA private key that corresponds to the <<plugins-{type}s-{plugin}-ssl_certificate>>.
466
+
467
+ NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-ssl_certificate>> is set.
468
+
469
+ [id="plugins-{type}s-{plugin}-ssl_keystore_password"]
470
+ ===== `ssl_keystore_password`
471
+
472
+ * Value type is <<password,password>>
473
+ * There is no default value for this setting.
474
+
475
+ Set the keystore password
476
+
477
+ [id="plugins-{type}s-{plugin}-ssl_keystore_path"]
478
+ ===== `ssl_keystore_path`
479
+
480
+ * Value type is <<path,path>>
481
+ * There is no default value for this setting.
482
+
483
+ The keystore used to present a certificate to the server.
484
+ It can be either `.jks` or `.p12`
485
+
486
+ [id="plugins-{type}s-{plugin}-ssl_keystore_type"]
487
+ ===== `ssl_keystore_type`
488
+
489
+ * Value can be any of: `jks`, `pkcs12`
490
+ * If not provided, the value will be inferred from the keystore filename.
491
+
492
+ The format of the keystore file. It must be either `jks` or `pkcs12`.
493
+
418
494
  [id="plugins-{type}s-{plugin}-ssl_supported_protocols"]
419
495
  ===== `ssl_supported_protocols`
420
496
 
@@ -432,6 +508,31 @@ NOTE: If you configure the plugin to use `'TLSv1.1'` on any recent JVM, such as
432
508
  the protocol is disabled by default and needs to be enabled manually by changing `jdk.tls.disabledAlgorithms` in
433
509
  the *$JDK_HOME/conf/security/java.security* configuration file. That is, `TLSv1.1` needs to be removed from the list.
434
510
 
511
+ [id="plugins-{type}s-{plugin}-ssl_truststore_password"]
512
+ ===== `ssl_truststore_password`
513
+
514
+ * Value type is <<password,password>>
515
+ * There is no default value for this setting.
516
+
517
+ Set the truststore password
518
+
519
+ [id="plugins-{type}s-{plugin}-ssl_truststore_path"]
520
+ ===== `ssl_truststore_path`
521
+
522
+ * Value type is <<path,path>>
523
+ * There is no default value for this setting.
524
+
525
+ The truststore to validate the server's certificate.
526
+ It can be either `.jks` or `.p12`.
527
+
528
+ [id="plugins-{type}s-{plugin}-ssl_truststore_type"]
529
+ ===== `ssl_truststore_type`
530
+
531
+ * Value can be any of: `jks`, `pkcs12`
532
+ * If not provided, the value will be inferred from the truststore filename.
533
+
534
+ The format of the truststore file. It must be either `jks` or `pkcs12`.
535
+
435
536
  [id="plugins-{type}s-{plugin}-ssl_verification_mode"]
436
537
  ===== `ssl_verification_mode`
437
538
 
@@ -462,6 +563,7 @@ Example: `codec => json { target => "TARGET_FIELD_NAME" }`
462
563
 
463
564
  [id="plugins-{type}s-{plugin}-truststore"]
464
565
  ===== `truststore`
566
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_path>>]
465
567
 
466
568
  * Value type is <<path,path>>
467
569
  * There is no default value for this setting.
@@ -470,6 +572,7 @@ If you need to use a custom truststore (`.jks`) specify that here. This does not
470
572
 
471
573
  [id="plugins-{type}s-{plugin}-truststore_password"]
472
574
  ===== `truststore_password`
575
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_password>>]
473
576
 
474
577
  * Value type is <<password,password>>
475
578
  * There is no default value for this setting.
@@ -479,6 +582,7 @@ Note, most .jks files created with keytool require a password!
479
582
 
480
583
  [id="plugins-{type}s-{plugin}-truststore_type"]
481
584
  ===== `truststore_type`
585
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_type>>]
482
586
 
483
587
  * Value type is <<string,string>>
484
588
  * Default value is `"JKS"`
@@ -11,7 +11,7 @@ require 'logstash/plugin_mixins/event_support/event_factory_adapter'
11
11
  require 'logstash/plugin_mixins/scheduler'
12
12
 
13
13
  class LogStash::Inputs::HTTP_Poller < LogStash::Inputs::Base
14
- include LogStash::PluginMixins::HttpClient
14
+ include LogStash::PluginMixins::HttpClient[:with_deprecated => true]
15
15
  include LogStash::PluginMixins::ECSCompatibilitySupport(:disabled, :v1, :v8 => :v1)
16
16
  include LogStash::PluginMixins::ECSCompatibilitySupport::TargetCheck
17
17
  include LogStash::PluginMixins::EventSupport::EventFactoryAdapter
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-http_poller'
3
- s.version = '5.4.0'
3
+ s.version = '5.5.0'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Decodes the output of an HTTP API into events"
6
6
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  # Gem dependencies
21
21
  s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
22
22
  s.add_runtime_dependency 'logstash-codec-plain'
23
- s.add_runtime_dependency "logstash-mixin-http_client", ">= 7.2.0"
23
+ s.add_runtime_dependency "logstash-mixin-http_client", ">= 7.3.0", "< 8.0.0"
24
24
  s.add_runtime_dependency 'logstash-mixin-scheduler', '~> 1.0'
25
25
  s.add_runtime_dependency 'logstash-mixin-ecs_compatibility_support', '~>1.3'
26
26
  s.add_runtime_dependency 'logstash-mixin-event_support', '~> 1.0', '>= 1.0.1'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-http_poller
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2022-06-14 00:00:00.000000000 Z
12
+ date: 2023-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,10 @@ dependencies:
50
50
  requirements:
51
51
  - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: 7.2.0
53
+ version: 7.3.0
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 8.0.0
54
57
  name: logstash-mixin-http_client
55
58
  prerelease: false
56
59
  type: :runtime
@@ -58,7 +61,10 @@ dependencies:
58
61
  requirements:
59
62
  - - ">="
60
63
  - !ruby/object:Gem::Version
61
- version: 7.2.0
64
+ version: 7.3.0
65
+ - - "<"
66
+ - !ruby/object:Gem::Version
67
+ version: 8.0.0
62
68
  - !ruby/object:Gem::Dependency
63
69
  requirement: !ruby/object:Gem::Requirement
64
70
  requirements:
@@ -229,7 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
235
  - !ruby/object:Gem::Version
230
236
  version: '0'
231
237
  requirements: []
232
- rubygems_version: 3.1.6
238
+ rubygems_version: 3.2.33
233
239
  signing_key:
234
240
  specification_version: 4
235
241
  summary: Decodes the output of an HTTP API into events