graphile / graphile/graphile.github.io
Add a note in make-extend-schema-plugin docs - JS doesn't bypass security.
- Ngôn ngữ chính
- SCSS
- Star
- 27
- Fork
- 126
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
See discord chat
"Hi, I'm trying to implement a register form, users should only can see their user by calling userById() query.
but in my custom mutation registerUser I need to know if user already registered or not.
[default-role](https://www.graphile.org/postgraphile/default-role/) states:
> So the default_role should have restricted privileges to only your data that is publicly accessible.
as my users table is not public, how can I implimnet my mutation?"
**"The JS is not permitted to bypass the security (that's why PostGraphile can be so secure); so you'll need to call a small security definer function from your schema extension."**
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
Đọc tài liệu về make-extend-schema-plugin và tìm phần nói về schema extensions và security. Thêm một ghi chú giải thích rằng JavaScript không vượt qua được cơ chế bảo mật của cơ sở dữ liệu và rằng cần có một security definer function nhỏ cho trường hợp sử dụng này. Hoàn tất khi hướng dẫn đề cập rõ ràng đến kịch bản register mutation.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript
- Lĩnh vực
- documentation, security
- Loại issue
- Tài liệu
- Độ khó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100