non-super user can't create cross cluster index pattern
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện request của người dùng không phải super-user tới /api/index_patterns/_fields_for_wildcard với một pattern như data: và so sánh với hành vi thành công của super-user. Theo dõi các quyền liên quan đến việc tra cứu field của index-pattern; công việc được xem là hoàn tất khi một người dùng cross-cluster đã được cấp quyền có thể tạo các pattern chứa : mà không nhận được response 500.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Original comment by @LeeDr:
Kibana version: 5.5.0
Elasticsearch version: 5.5.0
Server OS version: Ubuntu
Browser version: Chrome
Browser OS version: Ubuntu
Original install method (e.g. download page, yum, from source, etc.): tar.gz
Description of the problem including expected versus actual behavior:
I think I'm giving a user roles with permissions that should allow them to create a cross cluster index pattern, but it fails.
Steps to reproduce:
- set up 2 es nodes so that one is a "local" admin cluster that Kibana uses (9200), and the other is a remote "data" cluster (9210).
- Add makelogs data to both clusters
- create a
makelogs_readerrole, that has index patternsmakelogs-*, local:makelogs-*, data:makelogs-*, *:makelogs-*and privsread, view_index_metadata, read_cross_cluster - create a
kibana_cssrole that is just like the kibana_user role except add theread_cross_clusterpriv on the .kibana* index. (I didn't think this step should be necessary since .kibana isn't cross cluster, but I tried it when things didn't work with kibana_user role) - Create a
makelogs_readeruser withmakelogs_readerandkibana_cssroles - log in as that user and try to create any index pattern containing
:.
It fails right after you type the:likedata:
Up to the point where I type data I can see Kibana checking if that index exists and getting a 404 as expected. But as soon as I type the : I get the red toast error banner and the console shows this;
Errors in browser console (if relevant):
getFieldsForWildcard(data:)
VM10731:1 GET https://localhost:5601/api/index_patterns/_fields_for_wildcard?pattern=data…5B%22_source%22%2C%22_id%22%2C%22_type%22%2C%22_index%22%2C%22_score%22%5D 500 (Internal Server Error)
(anonymous) @ VM10731:1
(anonymous) @ commons.bundle.js?v=15347:37
sendReq @ commons.bundle.js?v=15347:37
serverRequest @ commons.bundle.js?v=15347:37
processQueue @ commons.bundle.js?v=15347:38
(anonymous) @ commons.bundle.js?v=15347:38
$eval @ commons.bundle.js?v=15347:39
$digest @ commons.bundle.js?v=15347:39
$apply @ commons.bundle.js?v=15347:39
(anonymous) @ commons.bundle.js?v=15347:39
completeOutstandingRequest @ commons.bundle.js?v=15347:36
(anonymous) @ commons.bundle.js?v=15347:36
commons.bundle.js?v=15347:38 Error: An internal server error occurred
at kibana.bundle.js?v=15347:228
at processQueue (commons.bundle.js?v=15347:38)
at commons.bundle.js?v=15347:38
at Scope.$eval (commons.bundle.js?v=15347:39)
at Scope.$digest (commons.bundle.js?v=15347:39)
at Scope.$apply (commons.bundle.js?v=15347:39)
at done (commons.bundle.js?v=15347:37)
at completeRequest (commons.bundle.js?v=15347:37)
at XMLHttpRequest.xhr.onload (commons.bundle.js?v=15347:37)
(anonymous) @ commons.bundle.js?v=15347:38
(anonymous) @ commons.bundle.js?v=15347:37
processQueue @ commons.bundle.js?v=15347:38
(anonymous) @ commons.bundle.js?v=15347:38
$eval @ commons.bundle.js?v=15347:39
$digest @ commons.bundle.js?v=15347:39
$apply @ commons.bundle.js?v=15347:39
done @ commons.bundle.js?v=15347:37
completeRequest @ commons.bundle.js?v=15347:37
xhr.onload @ commons.bundle.js?v=15347:37
I know the cross cluster config is OK and data:makelogs-* works fine for the elastic super user.
Provide logs and/or server output (if relevant):
The 2 roles I created:
"makelogs_reader": {
"cluster": [],
"indices": [
{
"names": [
"makelogs-*",
"data:makelogs-*",
"*:makelogs-*",
"local:makelogs-*"
],
"privileges": [
"read",
"view_index_metadata",
"read_cross_cluster"
],
"field_security": {
"grant": [
"*"
]
}
}
],
"run_as": [],
"metadata": {},
"transient_metadata": {
"enabled": true
}
},
"kibana_ccs": {
"cluster": [],
"indices": [
{
"names": [
".kibana*"
],
"privileges": [
"manage",
"create",
"index",
"delete",
"read_cross_cluster"
],
"field_security": {
"grant": [
"*"
]
}
}
],
"run_as": [],
"metadata": {},
"transient_metadata": {
"enabled": true
}
}
- Ngôn ngữ chính
- Java
- Star
- 105
- Fork
- 249
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của elastic/stack-docs
-
Broken links to AD jobs Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 35/100
elastic/stack-docs#2749 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
elastic/stack-docs#2395 ·
-
discussion help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
elastic/stack-docs#2291 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
elastic/stack-docs#2263 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
elastic/stack-docs#2224 ·
Tất cả issue của elastic/stack-docs
Issue tương tự
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
apache/cloudstack#14222 ·
-
[BUG]茶杯方块在取茶时会引发崩溃 Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
-
Cannot differ own consent and managed consents in My Consents view and detailed consent view. Đang mở1.0.0-alpha2 Type/Improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wso2/dpdp-accelerator#272 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100