fmorg-git commented on code in PR #9372:
URL: https://github.com/apache/ozone/pull/9372#discussion_r2589941298
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/security/S3AssumeRoleRequest.java:
##########
@@ -197,7 +200,7 @@ private String generateSessionToken(String targetRoleName,
OMRequest omRequest,
return ozoneManager.getSTSTokenSecretManager().createSTSTokenString(
tempAccessKeyId, originalAccessKeyId, roleArn,
assumeRoleRequest.getDurationSeconds(), secretAccessKey,
- sessionPolicy);
+ sessionPolicy, Clock.system(ZoneOffset.UTC));
Review Comment:
updated
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/security/S3SecurityUtil.java:
##########
@@ -59,7 +61,7 @@ public static void validateS3Credential(OMRequest omRequest,
final String token = omRequest.getS3Authentication().getSessionToken();
if (!token.isEmpty()) {
final STSTokenIdentifier stsTokenIdentifier =
STSSecurityUtil.constructValidateAndDecryptSTSToken(
- token, ozoneManager.getSecretKeyClient());
+ token, ozoneManager.getSecretKeyClient(),
Clock.system(ZoneOffset.UTC));
Review Comment:
updated
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]