Glance's Policy Enforcer accesses oslo_policy options

Bug #1433313 reported by Ian Cordasco
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Low
Ian Cordasco

Bug Description

In glance/api/policy.py the subclass of oslo_policy.policy.Enforcer overrides __init__ to check to see if the policy file exists which is specified in [oslo_policy]/policy_file.

This seems superfluous and like something that oslo_policy should already handle. There doesn't seem to be a good reason for glance to be doing this instead of oslo_policy handling it.

Revision history for this message
Zhi Yan Liu (lzy-dev) wrote :

IIUC on the case this report mentioned, the reason of why I do it is to provide a glance special default rule set into oslo_policy Enforcer (DEFAULT_RULES), and set use_conf flag of oslo_policy Enforcer to be proper.

Revision history for this message
Cyril Roelandt (cyril-roelandt) wrote :

This part of the code disappeared with 5c17e4c7ef533b57ba15ead931b0452e23f46b4b, so I'll mark this as fixed.

Changed in glance:
status: New → Fix Released
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.