DLS during document indexing

#1

Hello Search Guard Team,

we are currently developing a feature where a DLS on document indexing would be very helpful, but in the documentation only the a searching access is described. Does DLS also apply during indexing?

0 Likes

#2

No, not really. From your question I suspect that your use case is to exclude some documents during ingest time, correct? If this is the case you may want to use an ingest processor:

https://www.elastic.co/guide/en/elasticsearch/reference/current/drop-processor.html

DLS, as you correctly stated, works for searches. The reason is that DLS is applied dynamically, since it can be different for each SG role. So one role sees documents that meet condition A, while another role sees documents that meet condition B. For that to work all documents must be indexed.

0 Likes

assigned jkressin #3
0 Likes

#4

Thanks for your input, we suspected that it would not work but wanted clarity. Also thanks for the hint for ingest processing, we will look into it.

0 Likes