designate/designate
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
..
agent Remove translation of log messages 2018-03-14 12:54:05 -07:00
api Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
backend Remove translation of log messages 2018-03-14 12:54:05 -07:00
central Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
cmd Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
common Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
hacking Remove Hacking check for log translation 2018-02-15 15:31:34 +00:00
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2018-06-16 07:26:59 +00:00
manage Merge "Remove translation of log messages" 2018-03-20 20:01:50 +00:00
mdns Remove translation of log messages 2018-03-14 12:54:05 -07:00
metrics_client Remove translation of log messages 2018-03-14 12:54:05 -07:00
network_api Remove translation of log messages 2018-03-14 12:54:05 -07:00
notification_handler Remove translation of log messages 2018-03-14 12:54:05 -07:00
objects Change copyright information for field.py 2018-05-14 09:05:59 +00:00
pool_manager Remove translation of log messages 2018-03-14 12:54:05 -07:00
producer Remove translation of log messages 2018-03-14 12:54:05 -07:00
quota Remove translation of log messages 2018-03-14 12:54:05 -07:00
resources Remove v1 API 2018-01-11 14:13:43 +00:00
scheduler Merge "Remove translation of log messages" 2018-03-20 20:01:50 +00:00
schema Remove v1 API 2018-01-11 14:13:43 +00:00
sink Use listener pools in designate-sink 2018-06-26 20:37:36 +03:00
sqlalchemy Remove translation of log messages 2018-03-14 12:54:05 -07:00
storage Add unique constraint to service_statuses 2018-05-20 12:41:21 -07:00
tests Merge "Switch to oslo_messaging.ConfFixture.transport_url" 2018-06-14 17:29:45 +00:00
worker Replace deprecated LOG.warn with LOG.warning 2018-04-03 14:28:01 -07:00
__init__.py fix a typo in code 2018-06-05 17:39:22 +08:00
context.py Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
coordination.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
debug.py Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
dnsutils.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
exceptions.py Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
hookpoints.py Trivial fix pep8 and typos 2017-05-06 03:30:23 +07:00
i18n.py Update email addresses hp.com to hpe.com 2016-01-11 14:29:33 +00:00
loggingutils.py Add Decorator to log RPCAPI Calls 2016-04-21 14:11:35 +01:00
metrics.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
notifications.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
opts.py Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
plugin.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
policy.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
rpc.py Use listener pools in designate-sink 2018-06-26 20:37:36 +03:00
service.py Init config before service start 2018-06-22 11:40:55 +00:00
service_status.py Auto-generate designate.conf.sample via genconfig testenv 2017-07-01 21:32:16 +07:00
utils.py Remove translation of log messages 2018-03-14 12:54:05 -07:00
version.py Switch to oslo.reports 2015-11-05 10:55:29 +01:00