aws-sdk-core 3.90.0 → 3.90.1

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
  SHA1:
3
- metadata.gz: 48e9cc30981ca093ed5e512279083c45f59f879a
4
- data.tar.gz: 8dd4d2ca90e11bdc5df94f34091a03e6dd06bf00
3
+ metadata.gz: b55b3e3cd1c9ec04bc1d375d08ca93de5a8c0212
4
+ data.tar.gz: 7e9f75a40eb67070b4fa0d5696193fb011196211
5
5
  SHA512:
6
- metadata.gz: aded2038fb2a36b8816f4f70d8342298a1dd1166272afe3c18f15cc8fd0e2f4368d6064f28f2009b401b0d9fbf9ecf827c77e87719839a538172613d422fab3d
7
- data.tar.gz: fb9850aae375081eb31fddb3ea14df5c52d1cc73d2f86f2dd654fd1ff620f3e897bfe14e176afee48d13dfdae62d84e8fb968fa3fbe4d3b35849ee149908ed32
6
+ metadata.gz: c3dde38d099f43ae112d5b7887c38bca099897df24295c871581a9d888f7f9d95adf908caf9976cba6b195211b7d1ee9e1d7defd1b908c9bcc2cec4e6b2a8a11
7
+ data.tar.gz: 1c7d52fbbb564fd92a209d37c25e7f37a27206ec1461953b1f9aa0dee251379195af93494a9fb0a2d7e4d142ba4567fe69e334096b970fbacd9e36b2ca95e31d
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.90.0
1
+ 3.90.1
@@ -44,7 +44,10 @@ module Aws
44
44
 
45
45
  def static_profile_assume_role_web_identity_credentials(options)
46
46
  if Aws.shared_config.config_enabled? && options[:config] && options[:config].profile
47
- Aws.shared_config.assume_role_web_identity_credentials_from_config(options[:config].profile)
47
+ Aws.shared_config.assume_role_web_identity_credentials_from_config(
48
+ profile: options[:config].profile,
49
+ region: options[:config].region
50
+ )
48
51
  end
49
52
  end
50
53
 
@@ -113,15 +116,21 @@ module Aws
113
116
  end
114
117
 
115
118
  def assume_role_web_identity_credentials(options)
119
+ region = options[:config].region if options[:config]
116
120
  if (role_arn = ENV['AWS_ROLE_ARN']) && (token_file = ENV['AWS_WEB_IDENTITY_TOKEN_FILE'])
117
- AssumeRoleWebIdentityCredentials.new(
121
+ cfg = {
118
122
  role_arn: role_arn,
119
123
  web_identity_token_file: token_file,
120
124
  role_session_name: ENV['AWS_ROLE_SESSION_NAME']
121
- )
125
+ }
126
+ cfg[:region] = region if region
127
+ AssumeRoleWebIdentityCredentials.new(cfg)
122
128
  elsif Aws.shared_config.config_enabled?
123
129
  profile = options[:config].profile if options[:config]
124
- Aws.shared_config.assume_role_web_identity_credentials_from_config(profile)
130
+ Aws.shared_config.assume_role_web_identity_credentials_from_config(
131
+ profile: profile,
132
+ region: region
133
+ )
125
134
  end
126
135
  end
127
136
 
@@ -7,7 +7,7 @@ module Aws
7
7
 
8
8
  # A managed list of sensitive parameters that should be filtered from
9
9
  # logs. This is updated automatically as part of each release. See the
10
- # `tasks/sensitive.rake` for more information.
10
+ # `tasks/update-sensitive-params.rake` for more information.
11
11
  #
12
12
  # @api private
13
13
  # begin
@@ -31,7 +31,7 @@ module Aws
31
31
  def filter_hash(values)
32
32
  filtered = {}
33
33
  values.each_pair do |key, value|
34
- filtered[key] = @filters.include?(key) ? '[FILTERED]' : filter(value)
34
+ filtered[key] = @filters.any? { |f| f.to_s.casecmp(key.to_s).zero? } ? '[FILTERED]' : filter(value)
35
35
  end
36
36
  filtered
37
37
  end
@@ -117,16 +117,18 @@ module Aws
117
117
  credentials
118
118
  end
119
119
 
120
- def assume_role_web_identity_credentials_from_config(profile)
121
- p = profile || @profile_name
120
+ def assume_role_web_identity_credentials_from_config(opts = {})
121
+ p = opts[:profile] || @profile_name
122
122
  if @config_enabled && @parsed_config
123
123
  entry = @parsed_config.fetch(p, {})
124
124
  if entry['web_identity_token_file'] && entry['role_arn']
125
- AssumeRoleWebIdentityCredentials.new(
125
+ cfg = {
126
126
  role_arn: entry['role_arn'],
127
127
  web_identity_token_file: entry['web_identity_token_file'],
128
128
  role_session_name: entry['role_session_name']
129
- )
129
+ }
130
+ cfg[:region] = opts[:region] if opts[:region]
131
+ AssumeRoleWebIdentityCredentials.new(cfg)
130
132
  end
131
133
  end
132
134
  end
@@ -182,7 +184,7 @@ module Aws
182
184
  'a credential_source. For assume role credentials, must '\
183
185
  'provide only source_profile or credential_source, not both.'
184
186
  elsif opts[:source_profile]
185
- opts[:credentials] = resolve_source_profile(opts[:source_profile])
187
+ opts[:credentials] = resolve_source_profile(opts[:source_profile], opts)
186
188
  if opts[:credentials]
187
189
  opts[:role_session_name] ||= prof_cfg['role_session_name']
188
190
  opts[:role_session_name] ||= 'default_session'
@@ -220,10 +222,10 @@ module Aws
220
222
  end
221
223
  end
222
224
 
223
- def resolve_source_profile(profile)
225
+ def resolve_source_profile(profile, opts = {})
224
226
  if (creds = credentials(profile: profile))
225
227
  creds # static credentials
226
- elsif (provider = assume_role_web_identity_credentials_from_config(profile))
228
+ elsif (provider = assume_role_web_identity_credentials_from_config(opts.merge(profile: profile)))
227
229
  provider.credentials if provider.credentials.set?
228
230
  elsif (provider = assume_role_process_credentials_from_config(profile))
229
231
  provider.credentials if provider.credentials.set?
@@ -40,6 +40,6 @@ require_relative 'aws-sdk-sts/customizations'
40
40
  # @service
41
41
  module Aws::STS
42
42
 
43
- GEM_VERSION = '3.90.0'
43
+ GEM_VERSION = '3.90.1'
44
44
 
45
45
  end
@@ -2131,7 +2131,7 @@ module Aws::STS
2131
2131
  params: params,
2132
2132
  config: config)
2133
2133
  context[:gem_name] = 'aws-sdk-core'
2134
- context[:gem_version] = '3.90.0'
2134
+ context[:gem_version] = '3.90.1'
2135
2135
  Seahorse::Client::Request.new(handlers, context)
2136
2136
  end
2137
2137
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.90.0
4
+ version: 3.90.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-12 00:00:00.000000000 Z
11
+ date: 2020-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath