This is an automated email from the ASF dual-hosted git repository.

sammichen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new eb2e10bf22 HDDS-9234. OM should shutdown immediately if certificate 
durations are invalid (#5243)
eb2e10bf22 is described below

commit eb2e10bf22f29d5620379aabb6074f25c0e6dcd0
Author: Aryan Gupta <[email protected]>
AuthorDate: Wed Sep 13 11:10:29 2023 +0530

    HDDS-9234. OM should shutdown immediately if certificate durations are 
invalid (#5243)
---
 .../src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java         | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
index 3396f6b975..40b8e94c74 100644
--- 
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
+++ 
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneManager.java
@@ -1315,6 +1315,9 @@ public final class OzoneManager extends 
ServiceRuntimeInfoImpl
       throws IOException, AuthenticationException {
     securityEnabled = OzoneSecurityUtil.isSecurityEnabled(conf);
     if (securityEnabled && testUgi == null) {
+      // Checking certificate duration validity by using
+      // validateCertificateValidityConfig() in SecurityConfig constructor.
+      new SecurityConfig(conf);
       loginOMUser(conf);
     }
   }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to