logstash-input-http_poller 5.4.0 → 5.5.1

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: a45c26dfd75519de8544e929600b9fbff56d85ff91daf37f0e03f3c76fd6624d
4
+ data.tar.gz: 7fa56b3005fdd14a0d0fdeaf34e6da2cfbba41e8520991834f462a20dfbe4412
5
5
  SHA512:
6
- metadata.gz: d3af6dc69528053dcc66ccdef55fbd9dfc56bede4cd383ccd44689a884f601b14b630f1d3accc7d56e86ca41f4bbe544379e7dc8cc23d8794db8b2c6d9fd4711
7
- data.tar.gz: 693a73cc6a442b7b78d15987ea99d84a6a3b5a6143b12261a95eda1a7bfec070650771f66c2a652709470e4c5cebdc5e8f0921c6e3265c3942d168d8bb32aea2
6
+ metadata.gz: d61feb2d7f15d955c8e6a6cbae7f377494871c8f22c6e627aa72aabdc72e9e3f0effa634a5027609e5b58493aa3effdc7203a59c58a850a4e77ec49c340f296f
7
+ data.tar.gz: 54b68d8607415252e81693f99e3d23056779fdc37f323ff34b14a2defbfc9d5d05aea5fd514878973a172b7c9c8dc0ef5d1a39c30cd29ca79d569eeff90b00ca
data/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 5.5.1
2
+ - [DOC]Remove redundant table items [#142](https://github.com/logstash-plugins/logstash-input-http_poller/pull/142)
3
+
4
+ ## 5.5.0
5
+ - 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)
6
+ - 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.
7
+ - Added new `ssl_certificate_authorities` setting for configuring SSL-trust using a PEM-formatted list certificate authorities, deprecating its `cacert` counterpart.
8
+ - 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.
9
+ - 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.
10
+ - Added the `ssl_cipher_suites` option
11
+
1
12
  ## 5.4.0
2
13
  - Refactor: start using scheduler mixin [#134](https://github.com/logstash-plugins/logstash-input-http_poller/pull/134)
3
14
 
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,20 @@ 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
150
- | <<plugins-{type}s-{plugin}-ssl_verification_mode>> |<<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
151
159
  | <<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
160
+ | <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|__Deprecated__
161
+ | <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|__Deprecated__
162
+ | <<plugins-{type}s-{plugin}-truststore_type>> |<<string,string>>|__Deprecated__
155
163
  | <<plugins-{type}s-{plugin}-urls>> |<<hash,hash>>|Yes
156
164
  | <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
157
165
  | <<plugins-{type}s-{plugin}-validate_after_inactivity>> |<<number,number>>|No
@@ -174,6 +182,7 @@ Note: if `retry_non_idempotent` is set only GET, HEAD, PUT, DELETE, OPTIONS, and
174
182
 
175
183
  [id="plugins-{type}s-{plugin}-cacert"]
176
184
  ===== `cacert`
185
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate_authorities>>]
177
186
 
178
187
  * Value type is <<path,path>>
179
188
  * There is no default value for this setting.
@@ -182,6 +191,7 @@ If you need to use a custom X.509 CA (.pem certs) specify the path to that here
182
191
 
183
192
  [id="plugins-{type}s-{plugin}-client_cert"]
184
193
  ===== `client_cert`
194
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_certificate>>]
185
195
 
186
196
  * Value type is <<path,path>>
187
197
  * There is no default value for this setting.
@@ -190,6 +200,7 @@ If you'd like to use a client certificate (note, most people don't want this) se
190
200
 
191
201
  [id="plugins-{type}s-{plugin}-client_key"]
192
202
  ===== `client_key`
203
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_key>>]
193
204
 
194
205
  * Value type is <<path,path>>
195
206
  * There is no default value for this setting.
@@ -307,6 +318,7 @@ one with this to fix interactions with broken keepalive implementations.
307
318
 
308
319
  [id="plugins-{type}s-{plugin}-keystore"]
309
320
  ===== `keystore`
321
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_path>>]
310
322
 
311
323
  * Value type is <<path,path>>
312
324
  * There is no default value for this setting.
@@ -315,6 +327,7 @@ If you need to use a custom keystore (`.jks`) specify that here. This does not w
315
327
 
316
328
  [id="plugins-{type}s-{plugin}-keystore_password"]
317
329
  ===== `keystore_password`
330
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_password>>]
318
331
 
319
332
  * Value type is <<password,password>>
320
333
  * There is no default value for this setting.
@@ -324,6 +337,7 @@ Note, most .jks files created with keytool require a password!
324
337
 
325
338
  [id="plugins-{type}s-{plugin}-keystore_type"]
326
339
  ===== `keystore_type`
340
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_keystore_type>>]
327
341
 
328
342
  * Value type is <<string,string>>
329
343
  * Default value is `"JKS"`
@@ -415,6 +429,67 @@ See: rufus/scheduler for details about different schedule options and value stri
415
429
 
416
430
  Timeout (in seconds) to wait for data on the socket. Default is `10s`
417
431
 
432
+ [id="plugins-{type}s-{plugin}-ssl_certificate"]
433
+ ===== `ssl_certificate`
434
+ * Value type is <<path,path>>
435
+ * There is no default value for this setting.
436
+
437
+ SSL certificate to use to authenticate the client. This certificate should be an OpenSSL-style X.509 certificate file.
438
+
439
+ NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-ssl_key>> is set.
440
+
441
+ [id="plugins-{type}s-{plugin}-ssl_certificate_authorities"]
442
+ ===== `ssl_certificate_authorities`
443
+
444
+ * Value type is a list of <<path,path>>
445
+ * There is no default value for this setting
446
+
447
+ The .cer or .pem CA files to validate the server's certificate.
448
+
449
+ [id="plugins-{type}s-{plugin}-ssl_cipher_suites"]
450
+ ===== `ssl_cipher_suites`
451
+
452
+ * Value type is a list of <<string,string>>
453
+ * There is no default value for this setting
454
+
455
+ The list of cipher suites to use, listed by priorities.
456
+ Supported cipher suites vary depending on the Java and protocol versions.
457
+
458
+ [id="plugins-{type}s-{plugin}-ssl_key"]
459
+ ===== `ssl_key`
460
+
461
+ * Value type is <<path,path>>
462
+ * There is no default value for this setting.
463
+
464
+ OpenSSL-style RSA private key that corresponds to the <<plugins-{type}s-{plugin}-ssl_certificate>>.
465
+
466
+ NOTE: This setting can be used only if <<plugins-{type}s-{plugin}-ssl_certificate>> is set.
467
+
468
+ [id="plugins-{type}s-{plugin}-ssl_keystore_password"]
469
+ ===== `ssl_keystore_password`
470
+
471
+ * Value type is <<password,password>>
472
+ * There is no default value for this setting.
473
+
474
+ Set the keystore password
475
+
476
+ [id="plugins-{type}s-{plugin}-ssl_keystore_path"]
477
+ ===== `ssl_keystore_path`
478
+
479
+ * Value type is <<path,path>>
480
+ * There is no default value for this setting.
481
+
482
+ The keystore used to present a certificate to the server.
483
+ It can be either `.jks` or `.p12`
484
+
485
+ [id="plugins-{type}s-{plugin}-ssl_keystore_type"]
486
+ ===== `ssl_keystore_type`
487
+
488
+ * Value can be any of: `jks`, `pkcs12`
489
+ * If not provided, the value will be inferred from the keystore filename.
490
+
491
+ The format of the keystore file. It must be either `jks` or `pkcs12`.
492
+
418
493
  [id="plugins-{type}s-{plugin}-ssl_supported_protocols"]
419
494
  ===== `ssl_supported_protocols`
420
495
 
@@ -432,6 +507,31 @@ NOTE: If you configure the plugin to use `'TLSv1.1'` on any recent JVM, such as
432
507
  the protocol is disabled by default and needs to be enabled manually by changing `jdk.tls.disabledAlgorithms` in
433
508
  the *$JDK_HOME/conf/security/java.security* configuration file. That is, `TLSv1.1` needs to be removed from the list.
434
509
 
510
+ [id="plugins-{type}s-{plugin}-ssl_truststore_password"]
511
+ ===== `ssl_truststore_password`
512
+
513
+ * Value type is <<password,password>>
514
+ * There is no default value for this setting.
515
+
516
+ Set the truststore password
517
+
518
+ [id="plugins-{type}s-{plugin}-ssl_truststore_path"]
519
+ ===== `ssl_truststore_path`
520
+
521
+ * Value type is <<path,path>>
522
+ * There is no default value for this setting.
523
+
524
+ The truststore to validate the server's certificate.
525
+ It can be either `.jks` or `.p12`.
526
+
527
+ [id="plugins-{type}s-{plugin}-ssl_truststore_type"]
528
+ ===== `ssl_truststore_type`
529
+
530
+ * Value can be any of: `jks`, `pkcs12`
531
+ * If not provided, the value will be inferred from the truststore filename.
532
+
533
+ The format of the truststore file. It must be either `jks` or `pkcs12`.
534
+
435
535
  [id="plugins-{type}s-{plugin}-ssl_verification_mode"]
436
536
  ===== `ssl_verification_mode`
437
537
 
@@ -462,6 +562,7 @@ Example: `codec => json { target => "TARGET_FIELD_NAME" }`
462
562
 
463
563
  [id="plugins-{type}s-{plugin}-truststore"]
464
564
  ===== `truststore`
565
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_path>>]
465
566
 
466
567
  * Value type is <<path,path>>
467
568
  * There is no default value for this setting.
@@ -470,6 +571,7 @@ If you need to use a custom truststore (`.jks`) specify that here. This does not
470
571
 
471
572
  [id="plugins-{type}s-{plugin}-truststore_password"]
472
573
  ===== `truststore_password`
574
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_password>>]
473
575
 
474
576
  * Value type is <<password,password>>
475
577
  * There is no default value for this setting.
@@ -479,6 +581,7 @@ Note, most .jks files created with keytool require a password!
479
581
 
480
582
  [id="plugins-{type}s-{plugin}-truststore_type"]
481
583
  ===== `truststore_type`
584
+ deprecated[5.5.0, Replaced by <<plugins-{type}s-{plugin}-ssl_truststore_type>>]
482
585
 
483
586
  * Value type is <<string,string>>
484
587
  * 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.1'
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.1
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-11-13 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