fluent-plugin-azurestorage-gen2 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_azurestorage_gen2.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9dfe2426009f9375ce47d7285a6030af693c148
|
4
|
+
data.tar.gz: 9e76fe1f92164e6e3807482f04d7f2cf6fecc19b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbdac55653f0e83acde54dc2ace5e58e43f6954b84bb0179526a4230adf59619be469f313508ecbeb772dc447473cd62e9d3fbaff9cb3af5d45b3d1ba6fdab45
|
7
|
+
data.tar.gz: 95475a64f3447e017da418c4faa87dabc932c12205b2050e9e4dd1382128f919415e466a94c68a90bd22be6be7cc3aaf4a426a9ffb1d4efff2bbb4a87925ef81
|
data/README.md
CHANGED
@@ -31,6 +31,7 @@ $ gem install fluent-plugin-azurestorage-gen2
|
|
31
31
|
azure_storage_account mystorageabfs
|
32
32
|
azure_container mycontainer
|
33
33
|
azure_instance_msi /subscriptions/mysubscriptionid
|
34
|
+
azure_client_id <msi client id>
|
34
35
|
azure_object_key_format %{path}-%{index}.%{file_extension}
|
35
36
|
azure_oauth_refresh_interval 3600
|
36
37
|
time_slice_format %Y%m%d-%H
|
@@ -92,6 +93,14 @@ Your Azure Storage Access Key(Primary or Secondary). This also can be got from A
|
|
92
93
|
|
93
94
|
Your Azure Managed Service Identity ID. When storage key authentication is not used, the plugin uses OAuth2 to authenticate as given MSI. This authentication method only works on Azure VM. If the VM has only one MSI assigned, this parameter becomes optional and the only MSI will be used. Otherwise this parameter is required.
|
94
95
|
|
96
|
+
### azure_client_id
|
97
|
+
|
98
|
+
Azure AD client id is a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with azure_object_id and azure_instance_msi. (for now, you need to define next to `azure_instance_msi`)
|
99
|
+
|
100
|
+
### azure_object_id
|
101
|
+
|
102
|
+
Azure AD object id is a specific explicit identity to use when authenticating to Azure AD. Mutually exclusive with azure_client_id and azure_instance_msi. (for now, you need to define next to `azure_instance_msi`)
|
103
|
+
|
95
104
|
### azure_oauth_tenant_id (Preview)
|
96
105
|
|
97
106
|
Azure account tenant id from your Azure Directory. Required if OAuth based credential mechanism is used.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -24,6 +24,8 @@ module Fluent::Plugin
|
|
24
24
|
config_param :azure_storage_account, :string, :default => nil
|
25
25
|
config_param :azure_storage_access_key, :string, :default => nil, :secret => true
|
26
26
|
config_param :azure_instance_msi, :string, :default => nil
|
27
|
+
config_param :azure_client_id, :string, :default => nil
|
28
|
+
config_param :azure_object_id, :string, :default => nil
|
27
29
|
config_param :azure_oauth_app_id, :string, :default => nil, :secret => true
|
28
30
|
config_param :azure_oauth_secret, :string, :default => nil, :secret => true
|
29
31
|
config_param :azure_oauth_tenant_id, :string, :default => nil
|
@@ -58,7 +60,7 @@ module Fluent::Plugin
|
|
58
60
|
config_section :format do
|
59
61
|
config_set_default :@type, DEFAULT_FORMAT_TYPE
|
60
62
|
end
|
61
|
-
|
63
|
+
|
62
64
|
config_section :buffer do
|
63
65
|
config_set_default :chunk_keys, ['time']
|
64
66
|
config_set_default :timekey, (60 * 60 * 24)
|
@@ -81,7 +83,7 @@ module Fluent::Plugin
|
|
81
83
|
end
|
82
84
|
|
83
85
|
@formatter = formatter_create
|
84
|
-
|
86
|
+
|
85
87
|
if @azure_container.nil?
|
86
88
|
raise Fluent::ConfigError, "azure_container is needed"
|
87
89
|
end
|
@@ -276,6 +278,12 @@ module Fluent::Plugin
|
|
276
278
|
unless @azure_instance_msi.nil?
|
277
279
|
params[:msi_res_id] = @azure_instance_msi
|
278
280
|
end
|
281
|
+
unless @azure_client_id.nil?
|
282
|
+
params[:client_id] = @azure_client_id
|
283
|
+
end
|
284
|
+
unless @azure_object_id.nil?
|
285
|
+
params[:object_id] = @azure_object_id
|
286
|
+
end
|
279
287
|
req_opts = {
|
280
288
|
:params => params,
|
281
289
|
:headers => { Metadata: "true" }
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-azurestorage-gen2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Oliver Szabo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|