Interface InterClusterRequestEvaluator

  • All Known Implementing Classes:
    DefaultInterClusterRequestEvaluator, OIDClusterRequestEvaluator

    public interface InterClusterRequestEvaluator
    Evaluates a request to determine if it is intercluster communication. Implementations should include a single arg constructor that takes org.elasticsearch.common.settings.Settings
    • Method Detail

      • isInterClusterRequest

        boolean isInterClusterRequest​(org.elasticsearch.transport.TransportRequest request,
                                      X509Certificate[] localCerts,
                                      X509Certificate[] peerCerts,
                                      String principal)
        Determine if request is a message from another node in the cluster
        Parameters:
        request - The transport request to evaluate
        localCerts - Local certs to use for evaluating the request which include criteria specific to the implementation for confirming intercluster communication
        peerCerts - Certs to use for evaluating the request which include criteria specific to the implementation for confirming intercluster communication
        principal - The principal evaluated by the configured principal extractor
        Returns:
        True when determined to be intercluster, false otherwise