miasma-aws 0.2.2 → 0.2.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
  SHA1:
3
- metadata.gz: 31026eea140f202401a57fa1e3f132fee1cb4c5d
4
- data.tar.gz: b6c72c747f504e6dfce3a72c90c8c929cd32b4a6
3
+ metadata.gz: 1cb99ed122c82e005f8d171610fff1b9d5709e58
4
+ data.tar.gz: 1c9e9dc24dd0bbe188498a49c4f1255f82e11b94
5
5
  SHA512:
6
- metadata.gz: 587dc7f5b51fcfe99fd6b001609b11b7d23a38d90adcd29ccf1643e2c2a8f03dbb2f08a3f26bd07d44f4bf040ef72579d81e2df696709a8d79aad0d29b5a2c0d
7
- data.tar.gz: 050bc626017d151ca27c9bf0f34fa5a863b0336f4ffc952e8a659d83247cf0c5da5cac602803fb0b04c022c5c6003838937ddb7e23c7854bfda60526cf8b19ba
6
+ metadata.gz: 1bc7a82669aad8364a8efb38ebd87ae97b5682d1449561f24f810549d16b4ebf74be2af02faaba072bf17650dd86c1f7f55703ce51d23cb90485a8c91e181688
7
+ data.tar.gz: 11d1fc54c194c3401c5a1eb4c9a20c6d4be8679349b486386c54b86178ab3b3275941c9159111341bf2897a975c2b19533bdfae99a5e7f0b17e23e19ca2185d9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # v0.2.4
2
+ * [enhancement] Add aws credential file mappings for token value (#31)
3
+ * [fix] Support quoted values within aws credentials/configuration files (#31)
4
+ * [fix] Update VCR setup and usage to allow specs to run without live env vars
5
+
1
6
  # v0.2.2
2
7
  * [fix] Fix expiry check for STS tokens for assumed role
3
8
  * [enhancement] Support direct usage of STS tokens
@@ -358,7 +358,9 @@ module Miasma
358
358
  klass.const_set(:CONFIG_FILE_REMAP,
359
359
  Smash.new(
360
360
  'region' => 'aws_region',
361
- 'role_arn' => 'aws_sts_role_arn'
361
+ 'role_arn' => 'aws_sts_role_arn',
362
+ 'aws_security_token' => 'aws_sts_token',
363
+ 'aws_session_token' => 'aws_sts_token'
362
364
  )
363
365
  )
364
366
  klass.const_set(:INSTANCE_PROFILE_HOST, 'http://169.254.169.254')
@@ -527,6 +529,12 @@ module Miasma
527
529
  line_args.first, line_args.first
528
530
  )
529
531
  )
532
+ if(line_args.last.start_with?('"'))
533
+ unless(line_args.last.end_with?('"'))
534
+ raise ArgumentError.new("Failed to parse aws file! (#{file_path} line #{idx + 1})")
535
+ end
536
+ line_args.last.replace(line_args.last[1..-2]) # NOTE: strip quoted values
537
+ end
530
538
  begin
531
539
  creds[key].merge!(Smash[*line_args])
532
540
  rescue => e
@@ -1,4 +1,4 @@
1
1
  module MiasmaAws
2
2
  # Current library version
3
- VERSION = Gem::Version.new('0.2.2')
3
+ VERSION = Gem::Version.new('0.2.4')
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miasma-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts