fluent-plugin-s3 1.3.3 → 1.3.4

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: 6b9e71e48fe8776d96c49e62012af3fc76ad2dbc6d7ded8a5514a82b1e9d0fc6
4
- data.tar.gz: c1cba63a0f740b46557fe3e99ae86415a395df09fa573e9c12fe96de058f6971
3
+ metadata.gz: ebfd58f8ceb4878fc504cf04a829a7434b28fb872a58da0335178d37752d9b1e
4
+ data.tar.gz: d1623ee5f6e82fa2739e2ff5acde34d3e5aa52e38ac870fde997db738f27e508
5
5
  SHA512:
6
- metadata.gz: 705a0c4eff9cac0ea5f8bd1b36b081a2c282b6cfb1b4c54ebc1e94e819560fc51b4d7192041d67a7054c89f645448a33af4f76c71f0050c026cd535f97c1309a
7
- data.tar.gz: 0eb1a170b8d8155a156c7d7b786a2ff5a9a3a618e63a98fca1eb75ae93b32fe71daffd513a08a41597f69d3639a604cb60780058a4db0aed8e70aa86000d5d43
6
+ metadata.gz: bd8dee9e930f7f70ac130945ce77a1cdaffb5169fb0ca8711cb98eda1ddc6af2ab4bc8b1fb15490cfbec9dbf0e176528b58eb3aec8fc613050d8c135fde299fe
7
+ data.tar.gz: 499828ad8c8197235e3d8ee426f265e33f69e0cc65ae4a643cc5a01ff0bc9546f56006fbb339d61d06c6f641f43f94a4494c519ad8378fe155edab1f6fd0a083
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 1.3.4 - 2020/07/07
2
+
3
+ * Add sts_http_proxy and sts_endpoint_url to assume_role_credentials
4
+
1
5
  Release 1.3.3 - 2020/06/25
2
6
 
3
7
  * Allow fips/gov included endpoint
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.3
1
+ 1.3.4
@@ -41,6 +41,10 @@ module Fluent::Plugin
41
41
  config_param :external_id, :string, default: nil, secret: true
42
42
  desc "The region of the STS endpoint to use."
43
43
  config_param :sts_region, :string, default: nil
44
+ desc "A http proxy url for requests to aws sts service"
45
+ config_param :sts_http_proxy, :string, default: nil, secret: true
46
+ desc "A url for a regional sts api endpoint, the default is global"
47
+ config_param :sts_endpoint_url, :string, default: nil
44
48
  end
45
49
  # See the following link for additional params that could be added:
46
50
  # https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/STS/Client.html#assume_role_with_web_identity-instance_method
@@ -489,7 +493,19 @@ module Fluent::Plugin
489
493
  credentials_options[:policy] = c.policy if c.policy
490
494
  credentials_options[:duration_seconds] = c.duration_seconds if c.duration_seconds
491
495
  credentials_options[:external_id] = c.external_id if c.external_id
492
- if c.sts_region
496
+ credentials_options[:sts_endpoint_url] = c.sts_endpoint_url if c.sts_endpoint_url
497
+ credentials_options[:sts_http_proxy] = c.sts_http_proxy if c.sts_http_proxy
498
+ if c.sts_http_proxy && c.sts_endpoint_url
499
+ credentials_options[:client] = Aws::STS::Client.new(http_proxy: c.sts_http_proxy, endpoint: c.sts_endpoint_url)
500
+ elsif @region && c.sts_http_proxy
501
+ credentials_options[:client] = Aws::STS::Client.new(region: @region, http_proxy: c.sts_http_proxy)
502
+ elsif @region && c.sts_endpoint_url
503
+ credentials_options[:client] = Aws::STS::Client.new(region: @region, endpoint: c.sts_endpoint_url)
504
+ elsif c.sts_http_proxy
505
+ credentials_options[:client] = Aws::STS::Client.new(http_proxy: c.sts_http_proxy)
506
+ elsif c.sts_endpoint_url
507
+ credentials_options[:client] = Aws::STS::Client.new(endpoint: c.sts_endpoint_url)
508
+ elsif c.sts_region
493
509
  credentials_options[:client] = Aws::STS::Client.new(region: c.sts_region)
494
510
  elsif @s3_region
495
511
  credentials_options[:client] = Aws::STS::Client.new(region: @s3_region)
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.3.3
4
+ version: 1.3.4
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: 2020-06-25 00:00:00.000000000 Z
12
+ date: 2020-07-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd