Skip to content

Add read_packages permission for read-only package access#959

Open
rajeswari1301 wants to merge 1 commit into
jhpyle:masterfrom
SuffolkLITLab:add-read-packages-perm
Open

Add read_packages permission for read-only package access#959
rajeswari1301 wants to merge 1 commit into
jhpyle:masterfrom
SuffolkLITLab:add-read-packages-perm

Conversation

@rajeswari1301
Copy link
Copy Markdown

Splits the /api/package permission check into two separate checks: GET requests only require read_packages, while POST and DELETE still require manage_packages. Old keys with manage_packages still work for GET - no breaking changes.

Also adds read_packages to PERMISSIONS_LIST so it can be selected when creating an API key. This allows API keys to be limited to read-only package access, with no permission to install or delete packages

* Add read_packages permission for read-only access

* Add permission checks into existing if blocks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant