sscarduzio / elasticsearch-readonlyrest-plugin

Free Elasticsearch security plugin and Kibana security plugin: super-easy Kibana multi-tenancy, Encryption, Authentication, Authorization, Auditing
https://readonlyrest.com
GNU General Public License v3.0
952 stars 165 forks source link

Rest authentication code #422

Closed mohankumaru closed 5 years ago

mohankumaru commented 5 years ago

I want to know which folder has the code for rest authentication.

sscarduzio commented 5 years ago

that's super vague, what do you want to do?

mohankumaru commented 5 years ago

Basically i have to configure oauth authentication for elasticsearch without using any plugins(including xpack) and reverse proxies, so i was looking for some references. Do you have any idea how to go about it. I have to add authentication to rest requests, so should i modify restcontroller.java.

sscarduzio commented 5 years ago

i have to configure oauth authentication for elasticsearch without using any plugins and reverse proxies

So you are going to fork and patch Elasticsearch code?

mohankumaru commented 5 years ago

yes

sscarduzio commented 5 years ago

I'm sure you have good reasons, but as I can't imagine them, II have a few objections:

mohankumaru commented 5 years ago

Nobody seems to answer my question there,so out of desperation i asked here.

sscarduzio commented 5 years ago

I guess they've been forked enough this year, lol.

sscarduzio commented 5 years ago

No but seriously I suggest you use the plugin API, as they also do internally for features that go in the main distribution. See:

https://github.com/elastic/elasticsearch/tree/master/plugins