Feature Request: Access Control for Viewing Articles
维护者通常 6 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- go
- 领域
- authorization, backend
调研方向
由于 issue 中没有确定任何文件、测试或入口点,因此请先在 repository 中定位文章浏览、用户组和权限管理的入口点。要视为完成,需要达成一致的访问控制设计、文章到用户组的权限、对未授权查看者的强制执行,以及明确定义的拒绝或重定向响应。
由索引模型根据 Issue 内容生成。
描述
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 小时
- 30 天内合并 PR
- 8
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
apache/answer 的其他 Issue
-
Hardening: cap the invite_user list size in UpdateQuestionInviteUser to bound notification fan-out可能已有人在做 @TastyHeadphones 于 47 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 6 天内回复
-
Admin AI settings silently reset the assistant prompt, which cannot be edited in the UI可能已有人在做 @Andy-Sverdlov-LucaNet 于 64 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 6 天内回复
-
难度 1/5 1-3 小时 新手友好度 75/100
维护者通常 6 天内回复
-
Server-rendered <time datetime> and JSON-LD dates ignore the site time zone (server-local wall clock labeled as UTC)可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 3/5 1-2 天 新手友好度 78/100
维护者通常 6 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 42/100
维护者通常 6 天内回复
相似的 Issue
-
team:library-maintainers
难度 2/5 1-3 小时 新手友好度 82/100
padok-team/burrito#1208 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
bazel-contrib/rules_go#4784 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 62/100
POSIdev-community/aictl#40 ·
-
难度 1/5 1 小时以内 新手友好度 62/100
prime-radiant-inc/evener#6306 ·
维护者通常 1 天内回复