How to modify dashboard request in backend?


(Kai Dong) #1

I want to use server.auth.scheme to intercept request, and modify the payload before elasticsearch handle it. But cannot get the payload.

My ultimate goal is to only allow users to get their own data, so I want to add filters to es query, is there any other way?


(kulkarni) #2

It sounds like xpack security would do the trick for your ultimate goal- Unless you are talking about saved objects in .kibana. In that case they’ll have to wait for RBAC - You can follow/subscribe to the ticket and its progress here: https://github.com/elastic/kibana/pull/19723
I’m not too sure about the interception....Maybe if there was a reverse proxy in front of ES this might be possible ….?

I will get back to u if I have more insights into this.

Thanks
Rashmi


(system) #3

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