keystone/keystone/tests
Colleen Murphy 17c337dbdb Fix credential list for project members
Without this patch, project members and readers can list any credentials
with the /v3/credentials API when enforce_scope is false. enforce_scope
is only applicable to project admins due to the admin-ness problem[1],
and this policy is not meant to allow project admins any access to users'
credentials (only system admins should be able to access them). However,
when enforce_scope is false, we need to preserve the old behavior of
project admins being able to list all credentials. This change mitigates
the problem by running the identity:get_credential policy check to
filter out credentials the user does not have access to. This will
impact performance.

Closes-bug: #1855080

[1] https://bugs.launchpad.net/keystone/+bug/968696

Change-Id: I5dd85a6b8368373a27aef2942a64499d020662ef
2019-12-04 16:42:17 -08:00
..
common Add missing translation import to common.auth.py 2018-11-28 14:23:41 +00:00
functional Update keystone functional tests 2018-04-18 21:04:59 +00:00
hacking Use pycodestyle in place of pep8 2018-11-20 17:16:01 +00:00
protection Fix credential list for project members 2019-12-04 16:42:17 -08:00
unit Merge "Revert "Resource backend is SQL only now"" 2019-11-14 01:11:04 +00:00
__init__.py Move existing tests to unit 2015-02-13 15:54:29 -06:00