# Securing elasticsearch queries

**URL:** <https://discuss.elastic.co/t/securing-elasticsearch-queries/81319>\
**Category:** Elasticsearch\
**Created:** [April 5, 2017, 2:31pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-queries/81319 "2017-04-05T14:31:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felipe\_Santos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/felipe_santos/32/3511_2.png) [@Felipe\_Santos](https://discuss.elastic.co/u/Felipe_Santos)\
**Post date:** [April 5, 2017, 2:31pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-queries/81319/1 "2017-04-05T14:31:57Z")

</div>

Is there any framework, proxy whatever that helps me encapsulate elasticsearch queries?  
I have an elasticsearch index which has all my customers, but I would like to provide an api which has all the power(or a subset) off elasticsearch queries . I would like to protect against bad queries, queries which could break elasticsearch.  
This API will be available on the internet.  
Another use case is, if I change elasticsearch version maybe the query could change.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 3, 2017, 2:32pm UTC](https://discuss.elastic.co/t/securing-elasticsearch-queries/81319/2 "2017-05-03T14:32:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
