aws-sdk-core 3.67.0 → 3.68.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7476f0150f3fc0e33b336899ac8637568a5ac85
4
- data.tar.gz: cd8b9db12ca83c250a9f5eadc18e382ba1863782
3
+ metadata.gz: 18f71473382cc66ef7fd9cd1ed94577fa4dbe75f
4
+ data.tar.gz: f37cf085eee73f4f766a5c80492690bdae5e1f6e
5
5
  SHA512:
6
- metadata.gz: bf812425ac1e0adc27856f0056224795b7c95f18ed9f058c717ebc7e114ad6c642f6ac6ba96606c00e21cba22dbe98e7d93695490e56b70030b848d638b0ed9f
7
- data.tar.gz: 5fa9f34fa1db02b7d9518541345a3881915ff138cddf0d0e9114483e9aece77be61e40ea3d07159b77905040340056bdbc48030ab8605844398262f19e3299a1
6
+ metadata.gz: 656dbc36316496f11445a6e5b6a47dcabbb20ea2604f9e9e9fb3ca379eaaba14eec5ef7ca90d5420533e2780282c9564e924abd3835dd099a779ed7a7f208ac9
7
+ data.tar.gz: 41a797745b6dd3b7fdbdf9a272b423a7361051d42470c9af93d7cc1dadb2d41d44f36fd2e6f09416a1710424c4a3065c15b766cbcbb7782d72cfd1c785463a4f
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.67.0
1
+ 3.68.0
@@ -5,7 +5,7 @@ module Aws
5
5
  # A credential provider that executes a given process and attempts
6
6
  # to read its stdout to recieve a JSON payload containing the credentials
7
7
  #
8
- # Automatically handles refreshing credentials if an Expiration time is
8
+ # Automatically handles refreshing credentials if an Expiration time is
9
9
  # provided in the credentials payload
10
10
  #
11
11
  # credentials = Aws::ProcessCredentials.new('/usr/bin/credential_proc').credentials
@@ -23,11 +23,11 @@ module Aws
23
23
  # external process to be used as a credential provider.
24
24
  #
25
25
  # @param [String] process Invocation string for process
26
- # credentials provider.
26
+ # credentials provider.
27
27
  def initialize(process)
28
28
  @process = process
29
29
  @credentials = credentials_from_process(@process)
30
-
30
+
31
31
  super
32
32
  end
33
33
 
@@ -99,12 +99,10 @@ module Aws
99
99
  def credentials(opts = {})
100
100
  p = opts[:profile] || @profile_name
101
101
  validate_profile_exists(p) if credentials_present?
102
- if credentials = credentials_from_shared(p, opts)
102
+ if (credentials = credentials_from_shared(p, opts))
103
103
  credentials
104
- elsif credentials = credentials_from_config(p, opts)
104
+ elsif (credentials = credentials_from_config(p, opts))
105
105
  credentials
106
- else
107
- nil
108
106
  end
109
107
  end
110
108
 
@@ -228,6 +226,7 @@ module Aws
228
226
  end
229
227
 
230
228
  private
229
+
231
230
  def credentials_present?
232
231
  (@parsed_credentials && !@parsed_credentials.empty?) ||
233
232
  (@parsed_config && !@parsed_config.empty?)
@@ -293,17 +292,17 @@ module Aws
293
292
  end
294
293
  end
295
294
 
296
- def resolve_source_profile(src)
297
- if (creds = credentials(profile: src))
295
+ def resolve_source_profile(profile)
296
+ if (creds = credentials(profile: profile))
298
297
  creds # static credentials
299
- elsif (provider = assume_role_web_identity_credentials_from_config(src))
298
+ elsif (provider = assume_role_web_identity_credentials_from_config(profile))
299
+ if provider.credentials.set?
300
+ provider.credentials
301
+ end
302
+ elsif (provider = assume_role_process_credentials_from_config(profile))
300
303
  if provider.credentials.set?
301
304
  provider.credentials
302
- else
303
- nil
304
305
  end
305
- else
306
- nil
307
306
  end
308
307
  end
309
308
 
@@ -324,6 +323,11 @@ module Aws
324
323
  end
325
324
  end
326
325
 
326
+ def assume_role_process_credentials_from_config(profile)
327
+ credential_process = credentials_process(profile)
328
+ ProcessCredentials.new(credential_process) if credential_process
329
+ end
330
+
327
331
  def credentials_from_shared(profile, opts)
328
332
  if @parsed_credentials && prof_config = @parsed_credentials[profile]
329
333
  credentials_from_profile(prof_config)
@@ -40,6 +40,6 @@ require_relative 'aws-sdk-sts/customizations'
40
40
  # @service
41
41
  module Aws::STS
42
42
 
43
- GEM_VERSION = '3.67.0'
43
+ GEM_VERSION = '3.68.0'
44
44
 
45
45
  end
@@ -1808,7 +1808,7 @@ module Aws::STS
1808
1808
  params: params,
1809
1809
  config: config)
1810
1810
  context[:gem_name] = 'aws-sdk-core'
1811
- context[:gem_version] = '3.67.0'
1811
+ context[:gem_version] = '3.68.0'
1812
1812
  Seahorse::Client::Request.new(handlers, context)
1813
1813
  end
1814
1814
 
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.67.0
4
+ version: 3.68.0
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: 2019-09-09 00:00:00.000000000 Z
11
+ date: 2019-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath