Hello,
ES + KBN Version: 7.2.0
ROR VERSION: Enterprise 1.18.9_7.2.0
I have an issue with an forbid block that matches a wrong index meaning:
I have block
- name: "Forbidden for something index"
groups: ["client_admin", "test"]
type: "forbid"
indices: ["testx"]
methods: ["PUT", "POST", "DELETE"]
If I’m trying to create an ILM Policy from kibana ( http://localhost:5601/app/kibana#/management/elasticsearch/index_lifecycle_management/policies/edit)
and click save I receive
Error saving lifecycle policy asdsa
403: Not allowed for user. [undefined] forbidden, with { due_to={ 0="FORBIDDEN_BY_BLOCK" } }
After that I’ve tried to look into elasticsearch logs and I saw:
{
"name":"Forbidden for .readonlyrest index",
"policy":"FORBID",
"rules":[
"groups",
"methods",
"indices"
] "req="{
"ID":1434536037--1833203081#1306,
"TYP":"Request",
"CGR":"client_admin",
"USR":cristian_user,
"BRS":false,
"KDX":null,
"ACT":"cluster":"admin/ilm/put",
"OA":172.21.0.4/32,
"XFF":null,
"DA":172.21.0.2/32,
"IDX":"<N/A>",
"MET":"PUT",
"PTH":"/_ilm/policy/asdsada",
"CNT":"<OMITTED",
LENGTH=122.0 B>,
"HDR":"Connection=keep-alive",
Content-Length=122,
"Host=elasticsearch":9200,
"content-type=application/json",
x-forwarded-user=cristian_user,
"x-ror-current-group=client_admin",
"x-ror-kibana-request-method=post",
"x-ror-kibana-request-path=/api/index_lifecycle_management/policies",
"HIS":[
"Full Admin Users-> RULES": [
"groups->false"
],
"RESOLVED": [
"group=client_admin"
]
],
[
"Forbidden for .readonlyrest index-> RULES": [
"groups->true",
"methods->true",
"indices->true"
],
"RESOLVED": [
user=cristian_user;group=client_admin;av_groups=client_admin
]
]
}
So from this elasticsearch log I understand that forbid block is matched because of my group method ( which is normal ) but index from block is not testx.
My entire ror config is:
readonlyrest:
prompt_for_basic_auth: false
access_control_rules:
- name: "Full Admin Users"
groups: ["full-admin"]
- name: "Forbidden for something index"
groups: ["client_admin", "test"]
type: "forbid"
indices: ["testx"]
methods: ["PUT", "POST", "DELETE"]
- name: "Client Admin Group Kibana"
groups: ["client_admin"]
indices: ["*"]
kibana_access: "admin"
kibana_hide_apps: ["readonlyrest_kbn"]
- name: "Client Admin Group"
groups: ["client_admin"]
proxy_auth_configs:
- name: "px1"
user_id_header: "x-forwarded-user"
users:
- username: "fulladmin"
groups: ["full-admin"]
auth_key: "fulladmin:password"
- username: "cristian_user"
groups: ["client_admin"]
proxy_auth:
proxy_auth_config: "px1"
users: ["cristian_user"]