elastic / elastic/stack-docs

Clarify File-based grants are not visible with API calls

Đang mở
#211 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
:Security
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

Mô tả

The following is true of all versions: The APIs (user, role, role mapping) only work with objects that were defined via the API.

Objects (users, roles, mappings) defined in files need to be managed via the files (or the `users` CLI tool which uses the files).

API exploration calls (and consecutively, Kibana) will not report roles and mappings defined in files.

Example, where role production_user is defined in roles.yml and user "test" is a file realm user created with the users CLI tool.

```
curl -X GET -u test:password http://localhost:9200/_xpack/security/_authenticate
{"username":"test","roles":["production_user"],"full_name":null,"email":null,"metadata":{},"enabled":true}[root@localhost x-pack]#

curl -X GET -u test:password http://localhost:9200/_xpack/security/role/production_user
{}

curl -X GET -u elastic:password http://localhost:9200/_xpack/security/user/test
{}
```

Some places to update docs to reflect this behavior:

https://www.elastic.co/guide/en/elastic-stack-overview/6.6/defining-roles.html#roles-management-file

https://www.elastic.co/guide/en/elastic-stack-overview/6.6/mapping-roles.html#mapping-roles-file

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

Hướng nghiên cứu

Bắt đầu với các trang tài liệu về defining-roles và mapping-roles được liên kết trong issue, sau đó so sánh phần mô tả của chúng với các ví dụ API được cung cấp. Làm rõ rằng người dùng, vai trò và ánh xạ được định nghĩa trong các tệp hoặc thông qua users CLI không được các API quản lý tương ứng báo cáo, đồng thời kiểm tra lại cách diễn đạt đã cập nhật dựa trên cả hai ví dụ.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Lĩnh vực
api, authorization, documentation
Loại issue
Tài liệu
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.