logstash-integration-aws 7.1.3-java → 7.1.5-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/VERSION +1 -1
- data/docs/input-s3.asciidoc +1 -1
- data/docs/input-sqs.asciidoc +1 -1
- data/docs/output-s3.asciidoc +1 -1
- data/lib/logstash/inputs/cloudwatch.rb +0 -2
- data/lib/logstash/inputs/s3.rb +0 -1
- data/lib/logstash/inputs/sqs.rb +0 -1
- data/lib/logstash/outputs/cloudwatch.rb +0 -1
- data/lib/logstash/outputs/s3.rb +0 -2
- data/lib/logstash/outputs/sns.rb +0 -1
- data/lib/logstash/outputs/sqs.rb +0 -1
- data/lib/logstash/plugin_mixins/aws_config/v2.rb +7 -4
- data/lib/logstash-integration-aws_jars.rb +1 -1
- data/spec/plugin_mixin/aws_config_spec.rb +19 -0
- data/vendor/jar-dependencies/org/logstash/plugins/integration/aws/logstash-integration-aws/{7.1.3/logstash-integration-aws-7.1.3.jar → 7.1.5/logstash-integration-aws-7.1.5.jar} +0 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77814112cf4be9a2155d84247dab1157ee8a9b1a075b92ed3888b7a9d66ccf8a
|
4
|
+
data.tar.gz: bb70280e923a6375f7ec8834f42c753483c150325bb4fc566d213f3addc78a61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9999ddefbccde321a77933296295295550fa4e2651af60f8f7cd0dfb615dece6300bb34a010d6c3600d4313d53ed34f75274c91c662083c165cbdd1df69cd90a
|
7
|
+
data.tar.gz: 771d356b646e22616732ff35ed1ef6df791c4bf423e38dcbd6b7460bb0992fb2a6176c0a2cff74bc3c67e93353356f152a156edf2ecbc3c05eaac112210dcea3
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
## 7.1.5
|
2
|
+
- Fix external documentation links [#35](https://github.com/logstash-plugins/logstash-integration-aws/pull/35)
|
3
|
+
|
4
|
+
## 7.1.4
|
5
|
+
- 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)
|
6
|
+
|
1
7
|
## 7.1.3
|
2
8
|
- 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)
|
3
9
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.1.
|
1
|
+
7.1.5
|
data/docs/input-s3.asciidoc
CHANGED
@@ -109,7 +109,7 @@ This plugin uses the AWS SDK and supports several ways to get credentials, which
|
|
109
109
|
* Default value is `{}`
|
110
110
|
|
111
111
|
Key-value pairs of settings and corresponding values used to parametrize
|
112
|
-
the connection to s3. See full list in https://docs.aws.amazon.com/
|
112
|
+
the connection to s3. See full list in https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html[the AWS SDK documentation]. Example:
|
113
113
|
|
114
114
|
[source,ruby]
|
115
115
|
input {
|
data/docs/input-sqs.asciidoc
CHANGED
@@ -131,7 +131,7 @@ This plugin uses the AWS SDK and supports several ways to get credentials, which
|
|
131
131
|
* Default value is `{}`
|
132
132
|
|
133
133
|
Key-value pairs of settings and corresponding values used to parametrize
|
134
|
-
the connection to SQS. See full list in https://docs.aws.amazon.com/sdk-for-ruby/
|
134
|
+
the connection to SQS. See full list in https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/SQS/Client.html[the AWS SDK documentation]. Example:
|
135
135
|
|
136
136
|
[source,ruby]
|
137
137
|
input {
|
data/docs/output-s3.asciidoc
CHANGED
@@ -143,7 +143,7 @@ This plugin uses the AWS SDK and supports several ways to get credentials, which
|
|
143
143
|
* Default value is `{}`
|
144
144
|
|
145
145
|
Key-value pairs of settings and corresponding values used to parametrize
|
146
|
-
the connection to S3. See full list in https://docs.aws.amazon.com/
|
146
|
+
the connection to S3. See full list in https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Client.html[the AWS SDK documentation]. Example:
|
147
147
|
|
148
148
|
[source,ruby]
|
149
149
|
output {
|
@@ -130,8 +130,6 @@ class LogStash::Inputs::CloudWatch < LogStash::Inputs::Base
|
|
130
130
|
raise 'Interval must be divisible by period' unless @interval % @period == 0
|
131
131
|
raise "Filters must be defined for when using #{@namespace} namespace" if @filters.nil? && filters_required?(@namespace)
|
132
132
|
|
133
|
-
setup_aws_client_config
|
134
|
-
|
135
133
|
@last_check = Time.now
|
136
134
|
end # def register
|
137
135
|
|
data/lib/logstash/inputs/s3.rb
CHANGED
data/lib/logstash/inputs/sqs.rb
CHANGED
@@ -99,7 +99,6 @@ class LogStash::Inputs::SQS < LogStash::Inputs::Threadable
|
|
99
99
|
require "aws-sdk-sqs"
|
100
100
|
@logger.info("Registering SQS input", :queue => @queue, :queue_owner_aws_account_id => @queue_owner_aws_account_id)
|
101
101
|
|
102
|
-
setup_aws_client_config
|
103
102
|
setup_queue
|
104
103
|
end
|
105
104
|
|
@@ -163,7 +163,6 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
163
163
|
require "thread"
|
164
164
|
require "aws-sdk-cloudwatch"
|
165
165
|
|
166
|
-
setup_aws_client_config
|
167
166
|
@cw = Aws::CloudWatch::Client.new(aws_options_hash)
|
168
167
|
|
169
168
|
@event_queue = SizedQueue.new(@queue_size)
|
data/lib/logstash/outputs/s3.rb
CHANGED
@@ -209,8 +209,6 @@ class LogStash::Outputs::S3 < LogStash::Outputs::Base
|
|
209
209
|
raise LogStash::ConfigurationError, "Logstash must have the permissions to write to the temporary directory: #{@temporary_directory}"
|
210
210
|
end
|
211
211
|
|
212
|
-
setup_aws_client_config
|
213
|
-
|
214
212
|
if @validate_credentials_on_root_bucket && !WriteBucketPermissionValidator.new(@logger).valid?(bucket_resource, upload_options)
|
215
213
|
raise LogStash::ConfigurationError, "Logstash must have the privileges to write to root bucket `#{@bucket}`, check your credentials or your permissions."
|
216
214
|
end
|
data/lib/logstash/outputs/sns.rb
CHANGED
data/lib/logstash/outputs/sqs.rb
CHANGED
@@ -35,11 +35,14 @@ module LogStash::PluginMixins::AwsConfig::V2
|
|
35
35
|
opts = symbolize_keys_and_cast_true_false(additional_settings).merge(opts)
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
|
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
|
40
44
|
|
41
|
-
|
42
|
-
Aws.use_bundled_cert! if @use_aws_bundled_ca
|
45
|
+
return opts
|
43
46
|
end
|
44
47
|
|
45
48
|
private
|
@@ -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
|
Binary file
|
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.
|
4
|
+
version: 7.1.5
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-04 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.
|
411
|
+
- vendor/jar-dependencies/org/logstash/plugins/integration/aws/logstash-integration-aws/7.1.5/logstash-integration-aws-7.1.5.jar
|
412
412
|
homepage: http://www.elastic.co/guide/en/logstash/current/index.html
|
413
413
|
licenses:
|
414
414
|
- Apache-2.0
|