From cb67699b5619849a5de4950771c5eb09c46d7d4d Mon Sep 17 00:00:00 2001 From: Webb Barker Date: Mon, 22 Jun 2020 10:27:33 -0400 Subject: [PATCH 1/2] Normalizes expiration timestamps at all callsites --- lib/iam.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/iam.js b/lib/iam.js index 6e3a864a..5c346bb7 100644 --- a/lib/iam.js +++ b/lib/iam.js @@ -87,7 +87,7 @@ exports.getIAMKey = function(program, logger, alksAccount, alksRole, forceNewSes if(!err){ utils.log(program, logger, 'storing key: ' + JSON.stringify(key)); keys.addKey(key.accessKey, key.secretKey, key.sessionToken, - key.alksAccount, key.alksRole, key.expires.toDate(), auth, true); + key.alksAccount, key.alksRole, key.expires, auth, true); } else if(err.message.indexOf('please check API URL') !== -1){ err = new Error(utils.getBadAccountMessage()); From 26e79bb446b809fd238b96d1851d74d57d9318d3 Mon Sep 17 00:00:00 2001 From: Webb Barker Date: Mon, 22 Jun 2020 10:50:10 -0400 Subject: [PATCH 2/2] Updates change log and bumps version number --- changelog.txt | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/changelog.txt b/changelog.txt index 7dab5eab..9fbdde4e 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,9 +1,9 @@ -★ Release Notes: 2020-06-17 ★ +★ Release Notes: 2020-06-22 ★ ≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡ Thanks for upgrading to the latest version of the ALKS CLI! -→ [BUGFIX] Corrects an issue where the ALKS sessions command would return expired keys +→ [BUGFIX] Corrects an issue where IAM Keys would fail to generate → Have feedback? https://github.com/Cox-Automotive/ALKS-CLI/issues diff --git a/package.json b/package.json index 4cccc644..0bf1897b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "alks", - "version": "3.0.9", + "version": "3.0.10", "description": "CLI for working with ALKS", "main": "bin/alks", "scripts": {