logstash-integration-aws 7.1.2-java → 7.1.4-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4f6e46b00a5cb0487616ed1720d776ae6d589d89e5be4a6d55a9b53c7e51cb0
4
- data.tar.gz: 7f964cd0dc2e9ea1677fa7fefd3b0cc211739a1548b2359eb7586c6cde1a98c8
3
+ metadata.gz: a30619ed8bc31761d0134555c20ba7f9e682cce080d89d36e83cbc1a402d4678
4
+ data.tar.gz: f1b9247104f4e1ad28b6bab42696ebf064f9fac37d0cfdcf03a3269bcb25566b
5
5
  SHA512:
6
- metadata.gz: cb8df373a0e770f985cb1510a6ff90c2dfca243f131c40dd8ca56a4423fa03a06d89fd380b66ba9125f5b89fc8d49f5a9c55764d8285fb820e0ea36aefac6b49
7
- data.tar.gz: 4e4d5e964240f264ad1d8c15e3c09b3c8ea68a2fdb04616223d13f40970763af75597d8e3164ef623104ae5fbb0acfce9fd4d24d1c542c7cb12fd1c357b399bf
6
+ metadata.gz: b424d54d88b11c1cdc12b5d27e5da5d6c3900331f4dab53d0f6931ddfa4adaf678251103f3ec7f70ae3a52c632ed83138efe153efd122d84ff916e7091e09fa7
7
+ data.tar.gz: d585032f64c6f9f3ffcc91653bf06446e157e6c2f4f1370f084ab18967b900e64a36f0df76e4b5325380b19ed795fbe4e91a7039737270a106ad9b57d78d1634
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 7.1.4
2
+ - Fix `use_aws_bundled_ca` to use bundled ca certs per plugin level instead of global [#33](https://github.com/logstash-plugins/logstash-integration-aws/pull/33)
3
+
4
+ ## 7.1.3
5
+ - Added an option `use_aws_bundled_ca` to use bundled ca certs that ships with AWS SDK to verify SSL peer certificates [#32](https://github.com/logstash-plugins/logstash-integration-aws/pull/32)
6
+
1
7
  ## 7.1.2
2
8
  - Fix: adaptations to run with JRuby 9.4 [#29](https://github.com/logstash-plugins/logstash-integration-aws/pull/29)
3
9
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 7.1.2
1
+ 7.1.4
@@ -125,6 +125,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
125
125
  | <<plugins-{type}s-{plugin}-secret_access_key>> |<<string,string>>|No
126
126
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
127
127
  | <<plugins-{type}s-{plugin}-statistics>> |<<array,array>>|No
128
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
128
129
  | <<plugins-{type}s-{plugin}-use_ssl>> |<<boolean,boolean>>|No
129
130
  |=======================================================================
130
131
 
@@ -301,6 +302,16 @@ The AWS Session token for temporary credential
301
302
 
302
303
  Specify the statistics to fetch for each namespace
303
304
 
305
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
306
+ ===== `use_aws_bundled_ca`
307
+
308
+ * Value type is <<boolean,boolean>>
309
+ * Default value is `false`
310
+
311
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
312
+ For cases where the default certificates are unavailable, e.g. Windows,
313
+ you can set this to `true`.
314
+
304
315
  [id="plugins-{type}s-{plugin}-use_ssl"]
305
316
  ===== `use_ssl`
306
317
 
@@ -313,7 +324,6 @@ Should we require (true) or disable (false) using SSL for communicating with the
313
324
  The AWS SDK for Ruby defaults to SSL so we preserve that
314
325
 
315
326
 
316
-
317
327
  [id="plugins-{type}s-{plugin}-common-options"]
318
328
  include::{include_path}/{type}.asciidoc[]
319
329
 
@@ -78,6 +78,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
78
78
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
79
79
  | <<plugins-{type}s-{plugin}-sincedb_path>> |<<string,string>>|No
80
80
  | <<plugins-{type}s-{plugin}-temporary_directory>> |<<string,string>>|No
81
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
81
82
  | <<plugins-{type}s-{plugin}-watch_for_new_files>> |<<boolean,boolean>>|No
82
83
  |=======================================================================
83
84
 
@@ -331,6 +332,16 @@ If specified, this setting must be a filename path and not just a directory.
331
332
 
332
333
  Set the directory where logstash will store the tmp files before processing them.
333
334
 
335
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
336
+ ===== `use_aws_bundled_ca`
337
+
338
+ * Value type is <<boolean,boolean>>
339
+ * Default value is `false`
340
+
341
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
342
+ For cases where the default certificates are unavailable, e.g. Windows,
343
+ you can set this to `true`.
344
+
334
345
  [id="plugins-{type}s-{plugin}-watch_for_new_files"]
335
346
  ===== `watch_for_new_files`
336
347
 
@@ -102,6 +102,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
102
102
  | <<plugins-{type}s-{plugin}-sent_timestamp_field>> |<<string,string>>|No
103
103
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
104
104
  | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
105
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
105
106
  |=======================================================================
106
107
 
107
108
  Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
@@ -278,7 +279,15 @@ The AWS Session token for temporary credential
278
279
  * Default value is `1`
279
280
 
280
281
 
282
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
283
+ ===== `use_aws_bundled_ca`
281
284
 
285
+ * Value type is <<boolean,boolean>>
286
+ * Default value is `false`
287
+
288
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
289
+ For cases where the default certificates are unavailable, e.g. Windows,
290
+ you can set this to `true`.
282
291
 
283
292
 
284
293
  [id="plugins-{type}s-{plugin}-common-options"]
@@ -106,6 +106,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
106
106
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
107
107
  | <<plugins-{type}s-{plugin}-timeframe>> |<<string,string>>|No
108
108
  | <<plugins-{type}s-{plugin}-unit>> |<<string,string>>, one of `["Seconds", "Microseconds", "Milliseconds", "Bytes", "Kilobytes", "Megabytes", "Gigabytes", "Terabytes", "Bits", "Kilobits", "Megabits", "Gigabits", "Terabits", "Percent", "Count", "Bytes/Second", "Kilobytes/Second", "Megabytes/Second", "Gigabytes/Second", "Terabytes/Second", "Bits/Second", "Kilobits/Second", "Megabits/Second", "Gigabits/Second", "Terabits/Second", "Count/Second", "None"]`|No
109
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
109
110
  | <<plugins-{type}s-{plugin}-value>> |<<string,string>>|No
110
111
  |=======================================================================
111
112
 
@@ -302,6 +303,16 @@ See the Rufus Scheduler docs for an https://github.com/jmettraux/rufus-scheduler
302
303
  The default unit to use for events which do not have a `CW_unit` field
303
304
  If you set this option you should probably set the "value" option along with it
304
305
 
306
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
307
+ ===== `use_aws_bundled_ca`
308
+
309
+ * Value type is <<boolean,boolean>>
310
+ * Default value is `false`
311
+
312
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
313
+ For cases where the default certificates are unavailable, e.g. Windows,
314
+ you can set this to `true`.
315
+
305
316
  [id="plugins-{type}s-{plugin}-value"]
306
317
  ===== `value`
307
318
 
@@ -113,6 +113,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
113
113
  | <<plugins-{type}s-{plugin}-upload_multipart_threshold>> |<<number,number>>|No
114
114
  | <<plugins-{type}s-{plugin}-upload_queue_size>> |<<number,number>>|No
115
115
  | <<plugins-{type}s-{plugin}-upload_workers_count>> |<<number,number>>|No
116
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
116
117
  | <<plugins-{type}s-{plugin}-validate_credentials_on_root_bucket>> |<<boolean,boolean>>|No
117
118
  |=======================================================================
118
119
 
@@ -425,6 +426,16 @@ Number of items we can keep in the local queue before uploading them
425
426
 
426
427
  Specify how many workers to use to upload the files to S3
427
428
 
429
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
430
+ ===== `use_aws_bundled_ca`
431
+
432
+ * Value type is <<boolean,boolean>>
433
+ * Default value is `false`
434
+
435
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
436
+ For cases where the default certificates are unavailable, e.g. Windows,
437
+ you can set this to `true`.
438
+
428
439
  [id="plugins-{type}s-{plugin}-validate_credentials_on_root_bucket"]
429
440
  ===== `validate_credentials_on_root_bucket`
430
441
 
@@ -65,6 +65,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
65
65
  | <<plugins-{type}s-{plugin}-region>> |<<string,string>>, one of `["us-east-1", "us-east-2", "us-west-1", "us-west-2", "eu-central-1", "eu-west-1", "eu-west-2", "ap-southeast-1", "ap-southeast-2", "ap-northeast-1", "ap-northeast-2", "sa-east-1", "us-gov-west-1", "cn-north-1", "ap-south-1", "ca-central-1"]`|No
66
66
  | <<plugins-{type}s-{plugin}-secret_access_key>> |<<string,string>>|No
67
67
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
68
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
68
69
  |=======================================================================
69
70
 
70
71
  Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
@@ -158,6 +159,15 @@ The AWS Secret Access Key
158
159
 
159
160
  The AWS Session token for temporary credential
160
161
 
162
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
163
+ ===== `use_aws_bundled_ca`
164
+
165
+ * Value type is <<boolean,boolean>>
166
+ * Default value is `false`
167
+
168
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
169
+ For cases where the default certificates are unavailable, e.g. Windows,
170
+ you can set this to `true`.
161
171
 
162
172
 
163
173
  [id="plugins-{type}s-{plugin}-common-options"]
@@ -97,6 +97,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
97
97
  | <<plugins-{type}s-{plugin}-role_session_name>> |<<string,string>>|No
98
98
  | <<plugins-{type}s-{plugin}-secret_access_key>> |<<string,string>>|No
99
99
  | <<plugins-{type}s-{plugin}-session_token>> |<<string,string>>|No
100
+ | <<plugins-{type}s-{plugin}-use_aws_bundled_ca>> |<<boolean,boolean>>|No
100
101
  |=======================================================================
101
102
 
102
103
  Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
@@ -234,7 +235,15 @@ The AWS Secret Access Key
234
235
 
235
236
  The AWS Session token for temporary credential
236
237
 
238
+ [id="plugins-{type}s-{plugin}-use_aws_bundled_ca"]
239
+ ===== `use_aws_bundled_ca`
237
240
 
241
+ * Value type is <<boolean,boolean>>
242
+ * Default value is `false`
243
+
244
+ Use bundled CA certificates that ship with AWS SDK to verify SSL peer certificates.
245
+ For cases where the default certificates are unavailable, e.g. Windows,
246
+ you can set this to `true`.
238
247
 
239
248
  [id="plugins-{type}s-{plugin}-common-options"]
240
249
  include::{include_path}/{type}.asciidoc[]
@@ -50,5 +50,12 @@ module LogStash::PluginMixins::AwsConfig::Generic
50
50
  # ----------------------------------
51
51
  #
52
52
  config :aws_credentials_file, :validate => :string
53
+
54
+ # By default, this plugin uses cert available to OpenSSL provided by OS
55
+ # when verifying SSL peer certificates.
56
+ # For cases where the default cert is unavailable, e.g. Windows,
57
+ # you can use the bundled ca certificate provided by AWS SDK
58
+ # by setting `use_aws_bundled_ca` to true
59
+ config :use_aws_bundled_ca, :validate => :boolean, :default => false
53
60
  end
54
61
  end
@@ -35,6 +35,13 @@ module LogStash::PluginMixins::AwsConfig::V2
35
35
  opts = symbolize_keys_and_cast_true_false(additional_settings).merge(opts)
36
36
  end
37
37
 
38
+ if @use_aws_bundled_ca
39
+ aws_core_library = Gem.loaded_specs['aws-sdk-core']&.full_gem_path or fail("AWS Core library not available")
40
+ opts[:ssl_ca_bundle] = File.expand_path('ca-bundle.crt', aws_core_library).tap do |aws_core_ca_bundle|
41
+ fail("AWS Core CA bundle not found") unless File.exists?(aws_core_ca_bundle)
42
+ end
43
+ end
44
+
38
45
  return opts
39
46
  end
40
47
 
@@ -1,4 +1,4 @@
1
1
  # AUTOGENERATED BY THE GRADLE SCRIPT. DO NOT EDIT.
2
2
 
3
3
  require 'jar_dependencies'
4
- require_jar('org.logstash.plugins.integration.aws', 'logstash-integration-aws', '7.1.2')
4
+ require_jar('org.logstash.plugins.integration.aws', 'logstash-integration-aws', '7.1.4')
@@ -152,6 +152,25 @@ describe LogStash::PluginMixins::AwsConfig::V2 do
152
152
 
153
153
  end
154
154
  end
155
+
156
+ end
157
+
158
+ describe 'use aws bundled ca' do
159
+ context 'set to true' do
160
+ let(:settings) { { 'use_aws_bundled_ca' => true } }
161
+
162
+ it 'points ssl_ca_bundle to aws-sdk-core certs' do
163
+ expect(subject[:ssl_ca_bundle]).to match /aws-sdk-core.*ca-bundle\.crt\z/
164
+ end
165
+ end
166
+
167
+ context 'set to false' do
168
+ let(:settings) { { 'use_aws_bundled_ca' => false } }
169
+
170
+ it 'does not include the AWS bundled CA' do
171
+ expect(subject).to_not include :ssl_ca_bundle
172
+ end
173
+ end
155
174
  end
156
175
 
157
176
  describe 'config proxy' do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-integration-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.2
4
+ version: 7.1.4
5
5
  platform: java
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-08 00:00:00.000000000 Z
11
+ date: 2023-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -408,7 +408,7 @@ files:
408
408
  - spec/spec_helper.rb
409
409
  - spec/support/helpers.rb
410
410
  - spec/unit/outputs/sqs_spec.rb
411
- - vendor/jar-dependencies/org/logstash/plugins/integration/aws/logstash-integration-aws/7.1.2/logstash-integration-aws-7.1.2.jar
411
+ - vendor/jar-dependencies/org/logstash/plugins/integration/aws/logstash-integration-aws/7.1.4/logstash-integration-aws-7.1.4.jar
412
412
  homepage: http://www.elastic.co/guide/en/logstash/current/index.html
413
413
  licenses:
414
414
  - Apache-2.0