Examine use of dynamic: "false"

Bug #1569437 reported by Steve McLellan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
New
Low
Unassigned

Bug Description

I think in places we've been under a misapprehension that disabling dynamic mapping prevents fields from being visible in a document's source; this is not the case (see the bottom of https://www.elastic.co/guide/en/elasticsearch/guide/current/dynamic-mapping.html).

If we don't want fields indexed at all, we need to strip them out of the source data before sending it to elasticsearch. There's already code to exclude fields based on admin_only_fields and this could be extended to strip data out of _source. Alternatively, if the intent behind not indexing fields was for securing admin fields that we might not predict, we can recommend that operators check that any sensitive data in their deployment is included in admin_only_fields.

We need to look at plugins where dynamic:false is specified, determine why it was done and make changes accordingly.

Steve McLellan (sjmc7)
Changed in searchlight:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.