# Is it possible to create proxy server between elasticsearch and kibana?

**URL:** <https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529>\
**Category:** Kibana\
**Created:** [December 19, 2019, 5:15pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529 "2019-12-19T17:15:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [December 19, 2019, 5:15pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/1 "2019-12-19T17:15:05Z")

</div>

Hey ,

I am using a i-frame that show to user kibana dashboard. This i-frame is in my web application. When user view this page in browser , user can see request url from network tab. If user copy the url and paste another browser tab , user can view kibana page without any authentication. I am using nginx reverse-proxy by the way.

I wanna create a server side proxy that can handle traffic between es and kibana. Is that possible? So user can't see kibana page without authentication outside web application.

Thanks.

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [December 19, 2019, 6:33pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/2 "2019-12-19T18:33:10Z")

</div>

Hey @Burak_Cayir,

You certainly can put a proxy between Kibana and Elasticsearch if you want to. We'd need more details about your setup if you want more specific advice, but a proxy in-between is doable.

---

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [December 20, 2019, 4:54am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/3 "2019-12-20T04:54:38Z")

</div>

Hey @Larry_Gregory,

My goal is really simple. Kibana will send request to my proxy.  
This proxy take request and deliver to elasticsearch.

I wanna do this because every user can see my logs without authentication on my web application. I wanna resolve this problem with proxy.

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [December 20, 2019, 2:30pm UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/4 "2019-12-20T14:30:24Z")

</div>

> [@Burak\_Cayir](#):
>
> wanna do this because every user can see my logs without authentication on my web application. I wanna resolve this problem with proxy.

I'm sorry, I must be missing something. It's not clear to me how a proxy between Kibana \<--\> Elasticsearch will prevent users from accessing Kibana directly.

You currently have:

`Web App with embedded Kibana <--> Elasticsearch`

What will `Web App with embedded Kibana <--> **Proxy** <--> Elasticsearch` achieve?

Users will still see the Kibana URL in this case, so they could load Kibana outside of your web app. If you put a proxy in _front_ of Kibana, then users would only see the Proxy URL, but they could still hit the proxy URL outside of the web app, right? Unless the proxy was inspecting request headers, but that's not fool-proof.

---

<div class="post-metadata">

**Author:** ![Burak\_Cayir](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/burak_cayir/32/44575_2.png) [@Burak\_Cayir](https://discuss.elastic.co/u/Burak_Cayir)\
**Post date:** [December 22, 2019, 11:20am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/5 "2019-12-22T11:20:43Z")

</div>

Maybe it's not possible , I dont know.

Web App users should see embedded kibana page without authentication. Because they already login to web App. But other people when click kibana url , they should see an authentication page or form.

---

<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:** [January 19, 2020, 11:20am UTC](https://discuss.elastic.co/t/is-it-possible-to-create-proxy-server-between-elasticsearch-and-kibana/212529/6 "2020-01-19T11:20:50Z")

</div>

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