sodonnel commented on code in PR #9372:
URL: https://github.com/apache/ozone/pull/9372#discussion_r2588820306
##########
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:
Also here, this could be a `private static final Clock ... `?
--
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]