keystone/keystone/common
Kent Wang 59b09b50ff Add Trusts unique constraint to remove duplicates
For now, effectively there could be multiple trusts with the same
project, trustor, trustee, expiry date, impersonation. The same
combination can have multiple trusts assigned with different roles
or not.

Patch fixes this issue by adding unique constraint to the trusts
database model. If two requests create trusts with the same
trustor, trustee, project, expiry, impersonation, then the second
request would bring up an exception saying there's a conflict.

This can help to improve specific trusts identification and
improve user experience.

Change-Id: I1a681b13cfbef40bf6c21271fb80966517fb1ec5
Closes-Bug: #1475091
2015-11-19 16:15:05 +00:00
..
cache Merge "Add caching to get_catalog" 2015-11-05 22:39:21 +00:00
environment Merge "Enable try_except_pass Bandit test" 2015-11-06 10:52:00 +00:00
kvs Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
ldap Remove hardcoded LDAP group schema from emulated enabled mix-in 2015-11-13 00:02:31 -05:00
sql Add Trusts unique constraint to remove duplicates 2015-11-19 16:15:05 +00:00
validation Forbid non-stripped endpoint urls 2015-10-16 16:03:29 +03:00
__init__.py establish basic structure 2012-01-18 20:06:27 -08:00
authorization.py Add user_domain_id, project_domain_id to auth context 2015-09-28 09:30:38 -05:00
clean.py move clean.py into keystone/common 2015-07-18 23:32:08 -07:00
config.py Move endpoint filter into keystone core 2015-11-18 15:28:41 +00:00
controller.py Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
dependency.py Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
driver_hints.py Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
extension.py Fix D202: No blank lines after function docstring (PEP257) 2015-10-28 07:25:04 +00:00
json_home.py Fix D202: No blank lines after function docstring (PEP257) 2015-10-28 07:25:04 +00:00
manager.py Fix D202: No blank lines after function docstring (PEP257) 2015-10-28 07:25:04 +00:00
models.py Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
openssl.py Keystone Spelling Errors in docstrings and comments 2015-10-29 09:46:14 -05:00
router.py JSON Home data is required 2014-08-28 20:56:28 -05:00
tokenless_auth.py Move federation extension into keystone core 2015-11-18 15:11:30 +00:00
utils.py Fix D204: blank line required after class docstring (PEP257) 2015-10-28 07:25:24 +00:00
wsgi.py Fix the issues found with local conf 2015-10-30 11:17:31 +08:00