Conversation
Guts
left a comment
There was a problem hiding this comment.
I like the idea of updating the plugin approval process, especially the “fast-track” option.
I think this was discussed a while back on a QGIS mailing list, but I can't find any record of it (I can't wait for the switch to Discourse...). Do you have a record of your discussions with Tim regarding the various details?
Generally speaking, is it possible to tell if a user has this self-approval capability? I mean, with something visual on its profile page? I get a look on my own (https://plugins.qgis.org/plugins/user/geojulien/) and I can't see nothing but I'm not sure I'm looking at the right place (since the page title is "All plugins - QGIS Python Plugins Repository").
I also think this is an opportunity to document this mechanism in more detail on https://plugins.qgis.org/docs/approval.
|
For me I think it is better even if I have approval rights for the process to be split into two steps:
I want to avoid the situation where plugins are uploaded and published in one step. Or I should have a 'Publish immediately' checkbox on the upload form. |
|
In that case, it would be consistent to clearly stipulate if a given plugin's version has been approved manually and when (and by who?) or not. |
3ea2c37 to
644d219
Compare
Sorry, it was just a verbal discussion during a meeting. The main reason is that this could lead to security vulnerabilities and issues.
I don't think we have a profile page (yet). It could be a future enhancement.
Sure, thanks for the suggestion. I'll implement that. |
Description
Closes #291
Cc @timlinux @3nids @Gustry @Guts
Currently, the auto-approval logic has issues because it approves both versions created by trusted users and new versions of plugins that are already approved. This is critical because, as discussed with @timlinux, we should only trust users, not plugins.
This PR will address this issue by only applying auto-approval for plugins from trusted users. For token-based uploads, it will check the permissions of the token creator (because
request.userwill be an AnonymousUser).This will likely modify (fix) the workflow and add more tasks to the plugins approver (Cc @NyakudyaA) because all new versions from untrusted users will require approval.
Author's checklist
Fixes #11111at the bottom of the commit message.Tip
If you forgot to do this, don't be shy and write the same statement into this text field with the pull request description.
AI tool usage
Reviewer's checklist