Feature Request: Access Control for Viewing Articles

オープン
#1,264 コメント 2 件 リアクション 4 件 担当者 0 名 GitHub で見る

メンテナーはふだん 6 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
go

調査の方向性

Issue ではファイル、テスト、エントリポイントが特定されていないため、まずリポジトリ内で記事の閲覧、ユーザーグループ、権限管理のエントリポイントを見つけます。完了とするには、合意されたアクセス制御設計、記事とグループ間の権限、権限のない閲覧者に対する強制適用、および拒否またはリダイレクト時のレスポンスの定義が必要です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Go
スター
15.7k
フォーク
1.4k
平均マージ
9日 6時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/answer のほかの issue

apache/answer の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。