designate/devstack
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
..
designate_plugins Start replacing designate legacy jobs 2018-05-16 14:18:58 +00:00
gate Remove v1 API 2018-01-11 14:13:43 +00:00
upgrade Remove debug line from grenade plugin 2017-12-15 15:46:29 +00:00
README.rst Add warning to devstack/README.rst 2016-03-07 17:02:15 +00:00
exercise.sh Migrate existing Devstack integration into a Devstack plugin 2015-11-27 16:38:12 +01:00
networking_test.py Fix some reST field lists in docstrings 2017-04-26 18:12:51 +00:00
networking_test_monitor_tc.sh Integration/stress test using a simulated network 2016-05-17 17:52:30 +01:00
plugin.sh Verify project-id when setting quota 2018-07-05 08:46:37 +00:00
settings Remove use of unsupported TEMPEST_SERVICES variable 2018-01-23 16:46:20 +03:00
statsd_mock_server.py Using sys.exit(main()) instead of main() 2016-09-26 03:23:44 +00:00

README.rst

Enabling in Devstack

WARNING: the stack.sh script must be run in a disposable VM that is not being created automatically, see the README.md file in the "devstack" repository. See contrib/vagrant to create a vagrant VM.

  1. Download DevStack:

    git clone https://git.openstack.org/openstack-dev/devstack.git
    cd devstack
  2. Add this repo as an external repository:

    > cat local.conf
    [[local|localrc]]
    enable_plugin designate https://git.openstack.org/openstack/designate
  3. run stack.sh