fluent-plugin-s3 1.8.1 → 1.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/docs/output.md +12 -0
- data/lib/fluent/plugin/out_s3.rb +10 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217eb830b5223b315c3315bfe2eaa0e9ad177ad8b4f9fc90b0575ac6bd30dcfc
|
4
|
+
data.tar.gz: 77895d2eca5be5449db57d5a8d69e87b7b1e3da8cbee5bdffe2f0afa56d4fcb6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04557ccde6e3d9f3a2d3ab4a5cc8c87b7d1dedddc09baa858239be4d59d071b5b4afb43f5cf685c936d09a13208d916683fc298beb89f168f44fdad30a456f8a
|
7
|
+
data.tar.gz: bcc7742d25f8c7f2108ad77753fb5b864f8fb0d644ad0d832a6fe26143b5b938bd03436695c43181b7b66d0f538421454f87e87fa73aa3c4907fd86979aa6b01
|
data/ChangeLog
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
Release 1.8.2 - 2024/12/18
|
2
|
+
|
3
|
+
* out_s3: Add more logging to identify unexpected error of Tempfile#close.
|
4
|
+
* out_s3: Support `checksum_algorithm` parameter to validate the data with checksum (CRC32, CRC32C, SHA1 and SHA256) during upload/download.
|
5
|
+
|
1
6
|
Release 1.8.1 - 2024/11/15
|
2
7
|
|
3
8
|
* dependency: Change zstd-ruby dependency optional. Install zstd-ruby manually if you want to enable Zstd compression feature.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.8.
|
1
|
+
1.8.2
|
data/docs/output.md
CHANGED
@@ -430,6 +430,18 @@ Specifies the AWS KMS key ID to use for object encryption.
|
|
430
430
|
|
431
431
|
Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321.
|
432
432
|
|
433
|
+
## checksum_algorithm
|
434
|
+
|
435
|
+
AWS allows to calculate the integrity checksum server side. The additional checksum is
|
436
|
+
used to validate the data during upload or download. The following 4 SHA and CRC algorithms are supported:
|
437
|
+
|
438
|
+
* CRC32
|
439
|
+
* CRC32C
|
440
|
+
* SHA1
|
441
|
+
* SHA256
|
442
|
+
|
443
|
+
For more info refer to [object integrity](https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html).
|
444
|
+
|
433
445
|
## compute_checksums
|
434
446
|
|
435
447
|
AWS SDK uses MD5 for API request/response by default. On FIPS enabled environment,
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -154,6 +154,8 @@ module Fluent::Plugin
|
|
154
154
|
desc "Arbitrary S3 tag-set for the object"
|
155
155
|
config_param :tagging, :string, default: nil
|
156
156
|
desc "Arbitrary S3 metadata headers to set for the object"
|
157
|
+
config_param :checksum_algorithm, :string, default: nil
|
158
|
+
desc "Indicates the algorithm you want Amazon S3 to use to create the checksum for the object (CRC32,CRC32C,SHA1,SHA256)"
|
157
159
|
config_param :s3_metadata, :hash, default: nil
|
158
160
|
config_section :bucket_lifecycle_rule, param_name: :bucket_lifecycle_rules, multi: true do
|
159
161
|
desc "A unique ID for this rule"
|
@@ -368,6 +370,7 @@ module Fluent::Plugin
|
|
368
370
|
put_options[:grant_read] = @grant_read if @grant_read
|
369
371
|
put_options[:grant_read_acp] = @grant_read_acp if @grant_read_acp
|
370
372
|
put_options[:grant_write_acp] = @grant_write_acp if @grant_write_acp
|
373
|
+
put_options[:checksum_algorithm] = @checksum_algorithm if @checksum_algorithm
|
371
374
|
put_options[:tagging] = @tagging if @tagging
|
372
375
|
|
373
376
|
if @s3_metadata
|
@@ -378,6 +381,8 @@ module Fluent::Plugin
|
|
378
381
|
end
|
379
382
|
@bucket.object(s3path).put(put_options)
|
380
383
|
|
384
|
+
log.debug "out_s3: completed to write chunk #{dump_unique_id_hex(chunk.unique_id)} with metadata #{chunk.metadata} to s3://#{@s3_bucket}/#{s3path}"
|
385
|
+
|
381
386
|
@values_for_s3_object_chunk.delete(chunk.unique_id)
|
382
387
|
|
383
388
|
if @warn_for_delay
|
@@ -386,7 +391,11 @@ module Fluent::Plugin
|
|
386
391
|
end
|
387
392
|
end
|
388
393
|
ensure
|
389
|
-
|
394
|
+
begin
|
395
|
+
tmp.close(true)
|
396
|
+
rescue => e
|
397
|
+
log.info "out_s3: Tempfile#close caused unexpected error", error: e
|
398
|
+
end
|
390
399
|
end
|
391
400
|
end
|
392
401
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-12-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|