Class SolrAuthorizationComponent

java.lang.Object
com.lucidworks.cloud.api.solr.SolrAuthorizationComponent

public class SolrAuthorizationComponent extends Object
Solr users can do federated search using "collection" or "shards" query params, thus bypassing our security enforcements. This helper class does additional authorization checks to forbid that. see APOLLO-3566
  • Field Details

  • Constructor Details

    • SolrAuthorizationComponent

      public SolrAuthorizationComponent(CollectionComponent collectionComponent)
  • Method Details

    • checkSolrCollectionAndShardsParams

      public List<String> checkSolrCollectionAndShardsParams(String searchClusterId, String collectionParam, String shardsParam, com.lucidworks.apollo.security.AuthorizationContext authorizationContext) throws Exception
      Throws:
      Exception
    • splitParamValue

      public static List<String> splitParamValue(String value)