Interface IndicesRequest.SingleIndexNoWildcards

All Superinterfaces:
IndicesRequest, IndicesRequest.CrossProjectCandidate
Enclosing interface:
IndicesRequest

public static interface IndicesRequest.SingleIndexNoWildcards extends IndicesRequest, IndicesRequest.CrossProjectCandidate
For use cases where a Request instance cannot implement Replaceable due to not supporting wildcards and only supporting a single index at a time, this is an alternative interface that the security layer checks against to determine if remote indices are allowed for that Request type. This may change with https://github.com/elastic/elasticsearch/issues/105598
  • Method Details

    • allowsRemoteIndices

      default boolean allowsRemoteIndices()
    • allowsCrossProject

      default boolean allowsCrossProject()
      Description copied from interface: IndicesRequest.CrossProjectCandidate
      Determines whether the request type can support cross-project processing. Cross-project processing entails 1. UIAM authentication and authorization projects resolution. 2. If applicable, cross-project flat-world index resolution and error handling Note: this method only determines if the request supports cross-project. Whether cross-project processing is actually performed depends on other factors such as:
      • Whether CPS is enabled which impacts both 1 and 2.
      • Whether IndicesOptions supports it when the request is an IndicesRequest. This only impacts 2.
      See also CrossProjectModeDecider.
      Specified by:
      allowsCrossProject in interface IndicesRequest.CrossProjectCandidate
    • markOriginOnly

      void markOriginOnly()
      Marks request local. Local requests should be processed on the same cluster, even if they have cluster-alias prefix.