Compare commits

...

1 Commits

Author SHA1 Message Date
Rahul Padigela 160069beb3 improvement: S3C-1551 add access key to logs 2018-07-19 16:39:46 -07:00
2 changed files with 4 additions and 0 deletions

View File

@ -108,6 +108,8 @@ function check(request, log, data, awsService) {
const accessKey = credentialsArr.shift();
const credentialScope = credentialsArr.join('/');
log.addDefaultFields({ accessKey });
// In AWS Signature Version 4, the signing key is valid for up to seven days
// (see Introduction to Signing Requests.
// Therefore, a signature is also valid for up to seven days or

View File

@ -57,6 +57,8 @@ function check(request, log, data) {
const service = credential[3];
const requestType = credential[4];
log.addDefaultFields({ accessKey });
const isTimeSkewed = checkTimeSkew(timestamp, expiry, log);
if (isTimeSkewed) {
return { err: errors.RequestTimeTooSkewed };