fluent-plugin-gcs 0.1.1 → 0.2.0
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 +4 -4
- data/README.md +3 -1
- data/fluent-plugin-gcs.gemspec +1 -1
- data/lib/fluent/plugin/gcs/version.rb +1 -1
- data/lib/fluent/plugin/out_gcs.rb +1 -8
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9c0d03aa03b1f3a0c4d113914287ed05d52088c1
|
4
|
+
data.tar.gz: 220f052dbee4961c2f46db942f3cd79eefd183cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ef27cdf5bbdc35413e4c2aecb961e8c38959547a27f0d38cf24f0c06f88472e5bbd72c1a4e672715878ca033dc1950dd155d20050b3ad8b8c6c827c7359db6d
|
7
|
+
data.tar.gz: f6dffeabe51b6e855171a2ecf03aae1d767e09140c83c4b845ae3abc4c9c0665476f1dbfda92bd22be233af53ee00452c11d0a776f909803e83ed54384a8fcc6
|
data/README.md
CHANGED
@@ -142,10 +142,12 @@ Permission for the object in GCS. Acceptable values are:
|
|
142
142
|
|
143
143
|
Default is nil (bucket default object ACL). See also [official document](https://cloud.google.com/storage/docs/access-control/lists).
|
144
144
|
|
145
|
-
**encryption_key
|
145
|
+
**encryption_key**
|
146
146
|
|
147
147
|
You can also choose to provide your own AES-256 key for server-side encryption. See also [Customer-supplied encryption keys](https://cloud.google.com/storage/docs/encryption#customer-supplied).
|
148
148
|
|
149
|
+
`encryption_key_sha256` will be calculated using encryption_key.
|
150
|
+
|
149
151
|
**overwrite**
|
150
152
|
|
151
153
|
Overwrite already existing path. Default is false, which raises an error
|
data/fluent-plugin-gcs.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
23
|
spec.add_runtime_dependency "fluentd", "~> 0.12.0"
|
24
|
-
spec.add_runtime_dependency "google-cloud-storage", "~> 0.
|
24
|
+
spec.add_runtime_dependency "google-cloud-storage", "~> 0.23.0"
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.13"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -44,8 +44,6 @@ module Fluent
|
|
44
44
|
desc: "Permission for the object in GCS"
|
45
45
|
config_param :encryption_key, :string, default: nil, secret: true,
|
46
46
|
desc: "Customer-supplied, AES-256 encryption key"
|
47
|
-
config_param :encryption_key_sha256, :string, default: nil, secret: true,
|
48
|
-
desc: "SHA256 hash of the customer-supplied, AES-256 encryption key"
|
49
47
|
config_section :object_metadata, required: false do
|
50
48
|
config_param :key, :string, default: ""
|
51
49
|
config_param :value, :string, default: ""
|
@@ -58,18 +56,13 @@ module Fluent
|
|
58
56
|
def configure(conf)
|
59
57
|
super
|
60
58
|
|
61
|
-
if @encryption_key && @encryption_key_sha256.nil?
|
62
|
-
raise Fluent::ConfigError, "encryption_key_sha256 parameter must be provided if `encryption_key` is provided."
|
63
|
-
end
|
64
|
-
|
65
59
|
if @hex_random_length > MAX_HEX_RANDOM_LENGTH
|
66
60
|
raise Fluent::ConfigError, "hex_random_length parameter should be set to #{MAX_HEX_RANDOM_LENGTH} characters or less."
|
67
61
|
end
|
68
62
|
|
69
|
-
# The customer-supplied, AES-256 encryption key
|
63
|
+
# The customer-supplied, AES-256 encryption key that will be used to encrypt the file.
|
70
64
|
@encryption_opts = {
|
71
65
|
encryption_key: @encryption_key,
|
72
|
-
encryption_key_sha256: @encryption_key_sha256
|
73
66
|
}
|
74
67
|
|
75
68
|
if @object_metadata
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-gcs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daichi HIRATA
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.23.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.23.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|