Skip to content

Task - RBAC AuthZ - Implement new permissions for files #193

Closed
openedx/openedx-platform
#38194

Description

@rodmgwgu

Implement new permissions for files.

Should live behind the feature flag.

Relevant permissions:
courses.view_files
courses.create_files
courses.delete_files
courses.edit_files

Changes needed:

Endpoints:
Note: Assets have their own namespace, example: 1. "/asset-v1:OpenedX+DemoX+DemoCourse+type@asset+block@Open_edX_Demo_Course___Textbooks.pdf"

GET /assets/(courseid)/: List Files
GET /(assetid): Download a file -> Check if this is meant to be public so it doesn't apply, or if it needs to be handled by course authoring permissions
GET /assets/(courseid)/(assetid)/usage: Get file info
PUT /assets/(courseid)/(assetid)/, payload: {"locked":true}: Lock file (courses.edit_files)
DELETE /assets/(courseid)/(assetid)/: Delete file
(Check which endpoint is used for uploading files)

edx-platform: implement permission checks on endpoint handler behind flag

Reference implementation: https://github.com/openedx/openedx-platform/pull/38009/changes

Activity

  1. added
    verawood
    on Jan 21, 2026
  2. moved this to In Grooming in RBAC AuthZ Boardon Jan 21, 2026
  3. moved this from In Grooming to Ready for Development in RBAC AuthZ Boardon Mar 9, 2026
  4. self-assigned this
    on Mar 18, 2026
  5. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Mar 18, 2026
  6. rodmgwgu commented on Mar 20, 2026

    @rodmgwgu
    ContributorAuthor

    About the "GET /(assetid): Download a file" endpoint, it has it's own auth logic not related to course authoring (Students and special cases), so it's out of scope for this effort.

    See: https://github.com/WGU-Open-edX/openedx-platform/blob/6626d649787633f0b27a7f714bda3d348210a935/openedx/core/djangoapps/contentserver/views.py#L294

  7. moved this from In Progress to Ready for review in RBAC AuthZ Boardon Mar 20, 2026
  8. moved this from Ready for review to Done in RBAC AuthZ Boardon Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

verawood

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions