Skip to content

Commit

Permalink
Merge branch 'w/7.8/improvement/S3C-3044-add-audit-log-from-vault' in…
Browse files Browse the repository at this point in the history
…to tmp/octopus/w/8.1/improvement/S3C-3044-add-audit-log-from-vault
  • Loading branch information
bert-e committed Jun 15, 2020
2 parents 750c021 + 6530f0a commit b4b5712
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/auth/Vault.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ function vaultSignatureCb(err, authInfo, log, callback, streamingV4Params) {
const info = authInfo.message.body;
const userInfo = new AuthInfo(info.userInfo);
const authorizationResults = info.authorizationResults;
const auditLog = { accountDisplayName: userInfo.getAccountDisplayName() };
const iamDisplayName = userInfo.getIAMdisplayName();
if (iamDisplayName) {
auditLog.IAMdisplayName = iamDisplayName;
}
log.addDefaultFields(auditLog);
return callback(null, userInfo, authorizationResults, streamingV4Params);
}

Expand Down

0 comments on commit b4b5712

Please sign in to comment.