awskeyring 0.5.3 → 0.6.0

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: c52288c55a349f5e4bea3c89a39752efe70fe778
4
- data.tar.gz: 05e3ca54d599fc277f5b24bda0d133c76495a0c7
3
+ metadata.gz: d212e152f33eeef7c344651706e798f7e8d6c66d
4
+ data.tar.gz: e5843ba96c3ae96f82ea3dc8096b577d581d7b47
5
5
  SHA512:
6
- metadata.gz: c2704ef84b7221d35d351784fca20f4297257d9a5a6a5f70c829135163704f4ff08baa9e289f73650d7ed5da301a5bf4413617835feb5d21093987cdfc3a2174
7
- data.tar.gz: 2d84f66fa5caa38b241c08d2541722ecbfcfec0c20adc2d3612d960ce5aecaca598c3e05d43d711bc37b7e54025ad5e48541c0993c4033ff95a67e35111e79b7
6
+ metadata.gz: 3d9652bbd275b6af595b4ccea507a9c779976347acf2fb97b14c5c4131fd0c578e9e3d75ef17f1b7cb8133d58bc57beb100e9a3aaf5fee78b6768360d2d14167
7
+ data.tar.gz: 041af8b40538d8a3c8d6a7028fc6849c4bc2bcd81e30c8aa0d10574c44e031e122b9ffbb8847d6006874b2d15446c8465a439d821e32e5ba4319b9dca06a06f0
@@ -1,6 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [v0.5.3](https://github.com/vibrato/awskeyring/tree/v0.5.3) (2018-10-04)
3
+ ## [v0.6.0](https://github.com/vibrato/awskeyring/tree/v0.6.0) (2018-10-18)
4
+ [Full Changelog](https://github.com/vibrato/awskeyring/compare/v0.5.3...v0.6.0)
5
+
6
+ **Fixed bugs:**
7
+
8
+ - Use a default Region for Rotate. [\#33](https://github.com/vibrato/awskeyring/pull/33) ([tristanmorgan](https://github.com/tristanmorgan))
9
+ - Fix JSON time format to use ISO8601. [\#32](https://github.com/vibrato/awskeyring/pull/32) ([tristanmorgan](https://github.com/tristanmorgan))
10
+
11
+ ## [v0.5.3](https://github.com/vibrato/awskeyring/tree/v0.5.3) (2018-10-03)
4
12
  [Full Changelog](https://github.com/vibrato/awskeyring/compare/v0.5.2...v0.5.3)
5
13
 
6
14
  **Implemented enhancements:**
data/README.md CHANGED
@@ -36,7 +36,7 @@ Alternatively you can create a profile using the credential_process config varia
36
36
 
37
37
  [profile personal]
38
38
  region = us-west-1
39
- credential_process = awskeyring json personal-aws
39
+ credential_process = /usr/local/bin/awskeyring json personal-aws
40
40
 
41
41
  See below and in the [wiki](https://github.com/vibrato/awskeyring/wiki) for more details on usage.
42
42
 
@@ -182,7 +182,8 @@ module Awskeyring
182
182
  # @return [String] key The aws_access_key_id
183
183
  # @return [String] secret The aws_secret_access_key
184
184
  # @return [String] account the associated account name.
185
- def self.rotate(account:, key:, secret:, key_message:) # rubocop:disable Metrics/MethodLength
185
+ def self.rotate(account:, key:, secret:, key_message:) # rubocop:disable Metrics/MethodLength, Metrics/AbcSize
186
+ ENV['AWS_DEFAULT_REGION'] = 'us-east-1' unless region
186
187
  iam = Aws::IAM::Client.new(access_key_id: key, secret_access_key: secret)
187
188
 
188
189
  if iam.list_access_keys[:access_key_metadata].length > 1
@@ -1,4 +1,4 @@
1
1
  module Awskeyring
2
2
  # The Gems version number
3
- VERSION = '0.5.3'.freeze
3
+ VERSION = '0.6.0'.freeze
4
4
  end
@@ -92,7 +92,7 @@ class AwskeyringCommand < Thor # rubocop:disable Metrics/ClassLength
92
92
  key: cred[:key],
93
93
  secret: cred[:secret],
94
94
  token: cred[:token],
95
- expiry: expiry || Time.new + Awskeyring::Awsapi::ONE_HOUR
95
+ expiry: (expiry || Time.new + Awskeyring::Awsapi::ONE_HOUR).iso8601
96
96
  )
97
97
  end
98
98
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awskeyring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Morgan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-04 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-iam