nova/nova/api/openstack
Ghanshyam Mann 66df3a8fef Pass the actual target in os-instance-usage-audit-log policy
Currently if target is not passed in context.can(),
it use defauls target which is context.user_id, context.project_id.
These defaults target are not useful as it pass the
context's user_id and project_id only which means we tell
oslo policy to verify the context data with context data.

This commit pass the actual target for os-instance-usage-audit-log
policies which is empty dict because policy rule is system scoped rather
than project, so the token scope check deals with the required
target checking.

Partial implement blueprint policy-defaults-refresh

Change-Id: I5584b9bb192dc32c60ba5a83d3bd2de293bbbd27
2020-03-30 15:46:02 +01:00
..
compute Pass the actual target in os-instance-usage-audit-log policy 2020-03-30 15:46:02 +01:00
__init__.py conf: Remove deprecated 'project_id_regex' opt 2019-09-27 18:59:02 +09:00
api_version_request.py Expose instance action event details out of the API 2020-03-27 08:20:12 +00:00
auth.py Noauth should also use request_id from compute_req_id.py 2018-04-04 14:21:01 -04:00
common.py Enable unshelve with qos ports 2020-03-18 17:38:55 +01:00
identity.py Adapter raise_exc=False by default 2018-06-22 09:40:33 -05:00
requestlog.py Refactor WSGI apps and utils to limit imports 2018-03-06 22:05:12 +00:00
urlmap.py hacking: Resolve W503 (line break occurred before a binary operator) 2019-06-24 14:24:06 -05:00
versioned_method.py Implement microversion support on api methods 2014-12-05 09:54:41 +08:00
wsgi.py Ensure controllers all call super 2019-06-15 16:40:00 +01:00
wsgi_app.py Eventlet monkey patching should be as early as possible 2019-03-22 09:27:16 +00:00