docs: public boolean restAuthEnabled() {
          final boolean restInitiallyDisabled = staticSettings.getAsBoolean(ConfigConstants.SEARCHGUARD_UNSUPPORTED_DISABLE_REST_AUTH_INITIALLY, false);
          
          if(restInitiallyDisabled) {
              if(dynamicSgConfig == null) {
                  if(log.isTraceEnabled()) {
                      log.trace("dynamicSgConfig is null, initially static restDisabled");
                  }
                  return false;
              } else {
                  final boolean restDynamicallyDisabled = dynamicSgConfig.getAsBoolean("searchguard.dynamic.disable_rest_auth", false);
                  if(log.isTraceEnabled()) {
                      log.trace("searchguard.dynamic.disable_rest_auth {}", restDynamicallyDisabled);
                  }
                  return !restDynamicallyDisabled;
              }
          } else {
              return true;
          }
  
      }