Feature Request: Access Control for Viewing Articles

Đang mở
#1,264 2 bình luận 4 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
go
Lĩnh vực
authorization, backend

Hướng nghiên cứu

Vì issue không xác định tệp, test hoặc entry point nào, hãy bắt đầu bằng cách xác định các entry point cho việc duyệt bài viết, nhóm người dùng và quản lý quyền trong repository. Để được xem là hoàn tất, cần có thiết kế kiểm soát truy cập đã được thống nhất, quyền từ bài viết đến nhóm, việc thực thi đối với người xem không được cấp quyền, và một response từ chối hoặc chuyển hướng được xác định.

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

Mô tả

new-feature

Is your feature request related to a problem? Please describe

Currently, all users can browse all articles without any access restrictions. However, in some cases, we need to limit access so that only specific user groups can view certain articles.

Describe the solution you'd like

I would like to request a permission-based access control system for browsing articles. Specifically:

Each article should have an associated access group.
Only users belonging to the assigned group should be able to view the article.
Unauthorized users should receive a "Permission Denied" message or be redirected to a different page.

Describe alternatives you've considered

A few potential solutions could be:

Role-based access control (RBAC): Define roles (e.g., admin, editor, viewer) and associate them with article access.
Group-based permissions: Users can belong to different groups, and articles can be restricted to specific groups.
Tag-based restrictions: Articles could be tagged with access control levels (e.g., "internal only", "public").

Additional context

This feature would enhance security and provide more control over sensitive or internal articles.
It would be helpful if there were an admin panel where permissions could be managed easily.

Ngôn ngữ chính
Go
Star
15.7k
Fork
1.4k
Merge trung bình
9 ngày 6 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/answer

Tất cả issue của apache/answer

Issue tương tự

Thêm issue về Go

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.