elasticsearch Elasticsearch Opendistro安全性--将用户添加到readall角色
我正在尝试使用elasticsearch开放发行版安全插件将用户添加到Kibana中的elasticsearch Elasticsearch Opendistro安全性--将用户添加到readall角色,elasticsearch,curl,kibana,elasticsearch-opendistro,elasticsearch,Curl,Kibana,Elasticsearch Opendistro,我正在尝试使用elasticsearch开放发行版安全插件将用户添加到Kibana中的readall角色。下面是对/roles/readall的get请求的内容,以及我使用的curl语法和相关错误。这里的目标是允许所有用户读取所有索引,而不考虑租户 请求(删除带有证书等的基本卷曲内容): --请求补丁-H“内容类型:应用程序/json”-d'[{“op”:“添加”,“路径”:“/users”,“值”:[“*”]}]”https://hostname/elasticsearch/_opendist
readall
角色。下面是对/roles/readall的get请求的内容,以及我使用的curl语法和相关错误。这里的目标是允许所有用户读取所有索引,而不考虑租户
请求(删除带有证书等的基本卷曲内容):
--请求补丁-H“内容类型:应用程序/json”-d'[{“op”:“添加”,“路径”:“/users”,“值”:[“*”]}]”https://hostname/elasticsearch/_opendistro/_security/api/rolesmapping/readall“
答复:
{“状态”:“未找到”,“消息”:“角色映射readall未找到”。}
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
}
}
curl-X PATCH-H“内容类型:application/json”-k-uadmin:12345678 https://`hostname`:9200/\u opendistro/\u security/api/rolesmapping/readall-d'[{“op”:“add”,“path”:“/users”,“value”:[“*”]}]'{“status”:“OK”,“message”:“readall”updated.}
您有什么版本?这里是7.8.0,我正在运行7.7.0