designate/designate/common
Pavlo Shchelokovskyy 56651f1fdd Verify project-id when setting quota
this patch adds several things to attempt (on best effort basis)
to use incoming user token in the quota set request to ask Keystone
if the project id the quota being set on is actualy valid:

- added new [keystone] config section to hold session- and
  adapter-realated options for accessing Keystone enndpoint
- added a token- and service catalog-based user auth plugin to the request
  context
- use the above to construct a keystoneauth adapter for Identity service
  and attempt to GET on projects/{project_id}

  - only if the Keystone v3 catalog endpoint is not found, or
    the request returns 404 NotFound, we raise an error and return it
    as 400 BadRequest to client when attempting to change quotas for
    project.

This behavior is enabled by setting a new
[service:api]quotas-verify-project-id config option to True (default is
False for backward compatibility).

Change-Id: Ib14ee5b5628509b6a93be8b7bd10e734ab19ffee
Depends-On: https://review.openstack.org/580142
Closes-Bug: #1760822
2018-07-05 08:46:37 +00:00
..
policies Fix policy name 2018-03-15 12:14:36 +00:00
__init__.py Moved CORS middleware configuration into set_defaults 2016-03-04 06:34:15 -08:00
config.py cors: update default configuration in config 2016-11-03 11:00:21 +08:00
keystone.py Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
memorycache.py Remove Oslo Incubator Code 2016-10-27 16:52:17 +00:00