Files
nova/nova
Ghanshyam Mann 55ae1a5d53 Pass RequestContext to oslo_policy
In nova.policy.authorize() method, it convert the context
object to policy value by context.to_policy_values() and then
pass that into oslo.policy enforcer authorize() method.

This is fine till now and does not cause any issue but when
scope_type is set on policy and context then scope info is
not passed correctly.

In case of system scope, oslo.policy check for a key called 'system'
in creds. The oslo.context library uses `system_scope` instead[1],
and the compatibility between both oslo.policy and oslo.context
are handled when complete context is passed into oslo_policy[2].

If nova convert the context object to policy values then system scope
info is not passed into the oslo_policy. Better way is to pass the complete
context object to oslo_policy and let oslo_policy fetch the system scope
info in correct way.

Update the lower constraints for oslo.policy and oslo.context to have
system scope checks feature.

Partial implement blueprint policy-defaults-refresh

[1] f65408df5c/oslo_context/context.py (L321)
[2] b9fd10e261/oslo_policy/policy.py (L994)

Change-Id: I847fc44e62065e3d26e5595e178b83912ab5d19b
2019-10-29 15:21:50 +00:00
..
2019-03-22 06:26:27 +00:00
2019-10-29 15:21:50 +00:00
2019-06-19 10:04:45 +01:00
2019-06-12 16:09:46 +01:00
2019-04-12 16:23:49 +01:00
2019-10-29 15:21:50 +00:00
2019-05-29 17:14:13 +01:00
2019-07-05 15:04:47 +00:00
2019-09-27 13:18:09 +00:00
2019-10-07 16:33:20 +00:00