我正在尝试将用户添加到 readall
使用elasticsearch开放发行版安全插件在kibana中的角色。下面是对/roles/readall的get请求的内容,以及我使用的curl语法和相关的错误。这里的目标是允许所有用户读取所有索引,而不考虑租户。
请求(删除了带有证书等的基本 curl 内容): --request PATCH -H "Content-Type: application/json" -d '[{"op": "add", "path": "/users", "value": ["*"]}]' "https://hostname/elasticsearch/_opendistro/_security/api/rolesmapping/readall"
答复: {"status":"NOT_FOUND","message":"rolesmapping readall not found."}
readall角色的get请求的内容:
"readall": {
"reserved": true,
"hidden": false,
"description": "Provide the minimum permissions for to readall indices",
"cluster_permissions": ["cluster_composite_ops_ro"],
"index_permissions": [{
"index_patterns": ["*"],
"fls": [],
"masked_fields": [],
"allowed_actions": ["read"]
}],
"tenant_permissions": [],
"static": true
}
}
暂无答案!
目前还没有任何答案,快来回答吧!