bug supervisors have more power than maintainers and admins

Bug #885692 reported by Curtis Hovey
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Steve Kowalik

Bug Description

I am sure this bug overlaps with several issues already reported. This bug is about a bad pattern in lp.bugs that might be fixable in one branch to address a lot of permission contradictions in Lp Bugs UI/API. Browser and model code frequently do something like
    user.inTeam(bug_supervisor)
which is not a permission check, but a role check. The code should be asking if the user has .edit, .moderate, or .admin on the object or property to determine what to do, such as
    check_permission('launchpad.Edit', bugtask)
which would invoke the proper security check in lp.bugs.security.

The proper check would know that the order of precedence is:
    admins, pillar.owner, pillar.drivers, pillar.bug_supervisors
^ admins can do everything. owners delegate planning and bug responsibilities to drivers and bug supervisors. Drivers work with release planing, which encompasses bugs and specs, Bug supervisors can work bugs.

Related branches

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 885692] Re: bug supervisors have more power than maintainers and admins

Perhaps it would be better to have owners etc just be members of bug
supervisors, this keeps the checks very simple, which is good for
performance, and allows both hands off delegation and inclusive
delegation.

Revision history for this message
Curtis Hovey (sinzui) wrote :

We do not want the owner or driver to also be in the bug supervisor role to edit bugs properly, nor do we want to require user to assign the role to make permissions work.This is essentially the problem now. Users must nest teams to and fill all the roles to get permission, though this also leads to unwanted emails. Fixing this bug is a half step to not requiring maintainers to also be the bug supervisor...then the maintainer can truly delegate a responsibility and not set a /dev/null email address to stop Launchpad from spamming.

Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
Changed in launchpad:
assignee: nobody → Steve Kowalik (stevenk)
tags: added: qa-needstesting
Changed in launchpad:
status: Triaged → In Progress
Steve Kowalik (stevenk)
tags: added: qa-untestable
removed: qa-needstesting
Revision history for this message
Launchpad QA Bot (lpqabot) wrote :
tags: added: qa-needstesting
removed: qa-untestable
Changed in launchpad:
status: In Progress → Fix Committed
Steve Kowalik (stevenk)
tags: added: qa-ok
removed: qa-needstesting
Aaron Bentley (abentley)
Changed in launchpad:
status: Fix Committed → Fix Released
Curtis Hovey (sinzui)
tags: added: hardening
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.