logstash-output-s3 4.1.4 → 4.1.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2bc3850c412eb10c46a6dc9ed29f7bd1fd600c1038bc605839aa333bbbc6a6c
|
4
|
+
data.tar.gz: 616b0a4c78eaed86096978b41bb5780daff47189807cc93746e22e9bd716b815
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '077965f9b30aa0857811736e67c50d1dceec61531645f99b3b45a644999c8133cfd4ae199a65014138497e39d55b8900afb168d30ac6805fb494fb28d93f95fc'
|
7
|
+
data.tar.gz: 594d8e0bddf61bddbdd7f19a0e2b5933f18ecbcc898393ba04845330b6ab25e8f202e9543dd5c5f0ca532a8eeffd0823fc9bf36d10ad84ee4e3d61f1259b8644
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
## 4.1.5
|
2
|
+
- Fixed bucket validation failures when bucket policy requires encryption [#191](https://github.com/logstash-plugins/logstash-output-s3/pull/191)
|
3
|
+
|
1
4
|
## 4.1.4
|
2
5
|
- [#185](https://github.com/logstash-plugins/logstash-output-s3/pull/184) Internal: Revert rake pinning to fix upstream builds
|
3
6
|
|
@@ -15,7 +15,7 @@ module LogStash
|
|
15
15
|
|
16
16
|
def valid?(bucket_resource, upload_options = {})
|
17
17
|
begin
|
18
|
-
upload_test_file(bucket_resource)
|
18
|
+
upload_test_file(bucket_resource, upload_options)
|
19
19
|
true
|
20
20
|
rescue StandardError => e
|
21
21
|
logger.error("Error validating bucket write permissions!",
|
data/logstash-output-s3.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-s3'
|
3
|
-
s.version = '4.1.
|
3
|
+
s.version = '4.1.5'
|
4
4
|
s.licenses = ['Apache-2.0']
|
5
5
|
s.summary = "Sends Logstash events to the Amazon Simple Storage Service"
|
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"
|
@@ -17,6 +17,16 @@ describe LogStash::Outputs::S3::WriteBucketPermissionValidator do
|
|
17
17
|
expect(bucket).to receive(:object).with(any_args).and_return(obj)
|
18
18
|
end
|
19
19
|
|
20
|
+
context 'when using upload_options' do
|
21
|
+
let(:upload_options) {{ :server_side_encryption => true }}
|
22
|
+
it 'they are passed through to upload_file' do
|
23
|
+
expect(obj).to receive(:upload_file).with(anything, upload_options)
|
24
|
+
expect(obj).to receive(:delete).and_return(true)
|
25
|
+
expect(subject.valid?(bucket, upload_options)).to be_truthy
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
|
20
30
|
context "when permissions are sufficient" do
|
21
31
|
it "returns true" do
|
22
32
|
expect(obj).to receive(:upload_file).with(any_args).and_return(true)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|