# ACL configuration with indices is not working.

**URL:** <https://forum.search-guard.com/t/acl-configuration-with-indices-is-not-working/61>\
**Category:** Search Guard\
**Created:** [June 30, 2015, 9:51am UTC](https://forum.search-guard.com/t/acl-configuration-with-indices-is-not-working/61 "2015-06-30T09:51:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasanna.yelisetti](https://avatars.discourse-cdn.com/v4/letter/p/48db29/32.png) [@prasanna.yelisetti](https://forum.search-guard.com/u/prasanna.yelisetti)\
**Post date:** [June 30, 2015, 9:51am UTC](https://forum.search-guard.com/t/acl-configuration-with-indices-is-not-working/61/1 "2015-06-30T09:51:33Z")

</div>

I have configured search guard with elasticsearch.

In ACL Configuration, if I dont specify any role with the specific access against any indices…it works.

However I want a role where it should be allowed only for a particular index.

Below is my configuration changes. With this configuration I am not able to start kibana itself.

If I remove indices from ACL configuration for role admin, It is working.

Here is my elasticsearch.yml configuration:

searchguard.enabled: true

searchguard.rewrite\_get\_as\_search: true

searchguard.key\_path: C:/Test/searchguard\_node.key

searchguard.config\_index\_name: searchguard

searchguard.http.enable\_sessions: false

searchguard.auditlog.enabled: true

searchguard.allow\_all\_from\_loopback: true

searchguard.check\_for\_root: false

searchguard.authentication.authentication\_backend.impl: com.floragunn.searchguard.authentication.backend.simple.SettingsBasedAuthenticationBackend

searchguard.authentication.authentication\_backend.cache.enable: false

searchguard.authentication.authorizer.impl: com.floragunn.searchguard.authorization.simple.SettingsBasedAuthorizator

searchguard.authentication.authorizer.cache.enable: false

searchguard.authentication.http\_authenticator.impl: com.floragunn.searchguard.authentication.http.basic.HTTPBasicAuthenticator

searchguard.authentication.settingsdb.user.admin: password

searchguard.authentication.settingsdb.user.manager: password

searchguard.authentication.authorization.settingsdb.roles.admin: [“admin”]

searchguard.authentication.authorization.settingsdb.roles.manager: [“manager”]

searchguard.actionrequestfilter.names: [“readonly”]

searchguard.actionrequestfilter.readonly.allowed\_actions: [“indices:data/read/\*”, “_monitor_”]

searchguard.actionrequestfilter.readonly.forbidden\_actions: [“cluster:admin\*”, “indices:admin\*”, “indices:data/write\*”]

Here is my ACL configuration:

{

“acl”: [

{

“ **Comment** ”: “By default no filters are executed and no filters are by-passed. In such a case a exception is thrown and access will be denied.”,

“filters\_bypass”: ,

“filters\_execute”:

},

{

“ **Comment** ”: “For role ‘admin’ all filters are bypassed (so none will be executed). This means unrestricted access.”,

“roles”: [

“admin”

],

“indices”: [

“logstash-2014.10.05”

],

“filters\_bypass”: [“dlsfilter._","dlsfilter._”],

“filters\_execute”: [“\*”]

},

{

“ **Comment** ”: “For role ‘operations’ all filters will be executed.”,

“roles”: [

“manager”

],

“filters\_bypass”: ,

“filters\_execute”: [“\*”]

}

]

}

Please do the needfull.

Thanks,

Lakshmi.

---

<div class="post-metadata">

**Author:** ![searchguard\_google\_group](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.search-guard.com/searchguard_google_group/32/462_2.png) [@searchguard\_google\_group](https://forum.search-guard.com/u/searchguard_google_group)\
**Post date:** [July 1, 2015, 1:39pm UTC](https://forum.search-guard.com/t/acl-configuration-with-indices-is-not-working/61/2 "2015-07-01T13:39:54Z")

</div>

acl seems strange, you have no filter "dlsfilter.\*" configured?  
What are you trying to do?

> **···**
>
> > Am 30.06.2015 um 11:51 schrieb prasanna.yelisetti@gmail.com:
> > 
> > I have configured search guard with elasticsearch.
> > 
> > In ACL Configuration, if I dont specify any role with the specific access against any indices..it works.  
> > However I want a role where it should be allowed only for a particular index.
> > 
> > Below is my configuration changes. With this configuration I am not able to start kibana itself.  
> > If I remove indices from ACL configuration for role admin, It is working.
> > 
> > Here is my elasticsearch.yml configuration:
> > 
> > searchguard.enabled: true  
> > searchguard.rewrite\_get\_as\_search: true  
> > searchguard.key\_path: C:/Test/searchguard\_node.key  
> > searchguard.config\_index\_name: searchguard  
> > searchguard.http.enable\_sessions: false  
> > searchguard.auditlog.enabled: true  
> > searchguard.allow\_all\_from\_loopback: true  
> > searchguard.check\_for\_root: false
> > 
> > searchguard.authentication.authentication\_backend.impl: com.floragunn.searchguard.authentication.backend.simple.SettingsBasedAuthenticationBackend  
> > searchguard.authentication.authentication\_backend.cache.enable: false
> > 
> > searchguard.authentication.authorizer.impl: com.floragunn.searchguard.authorization.simple.SettingsBasedAuthorizator  
> > searchguard.authentication.authorizer.cache.enable: false
> > 
> > searchguard.authentication.http\_authenticator.impl: com.floragunn.searchguard.authentication.http.basic.HTTPBasicAuthenticator
> > 
> > searchguard.authentication.settingsdb.user.admin: password  
> > searchguard.authentication.settingsdb.user.manager: password
> > 
> > searchguard.authentication.authorization.settingsdb.roles.admin: ["admin"]  
> > searchguard.authentication.authorization.settingsdb.roles.manager: ["manager"]
> > 
> > searchguard.actionrequestfilter.names: ["readonly"]  
> > searchguard.actionrequestfilter.readonly.allowed\_actions: ["indices:data/read/\*", "\*monitor\*"]  
> > searchguard.actionrequestfilter.readonly.forbidden\_actions: ["cluster:admin\*", "indices:admin\*", "indices:data/write\*"]
> > 
> > Here is my ACL configuration:
> > 
> > {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"acl": [  
> > &nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"\_\_Comment\_\_": "By default no filters are executed and no filters are by-passed. In such a case a exception is thrown and access will be denied.",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_bypass": ,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_execute":   
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"\_\_Comment\_\_": "For role 'admin' all filters are bypassed (so none will be executed). This means unrestricted access.",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"roles": [  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"admin"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],  
> > "indices": [  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"logstash-2014.10.05"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_bypass": ["dlsfilter.\*","dlsfilter.\*"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_execute": ["\*"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"\_\_Comment\_\_": "For role 'operations' all filters will be executed.",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"roles": [  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"manager"  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_bypass": ,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"filters\_execute": ["\*"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;]  
> > }
> > 
> > Please do the needfull.
> > 
> > Thanks,  
> > Lakshmi.
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups "Search Guard" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an email to search-guard+unsubscribe@googlegroups.com.  
> > To post to this group, send email to search-guard@googlegroups.com.  
> > To view this discussion on the web visit [https://groups.google.com/d/msgid/search-guard/f8ef96d0-0adc-4902-a427-c920e5909c24%40googlegroups.com\](https://groups.google.com/d/msgid/search-guard/f8ef96d0-0adc-4902-a427-c920e5909c24%40googlegroups.com%5C).  
> > For more options, visit [https://groups.google.com/d/optout\](https://groups.google.com/d/optout%5C).

---

<div class="post-metadata">

**Author:** ![elain\_ding](https://avatars.discourse-cdn.com/v4/letter/e/35a633/32.png) [@elain\_ding](https://forum.search-guard.com/u/elain_ding)\
**Post date:** [August 28, 2015, 3:12am UTC](https://forum.search-guard.com/t/acl-configuration-with-indices-is-not-working/61/3 "2015-08-28T03:12:35Z")

</div>

you can update

“filters\_bypass”: [“dlsfilter._","dlsfilter._”],

like this:

“filters\_bypass”: [“\*”],

在 2015年6月30日星期二 UTC+8下午5:51:33，prasanna…@gmail.com写道：

> **···**
>
> > I have configured search guard with elasticsearch.
> 
> > In ACL Configuration, if I dont specify any role with the specific access against any indices…it works.
> 
> > However I want a role where it should be allowed only for a particular index.
> 
> > 
> 
> > Below is my configuration changes. With this configuration I am not able to start kibana itself.
> 
> > If I remove indices from ACL configuration for role admin, It is working.
> 
> > 
> 
> > Here is my elasticsearch.yml configuration:
> 
> > 
> 
> > searchguard.enabled: true
> 
> > searchguard.rewrite\_get\_as\_search: true
> 
> > searchguard.key\_path: C:/Test/searchguard\_node.key
> 
> > searchguard.config\_index\_name: searchguard
> 
> > searchguard.http.enable\_sessions: false
> 
> > searchguard.auditlog.enabled: true
> 
> > searchguard.allow\_all\_from\_loopback: true
> 
> > searchguard.check\_for\_root: false
> 
> > 
> 
> > 
> 
> > searchguard.authentication.authentication\_backend.impl: com.floragunn.searchguard.authentication.backend.simple.SettingsBasedAuthenticationBackend
> 
> > searchguard.authentication.authentication\_backend.cache.enable: false
> 
> > 
> 
> > searchguard.authentication.authorizer.impl: com.floragunn.searchguard.authorization.simple.SettingsBasedAuthorizator
> 
> > searchguard.authentication.authorizer.cache.enable: false
> 
> > 
> 
> > searchguard.authentication.http\_authenticator.impl: com.floragunn.searchguard.authentication.http.basic.HTTPBasicAuthenticator
> 
> > 
> 
> > searchguard.authentication.settingsdb.user.admin: password
> 
> > searchguard.authentication.settingsdb.user.manager: password
> 
> > 
> 
> > searchguard.authentication.authorization.settingsdb.roles.admin: [“admin”]
> 
> > searchguard.authentication.authorization.settingsdb.roles.manager: [“manager”]
> 
> > 
> 
> > searchguard.actionrequestfilter.names: [“readonly”]
> 
> > searchguard.actionrequestfilter.readonly.allowed\_actions: [“indices:data/read/\*”, “_monitor_”]
> 
> > searchguard.actionrequestfilter.readonly.forbidden\_actions: [“cluster:admin\*”, “indices:admin\*”, “indices:data/write\*”]
> 
> > 
> 
> > 
> 
> > Here is my ACL configuration:
> 
> > 
> 
> > {
> 
> > “acl”: [
> 
> > {
> 
> > “ **Comment** ”: “By default no filters are executed and no filters are by-passed. In such a case a exception is thrown and access will be denied.”,
> 
> > “filters\_bypass”: ,
> 
> > “filters\_execute”:
> 
> > },
> 
> > {
> 
> > “ **Comment** ”: “For role ‘admin’ all filters are bypassed (so none will be executed). This means unrestricted access.”,
> 
> > “roles”: [
> 
> > “admin”
> 
> > ],
> 
> > “indices”: [
> 
> > “logstash-2014.10.05”
> 
> > ],
> 
> > “filters\_bypass”: [“dlsfilter._","dlsfilter._”],
> 
> > “filters\_execute”: [“\*”]
> 
> > },
> 
> > {
> 
> > “ **Comment** ”: “For role ‘operations’ all filters will be executed.”,
> 
> > “roles”: [
> 
> > “manager”
> 
> > ],
> 
> > “filters\_bypass”: ,
> 
> > “filters\_execute”: [“\*”]
> 
> > }
> 
> > ]
> 
> > }
> 
> > 
> 
> > 
> 
> > Please do the needfull.
> 
> > 
> 
> > Thanks,
> 
> > Lakshmi.
