logstash-output-s3 4.1.4 → 4.1.5

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: b3afd9d27edeac94595e9f7b077bc9eb7a780abfa127541c5ed3e2207de53e12
4
- data.tar.gz: d99eb9c0720ab0373dc1ca4bcccd723cf59f1b0fa65f8e190b6c7017ba2549c8
3
+ metadata.gz: b2bc3850c412eb10c46a6dc9ed29f7bd1fd600c1038bc605839aa333bbbc6a6c
4
+ data.tar.gz: 616b0a4c78eaed86096978b41bb5780daff47189807cc93746e22e9bd716b815
5
5
  SHA512:
6
- metadata.gz: 8f04e448e01da876fe21030685aace695395aff1c2a800bb08ed6311791940c4287a15d5f3d4ea023778fc6c9a533b39d45045e1c20f2e2d81e340539a215c5c
7
- data.tar.gz: 38e16bf8bca573402f3725c98a6299fe41001548acb77e35484da3185cf742deb89e90703697985b1fc4831634c86077cd0969e68263e46df47234ba9eb942f7
6
+ metadata.gz: '077965f9b30aa0857811736e67c50d1dceec61531645f99b3b45a644999c8133cfd4ae199a65014138497e39d55b8900afb168d30ac6805fb494fb28d93f95fc'
7
+ data.tar.gz: 594d8e0bddf61bddbdd7f19a0e2b5933f18ecbcc898393ba04845330b6ab25e8f202e9543dd5c5f0ca532a8eeffd0823fc9bf36d10ad84ee4e3d61f1259b8644
@@ -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!",
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-s3'
3
- s.version = '4.1.4'
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
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-05-30 00:00:00.000000000 Z
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