aws-sdk-core 3.180.1 → 3.180.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-core/ini_parser.rb +8 -1
- data/lib/aws-sdk-core/shared_config.rb +21 -17
- data/lib/aws-sdk-sso/client.rb +1 -1
- data/lib/aws-sdk-sso.rb +1 -1
- data/lib/aws-sdk-ssooidc/client.rb +1 -1
- data/lib/aws-sdk-ssooidc.rb +1 -1
- data/lib/aws-sdk-sts/client.rb +1 -1
- data/lib/aws-sdk-sts.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3749d985cbab5a5ae143b306cb7a1842dbc0916d68a61d0fbeaf56910ea6996
|
4
|
+
data.tar.gz: c216b63c0b9839d37640c8cb76bac4bfdfc5cb1ae75ef1310d88b9032225ce6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8226a0fbef5ff41c51eb0cc38d7a8fcfa44e281ecd609b352bae0c1388e2ba662e3f290387a77cb7b9c9bbe4cc0047dfacfaf92f78e091f4f51bcece942edd0e
|
7
|
+
data.tar.gz: a1e7c94ec91b14fb62f886e046eca60be387e548d468a865e73764a31e47f8db799cb6eb34720cc3290699d79294f86772ffebad07868a2e7b4eaf94a20a1aa8
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
3.180.3 (2023-08-09)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Issue - Add support for sso-session names with whitespace configured by the CLI `aws sso configure` command (#2895).
|
8
|
+
|
9
|
+
3.180.2 (2023-08-07)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Issue - Fix parsing of ini files with mixes of blank properties and nested configurations.
|
13
|
+
|
4
14
|
3.180.1 (2023-07-31)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.180.
|
1
|
+
3.180.3
|
@@ -8,6 +8,8 @@ module Aws
|
|
8
8
|
def ini_parse(raw)
|
9
9
|
current_profile = nil
|
10
10
|
current_prefix = nil
|
11
|
+
item = nil
|
12
|
+
previous_item = nil
|
11
13
|
raw.lines.inject({}) do |acc, line|
|
12
14
|
line = line.split(/^|\s;/).first # remove comments
|
13
15
|
profile = line.match(/^\[([^\[\]]+)\]\s*(#.+)?$/) unless line.nil?
|
@@ -17,11 +19,16 @@ module Aws
|
|
17
19
|
current_profile = named_profile[1] if named_profile
|
18
20
|
elsif current_profile
|
19
21
|
unless line.nil?
|
20
|
-
|
22
|
+
previous_item = item
|
23
|
+
item = line.match(/^(.+?)\s*=\s*(.+?)\s*$/)
|
21
24
|
prefix = line.match(/^(.+?)\s*=\s*$/)
|
22
25
|
end
|
23
26
|
if item && item[1].match(/^\s+/)
|
24
27
|
# Need to add lines to a nested configuration.
|
28
|
+
if current_prefix.nil? && previous_item[2].strip.empty?
|
29
|
+
current_prefix = previous_item[1]
|
30
|
+
acc[current_profile][current_prefix] = {}
|
31
|
+
end
|
25
32
|
inner_item = line.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/)
|
26
33
|
acc[current_profile] ||= {}
|
27
34
|
acc[current_profile][current_prefix] ||= {}
|
@@ -359,12 +359,8 @@ module Aws
|
|
359
359
|
!(prof_config.keys & SSO_CREDENTIAL_PROFILE_KEYS).empty?
|
360
360
|
|
361
361
|
if sso_session_name = prof_config['sso_session']
|
362
|
-
sso_session = cfg
|
363
|
-
|
364
|
-
raise ArgumentError,
|
365
|
-
"sso-session #{sso_session_name} must be defined in the config file. " \
|
366
|
-
"Referenced by profile #{profile}"
|
367
|
-
end
|
362
|
+
sso_session = sso_session(cfg, profile, sso_session_name)
|
363
|
+
|
368
364
|
sso_region = sso_session['sso_region']
|
369
365
|
sso_start_url = sso_session['sso_start_url']
|
370
366
|
|
@@ -389,7 +385,7 @@ module Aws
|
|
389
385
|
sso_role_name: prof_config['sso_role_name'],
|
390
386
|
sso_session: prof_config['sso_session'],
|
391
387
|
sso_region: sso_region,
|
392
|
-
sso_start_url:
|
388
|
+
sso_start_url: sso_start_url
|
393
389
|
)
|
394
390
|
end
|
395
391
|
end
|
@@ -402,16 +398,7 @@ module Aws
|
|
402
398
|
!(prof_config.keys & SSO_TOKEN_PROFILE_KEYS).empty?
|
403
399
|
|
404
400
|
sso_session_name = prof_config['sso_session']
|
405
|
-
sso_session = cfg
|
406
|
-
unless sso_session
|
407
|
-
raise ArgumentError,
|
408
|
-
"sso-session #{sso_session_name} must be defined in the config file." \
|
409
|
-
"Referenced by profile #{profile}"
|
410
|
-
end
|
411
|
-
|
412
|
-
unless sso_session['sso_region']
|
413
|
-
raise ArgumentError, "sso-session #{sso_session_name} missing required parameter: sso_region"
|
414
|
-
end
|
401
|
+
sso_session = sso_session(cfg, profile, sso_session_name)
|
415
402
|
|
416
403
|
SSOTokenProvider.new(
|
417
404
|
sso_session: sso_session_name,
|
@@ -469,5 +456,22 @@ module Aws
|
|
469
456
|
ret ||= 'default'
|
470
457
|
ret
|
471
458
|
end
|
459
|
+
|
460
|
+
def sso_session(cfg, profile, sso_session_name)
|
461
|
+
# aws sso-configure may add quotes around sso session names with whitespace
|
462
|
+
sso_session = cfg["sso-session #{sso_session_name}"] || cfg["sso-session '#{sso_session_name}'"]
|
463
|
+
|
464
|
+
unless sso_session
|
465
|
+
raise ArgumentError,
|
466
|
+
"sso-session #{sso_session_name} must be defined in the config file. " \
|
467
|
+
"Referenced by profile #{profile}"
|
468
|
+
end
|
469
|
+
|
470
|
+
unless sso_session['sso_region']
|
471
|
+
raise ArgumentError, "sso-session #{sso_session_name} missing required parameter: sso_region"
|
472
|
+
end
|
473
|
+
|
474
|
+
sso_session
|
475
|
+
end
|
472
476
|
end
|
473
477
|
end
|
data/lib/aws-sdk-sso/client.rb
CHANGED
data/lib/aws-sdk-sso.rb
CHANGED
data/lib/aws-sdk-ssooidc.rb
CHANGED
data/lib/aws-sdk-sts/client.rb
CHANGED
@@ -2344,7 +2344,7 @@ module Aws::STS
|
|
2344
2344
|
params: params,
|
2345
2345
|
config: config)
|
2346
2346
|
context[:gem_name] = 'aws-sdk-core'
|
2347
|
-
context[:gem_version] = '3.180.
|
2347
|
+
context[:gem_version] = '3.180.3'
|
2348
2348
|
Seahorse::Client::Request.new(handlers, context)
|
2349
2349
|
end
|
2350
2350
|
|
data/lib/aws-sdk-sts.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.180.
|
4
|
+
version: 3.180.3
|
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: 2023-
|
11
|
+
date: 2023-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jmespath
|