Skip to content

Commit

Permalink
fix: aws iam user access keys are now stored sequentially
Browse files Browse the repository at this point in the history
Refs #154
  • Loading branch information
ericvilla committed Jul 29, 2021
1 parent 2fcd38e commit b64041e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/services/session/aws/methods/aws-iam-user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ export class AwsIamUserService extends AwsSessionService {

create(accountRequest: AwsIamUserSessionRequest, profileId: string): void {
const session = new AwsIamUserSession(accountRequest.accountName, accountRequest.region, profileId, accountRequest.mfaDevice);
this.keychainService.saveSecret(environment.appName, `${session.sessionId}-iam-user-aws-session-access-key-id`, accountRequest.accessKey);
this.keychainService.saveSecret(environment.appName, `${session.sessionId}-iam-user-aws-session-secret-access-key`, accountRequest.secretKey);
this.keychainService.saveSecret(environment.appName, `${session.sessionId}-iam-user-aws-session-access-key-id`, accountRequest.accessKey)
.then(_ => {
this.keychainService.saveSecret(environment.appName, `${session.sessionId}-iam-user-aws-session-secret-access-key`, accountRequest.secretKey)
.catch(err => console.error(err));
})
.catch(err => console.error(err));
this.workspaceService.addSession(session);
}

Expand Down

0 comments on commit b64041e

Please sign in to comment.