keystone/releasenotes/notes/bug-1806762-c3bfc71cb9bb94f3.yaml
Lance Bragstad bb141b1fb4 DRY: Remove redundant policies from policy.v3cloudsample.json
The policies contained in policy.v3cloudsample.json pre-dated any of
the work to move policy defaults into code. Since deploying a policy
file is now optional, we can remove the redundant policies from this
file and make it more maintainable by not repeating ourselves and
violating the DRY principal.

The only policies left are ones that are testing workarounds for bug
968696. Meanwhile, we're pursuing fixes for scope types and default
roles:

  http://tinyurl.com/y5kj6fn9

These fixes are specific to certain resources to make reviews more
understandable for reviewers. As fixes for those bugs land, we will
be removing the remaining checks in this file, since the behavior will
be captured in new default check strings or in code.

Eventually, we will delete this file entirely since we will have
defaults in code that work for `admins`, `members`, and `readers` on
projects, domains, and the deployment system.

Change-Id: Ibbabe8fdc7989f15aa0edda2bf7b550a0dc16f83
Partial-Bug: 1806762
2019-04-02 19:09:53 +00:00

27 lines
1.4 KiB
YAML

---
upgrade:
- |
[`bug 1806762 <https://bugs.launchpad.net/keystone/+bug/1806762>`_]
The domain policies defined in ``policy.v3cloudsample.json``
have been removed. These policies are now obsolete after incorporating
system-scope into the domain API and implementing default roles.
Additionally, the ``identity:get_domain`` policy in
``policy.v3cloudsample.json`` has been relaxed slightly to allow all
users with role assignments on a domain to retrieve that domain,
as opposed to only allowing users with the ``admin`` role to access
that policy.
All policies in ``policy.v3cloudsample.json`` that are redundant with the
defaults in code have been removed. This improves maintainability and
leaves the ``policy.v3cloudsample.json`` policy file with only
overrides. These overrides will eventually be moved into code or new
defaults in keystone directly. If you're using the policies removed
from ``policy.v3cloudsample.json`` please check to see if you can migrate
to the new defaults or continue maintaining the policy as an override.
fixes:
- |
[`bug 1806762 <https://bugs.launchpad.net/keystone/+bug/1806762>`_]
The domain policies in ``policy.v3cloudsample.json`` policy file
have been removed in favor of better defaults in code. These policies
weren't tested exhaustively and were misleading to users and operators.