@@ -44,26 +44,27 @@ Policy modifications
4444The accounting user needs access to Keystone so as to extract the users
4545information. In this case, we can can grant the user just the rights for
4646listing the users adding the appropriate rules in your policy configuration.
47+ Depending on your configuration, you need to modify the JSON policy file
48+ (``/etc/keystone/policy.json ``) or the YAML policy file (``/etc/keystone/policy-yaml ``).
4749The modifications in the policy depend on the Keystone version, please ensure
48- that you are applying the correct changes.
49-
50- Keystone Versions from Ussuri onwards (version >= 17.0.0)
51- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
52-
53- You need to modify the ``identity:list_users `` policy in either your
54- ``/etc/keystone/policy.json `` or ``/etc/keystone/policy-yaml ``, contaning the
55- following policy rules::
56-
57- "identity:list_users": "(role:admin) or (role:reader and domain_id:%(target.domain_id)s) or (role:accounting)"
58-
59- Keystone Versions from until Train (version < 17.0.0)
60- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
61-
62- You need to modify the ``identity:list_users `` policy in either your
63- ``/etc/keystone/policy.json `` or ``/etc/keystone/policy-yaml ``, contaning the
64- following policy rules::
65-
66- "identity:list_users": "rule:admin_required or role:accounting"
50+ that you are applying the correct changes as listed in the following table.
51+
52+ +-------------+------------------------------------------------------------------------------+
53+ | OpenStack | Policy contents |
54+ | Version | |
55+ +=============+==========+===================================================================+
56+ | From Stein | Original | ``“identity:get_user”: “(role:reader and system_scope:all) or |
57+ | (>= 15.0.0) | | (role:reader and token.domain.id:%(target.user.domain_id)s) or |
58+ | | | user_id:%(target.user.id)s”`` |
59+ | +----------+-------------------------------------------------------------------+
60+ | | Modified | ``“identity:get_user”: “(role:reader and system_scope:all) or |
61+ | | | (role:reader and token.domain.id:%(target.user.domain_id)s) or |
62+ | | | user_id:%(target.user.id)s or role:accounting”`` |
63+ +-------------+----------+-------------------------------------------------------------------+
64+ | Up to Rocky | Original | ``“identity:get_user”: “rule:admin_or_owner” `` |
65+ | (<= 14.0.0) +----------+-------------------------------------------------------------------+
66+ | | Modified | ``“identity:get_user”: “rule:admin_or_owner or role:accounting” `` |
67+ +-------------+----------+-------------------------------------------------------------------+
6768
6869Publishing benchmark information for OpenStack flavors (optional)
6970-----------------------------------------------------------------
0 commit comments