Remove 'require_admin_context' from sqlalchemy api

Bug #1379684 reported by Qin Zhao
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Undecided
Unassigned

Bug Description

There are still many 'require_admin_context' defined for db operation, which prevent rbac definition in policy.json. For example, a user defined non-admin role to manage quota will not be able to modify quota size. Plan to remove 'require_admin_context' from sqlalchemy module, so that we only use policy to do those permission checking.

Tags: db policy
Revision history for this message
Christopher Yeoh (cyeoh-0) wrote :

This would be great - need to do a very good audit of all paths where the method is called though to ensure that on upgrade existing systems are not made any less secure (eg might need some updating of policies)

Changed in nova:
status: New → Confirmed
tags: added: db policy
Revision history for this message
Alex Xu (xuhj) wrote :

There is bp I proposed for this. https://review.openstack.org/127863

Revision history for this message
jichenjc (jichenjc) wrote :

I remember we did some clean in Icehouse

maybe we need wait for Alex's bp to proceed

Revision history for this message
Joe Gordon (jogo) wrote :
Revision history for this message
jichenjc (jichenjc) wrote :
Changed in nova:
status: Confirmed → Fix Committed
Thierry Carrez (ttx)
Changed in nova:
milestone: none → liberty-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in nova:
milestone: liberty-3 → 12.0.0
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.