Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict access to particular elasticsearch index for a given user? #32

Open
woolfie opened this issue Jul 12, 2014 · 10 comments
Open

Restrict access to particular elasticsearch index for a given user? #32

woolfie opened this issue Jul 12, 2014 · 10 comments

Comments

@woolfie
Copy link

woolfie commented Jul 12, 2014

Can this be used to restrict access to a particular index for a given user?

Currently, I think once logged in a user could create a new dashboard (by going to the root URL) and select whichever index they would like.

It would be great if this root URL could be restricted so that users were only able to access pre-built dashboards, or prevented from changing the index that a dashboard can access.

@Vineeth-Mohan
Copy link

I am voting for this issue. Let me know if there is any current efforts on this. If not I am willing to contribute this feature.

@wjimenez5271
Copy link

Yes +1 for this

@yang66
Copy link

yang66 commented Jul 29, 2014

see the pull request #18

@Vineeth-Mohan
Copy link

@coogleyou - I would prefer it as user should be able to access indices with pattern logstash-%user%-user

@strima
Copy link

strima commented Aug 5, 2014

@vineeth: could you elaborate this ? since the filter is regex based i mean it's no problem that you do something like this in your index_filter_file:

usernameA:^logstash-usernameA-.+
usernameB:^logstash-usernameB-.+

i personally see no sense in setting such things programmatically (but on the other hand i wrote this pull request this way)

@Vineeth-Mohan
Copy link

@strima - Well instead of mapping users to indices in the proxy , I map them by index name.
My index names are in format -logstash-date and only if it starts with the username , can a user use that particular index.

My point here is that , when a new user comes , i dont want to add any config change on proxy side , rather it should be seemless.

@misawsneto
Copy link

+1

@javifr
Copy link

javifr commented Apr 10, 2015

@strima
Copy link

strima commented Apr 13, 2015

@javifr - yes i saw this, but personally didn't find it that elegant ;)

@strima
Copy link

strima commented Apr 13, 2015

@Vineeth-Mohan - ok, one last question before i implement your wishes: you said you dont want to do any config changes on proxy side - so how do you enable a new user ? did you see my last commits where i added a filewatcher , so that if you change anything in the index_filter_file or in the basic auth file it gets reloaded by the application w/o need to restart ?

for the concrete thingie: what would you vote for ?

one username defined per convention in index_filter_file which can take the %user% placeholder, e.g.: GLOBALSETTINGS:^logstash-%user%-

or the left part of one line in the index_filter_file being also a regex instead of just an string

?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants