apache / apache/answer

Feature Request: Access Control for Viewing Articles

Open
#1,264 2 comments 4 reactions 0 assignees View on GitHub
new-feature
Dominant language
Go
Stars
15.7k
Forks
1.4k
Avg merge
3d 8h
Merged PRs (30d)
7

Description

## 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.

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are identified in the issue, so begin by locating article browsing, user-group, and permission-management entry points in the repository. Done would require an agreed access-control design, article-to-group permissions, enforcement for unauthorized viewers, and a defined denied or redirected response.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
authorization, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.