fabric8io / openshift-elasticsearch-plugin

Apache License 2.0
27 stars 21 forks source link

WIP - DO NOT MERGE - Policy Sync Impl #4

Closed jcantrill closed 9 years ago

fusesource-ci commented 9 years ago

Can one of the admins verify this patch?

fusesource-ci commented 9 years ago

Can one of the admins verify this patch?

fusesource-ci commented 9 years ago

Can one of the admins verify this patch?

jcantrill commented 9 years ago

Used config that is in the samples of this commit along with these nominal tests

$ curl -H "X-Authenticated-User: blah" localhost:9200/foobar/type1/1
{"error":"RuntimeException[java.lang.RuntimeException: Action 'indices:data/read/get' is forbidden due to *]; nested: RuntimeException[Action 'indices:data/read/get' is forbidden due to *]; ","status":500}
$ curl -oadm policy add-role-to-user admin blah -n foobar
$ curl -H "X-Authenticated-User: blah" localhost:9200/foobar/type1/1
{"_index":"foobar","_type":"type1","_id":"1","found":false}
jcantrill commented 9 years ago

closing as we moved to dynamic ACL's instead of trying to sync on policy