Project

General

Profile

Task #2348

Story #2345: Filter Log records by authorized user subject

Analyze solr and design an approach that will work for logging and search

Added by Robert Waltz almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Robert Waltz
Category:
d1_log_aggregation
Start date:
2012-02-17
Due date:
% Done:

100%

Milestone:
CCI-1.0.0
Product Version:
*
Story Points:
Sprint:

History

#1 Updated by Robert Waltz almost 13 years ago

  • Status changed from In Progress to Closed

Solr Requests are filtered with SolrDispatchFilter. The SolrDispatchFilter will take a HttpServletRequest and wrap the parameters from it into a SolrQueryRequest object. The SolrQueryRequest object is then passed into a SolrRequestHandler. The SolrRequestHandler is an interface that is implemented by a variety of defined handlers in the Solr project. And, "One way to register a SolrRequestHandler with the core is thorugh the solrconfig.xml file."

The information that is passed in the HttpServletRequest for authentication and authorization (our x509 certificate) is set as an attribute. SolrRequestHandlers do not have access to the attributes of a HttpServletRequest, just the parameter map. Therefore, I plan to create a pre-SolrDispatchFilter to parse out the subject from the x509 certifcate, determine all the groups to which the subject belongs and equivalent identities, or determine if the subject is an administrative subject(only CN's will be considered administrative subjects for this implementation) and place the information in the request's parameters map. The information should then show up in the SolrQueryRequest accessible by a SolrRequestHandler. Then, we can write our own SolrRequestHandlers based on the default implementation, SearchHandler. We may plug in our implementations (one for search and the other for logging) into our respective core solrconfig.xml files. We also need to add in a filter definition in web.xml prior to the SolrDispatchFilter definition.

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 14.8 MB)