aws-sdk-core 3.67.0 → 3.68.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/aws-sdk-core/process_credentials.rb +3 -3
- data/lib/aws-sdk-core/shared_config.rb +15 -11
- data/lib/aws-sdk-sts.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- 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: 18f71473382cc66ef7fd9cd1ed94577fa4dbe75f
|
4
|
+
data.tar.gz: f37cf085eee73f4f766a5c80492690bdae5e1f6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 656dbc36316496f11445a6e5b6a47dcabbb20ea2604f9e9e9fb3ca379eaaba14eec5ef7ca90d5420533e2780282c9564e924abd3835dd099a779ed7a7f208ac9
|
7
|
+
data.tar.gz: 41a797745b6dd3b7fdbdf9a272b423a7361051d42470c9af93d7cc1dadb2d41d44f36fd2e6f09416a1710424c4a3065c15b766cbcbb7782d72cfd1c785463a4f
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.
|
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(
|
297
|
-
if (creds = credentials(profile:
|
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(
|
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)
|
data/lib/aws-sdk-sts.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2019-09-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|