- create index template - forbidden
I cannot confirm that. I was able to create an index template.
I extracted the minimal reproducible example from your settings shown in previous posts:
- name: "rwgroup Kibana"
auth_key: "diana:test"
indices: [".kibana*"]
kibana_access: "rw"
- name: "rwgroup 0"
auth_key: "diana:test"
indices: ["diana*", "elast*"]
actions: ["indices:data/read/*", "indices:data/write/*", "indices:admin/*"]
Here is the log of the successful creation of the index template:
ror-demo-cluster-es-ror-1 | [2023-08-30T19:40:30,857][INFO ][t.b.r.a.l.AccessControlLoggingDecorator] [es-ror-single] ALLOWED by { name: 'rwgroup 0', policy: ALLOW, rules: [auth_key,actions,indices] req={ ID:316963062-849947420#2427, TYP:PutComposableIndexTemplateAction$Request, CGR:<N/A>, USR:diana, BRS:true, KDX:null, ACT:indices:admin/index_template/put, OA:172.20.0.3/32, XFF:localhost:15601, DA:172.20.0.2/32, IDX:diana2*, MET:PUT, PTH:/_index_template/diana_test_index_template, CNT:<OMITTED, LENGTH=47.0 B> , HDR:Accept-Charset=utf-8, Authorization=<OMITTED>, Host=es-ror:9200, accept=application/vnd.elasticsearch+json; compatible-with=8, connection=close, content-length=47, content-type=application/vnd.elasticsearch+json; compatible-with=8, cookie=rorCookie=Fe26.2**e341a4b311795663a35a5969b5d16c1c6e9ebc26648c8e6a371830381d93a4c1*6OnOP3Wotgx3svdCB9BQmw*qBlZdu8Vq35u3I1g8_M36K5BAa1dmi-oHrBZnIM27_RTcdi9IQF2T9RPg6fzauyZ**709edbf7262c729c372b0e9815024b0bdaf702f52e4c89de8ec37c993786c0b6*48676PnpxlhIMFJDGFdsUaF5f4q5pUZ6-niEmmVnLfQ; x-csrf-token=fb1009fb9d14b4fe53aede19da357b4ef31dd75d714f376b7c372da30b9ed219, elastic-apm-traceparent=00-9bd966f7b02ba0ddafb5f30bb0997b84-5d257d668ab9e1f0-00, traceparent=00-9bd966f7b02ba0ddafb5f30bb0997b84-5d257d668ab9e1f0-00, tracestate=es=s:0, user-agent=Kibana/8.6.2, x-elastic-client-meta=es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1, x-elastic-product-origin=kibana, x-forwarded-for=localhost:15601, x-opaque-id=unknownId, x-ror-correlation-id=a83f6ba4-8294-485b-8602-5f0c6d09c4f0, x-ror-kibana-request-method=post, x-ror-kibana-request-path=/s/default/api/index_management/index_templates, HIS:[KIBANA-> RULES:[auth_key->false] RESOLVED:[indices=diana2*;template=ADD(diana_test_index_template:diana2*:)]], [ADMIN-> RULES:[auth_key->false] RESOLVED:[indices=diana2*;template=ADD(diana_test_index_template:diana2*:)]], [rwgroup Kibana-> RULES:[auth_key->true, kibana_access->false] RESOLVED:[user=diana;indices=diana2*;template=ADD(diana_test_index_template:diana2*:)]], [rwgroup 0-> RULES:[auth_key->true, actions->true, indices->true] RESOLVED:[user=diana;indices=diana2*;template=ADD(diana_test_index_template:diana2*:)]], }
- when clicking on a data stream name in Index Management this error appears: Error loading data stream forbidden
I can confirm it happens:
ror-demo-cluster-es-ror-1 | [2023-08-30T19:44:57,654][INFO ][t.b.r.a.l.AccessControlLoggingDecorator] [es-ror-single] FORBIDDEN by default req={ ID:1713650119-1548926947#5758, TYP:DataStreamsStatsAction$Request, CGR:<N/A>, USR:diana (attempted), BRS:true, KDX:null, ACT:indices:monitor/data_stream/stats, OA:172.20.0.3/32, XFF:172.20.0.1, DA:172.20.0.2/32, IDX:<N/A>, MET:GET, PTH:/_data_stream/diana2/_stats, CNT:<N/A>, HDR:Accept-Charset=utf-8, Authorization=<OMITTED>, Host=es-ror:9200, accept=application/vnd.elasticsearch+json; compatible-with=8,text/plain, connection=close, content-length=0, cookie=rorCookie=Fe26.2**e341a4b311795663a35a5969b5d16c1c6e9ebc26648c8e6a371830381d93a4c1*6OnOP3Wotgx3svdCB9BQmw*qBlZdu8Vq35u3I1g8_M36K5BAa1dmi-oHrBZnIM27_RTcdi9IQF2T9RPg6fzauyZ**709edbf7262c729c372b0e9815024b0bdaf702f52e4c89de8ec37c993786c0b6*48676PnpxlhIMFJDGFdsUaF5f4q5pUZ6-niEmmVnLfQ; x-csrf-token=fb1009fb9d14b4fe53aede19da357b4ef31dd75d714f376b7c372da30b9ed219, elastic-apm-traceparent=00-329001f875d18c3fca17d35a6a5c2fe9-a60716a7d4538d0e-00, traceparent=00-329001f875d18c3fca17d35a6a5c2fe9-a60716a7d4538d0e-00, tracestate=es=s:0, user-agent=Kibana/8.6.2, x-elastic-client-meta=es=8.4.0p,js=16.18.1,t=8.2.0,hc=16.18.1, x-elastic-product-origin=kibana, x-forwarded-for=172.20.0.1, x-opaque-id=unknownId, x-ror-correlation-id=b925fcab-426b-4a23-93d0-ef495b38b111, x-ror-kibana-request-method=get, x-ror-kibana-request-path=/s/default/api/index_management/data_streams/diana2, HIS:[KIBANA-> RULES:[auth_key->false]], [ADMIN-> RULES:[auth_key->false]], [rwgroup Kibana-> RULES:[auth_key->true, kibana_access->false] RESOLVED:[user=diana]], [rwgroup 0-> RULES:[auth_key->true, actions->false] RESOLVED:[user=diana]], }
but it looks like your actions
rule configuration doesn’t take into consideration indices:monitor/data_stream/stats
which describes the GET /_data_stream/diana2/_stats
request on the ES side.