I created a few indices, they are in the name of:
booksfiction202102
booksfiction202103
booksscience202102
booksscience202103
booksart202102
booksart202103
In Kibana I define an index pattern “books*” so I can search across all indices.
Now, I’m trying to define a few roles, each role will have access only to one type of books. So “rolefiction” will only be able to search on the index booksfinction but not on other two indices. The other 2 roles will be similar.
I created this role by specifying the index pattern “booksfiction*” in hoping it will allow the user access to both booksfiction202102 and booksfiction202103 but not other indices.
When user logs in, however, he gets a forbidden error when accessing the data in Discover using the index pattern “books*”. Is there something I missed?
Hi !
You gave rights on booksfiction* not on books*.
So you get an error when you search for books*.
You can only use booksfiction*
You have to make a specific index-pattern for booksfiction*
EDIT : Maybe you can try to filter documents by index-name ? I never tried but you can give it a try if you want to keep a unique index-pattern books* .
Well, you are right. I did try creating an index-pattern “booksfiction*” and it works without error, however, then this security doesn’t make sense. So for every role I created with a special index pattern I’d have to create an index-pattern using “Stack Management?” Then if I created visualizations that used the books* pattern then these roles will not be able to share just because some more restricted index patterns? I remembered back in the version of ODFE last September, I can define this kind of role successfully but not in the newer version.
I understand, I always had the problem but for my use case I didn’t need to use the same index-pattern for two different roles, with one more restricted than the other one. So i never searched another solution.
If you find something, i’m interested
Maybe you can try to filter documents by index-name ? I never tried but you can give it a try if you want to keep a unique index-pattern books*