Skip to content

Namespace or app names in our permissions #136

@MaferMazu

Description

@MaferMazu

Description

Currently our permissions in openedx-authz looks like "view_library" but in the OEP-66 the suggestion is to use permissions like 'my_app.change_modelname'. This is inspired in django permissions and bridgekeeper, but I think it is a valuable approach to know which app is affected by a certain permission.

Proposed solution

Add the app_name as a prefix of the external_key in the action data.

Implications

  • Change the policy, and the constants, and upgrade openedx-authz in edx-platform.

Deadline:

I don't thinks this necesarily needs to enter in the MVP, but defenetly in the future, to be able to identify which app is affected by a specific permission, and avoid permissions with same/similar names that can generate confusion.

References:

Sub-issues

Metadata

Metadata

Assignees

Labels

MVPrelease blockerBlocks the upcoming release (fix needed)

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions