oslo.policy/releasenotes/notes
Michael Johnson 639b47198b Map system_scope in creds dictionary
An earlier patch[1] added a mapping for context 'system_scope'
to 'system' when enforce was called with a RequestContext
object. However, enforce can also be called with a creds dictionary
that may contain the context 'system_scope' element. When this
occured, 'system_scope' was not mapped to 'system' and the enforce
would fail with an InvalidScope exception.
This patch moves the 'system_scope' mapping from only occuring
with RequestContext objects to also map it when a creds dictonary
is passed to enforce.

[1] https://review.opendev.org/c/openstack/oslo.policy/+/578995

Change-Id: I83a22c3f825bad0c88018118f8630a20a445965e
(cherry picked from commit 9774108cf9)
(cherry picked from commit ff2a39fc61)
2021-10-20 15:37:35 +00:00
..
Fix-map-system-scope-for-creds-dict-e4cbec2f7495f22e.yaml Map system_scope in creds dictionary 2021-10-20 15:37:35 +00:00
Pass-target-dict-to-oslopolicy-checker-87185d40aec413ee.yaml Add ability to pass in target data for the oslopolicy-checker 2018-11-02 14:14:21 +02:00
add-deprecated-metadata-to-DeprecatedRule-79d2e8a3f5d11743.yaml Add documentation parameters for DeprecatedRule 2021-01-21 14:46:06 +00:00
add-policy-convert-json-to-yaml-tool-3c93604aee79f58a.yaml Add oslopolicy-convert-json-to-yaml tool 2020-08-27 16:33:29 +00:00
add-policy-upgrade-command-a65bc4f760e5d8b1.yaml Add policy-upgrade tool 2018-12-11 10:32:47 +08:00
add-scope-types-to-sphinxext-cacd845c4575e965.yaml Update sphinxext to include scope_types in docs 2018-06-01 19:50:53 +00:00
add-sphinxpolicygen-39e2f8fa24930b0c.yaml Add sphinx extension to build sample policy 2016-09-28 10:59:14 +01:00
add_custom_rule_check_plugins-3c15c2c7ca5e.yaml Documentation and release notes for plugins 2017-10-16 11:49:31 +00:00
add_reno-3b4ae0789e9c45b4.yaml Add reno for release notes management 2016-05-20 18:08:13 +03:00
bug-1779172-c1323c0f647bc44c.yaml Teach Enforcer.enforce to deal with context objects 2018-07-09 16:46:57 +00:00
bug-1880959-8f1370a59759d40d.yaml Reload files in policy_dirs on primary file change 2020-06-08 16:38:51 +03:00
bug-1913718-f1b46bbff3231d98.yaml Handle deprecated rule only once 2021-02-01 19:29:06 +00:00
deprecate-policy-file-json-format-e1921f15b5d00287.yaml Deprecate the JSON support for policy_file 2020-08-27 21:42:16 +00:00
drop-python27-support-9aa06224812cc352.yaml [ussuri][goal] Drop python 2.7 support and testing 2020-02-06 07:21:40 +00:00
enforce_new_defaults-6ae17d8b8d166a2c.yaml Fix doc comments for new enforce default flag 2020-04-09 10:31:09 -05:00
enforce_scope_types-1e92f6a34e4173ef.yaml Add a release note for enforce_scope 2018-01-02 17:37:44 +00:00
expand-cli-docs-02c2f13adbe251c0.yaml Add CLI usage documentation 2018-06-01 22:07:34 +00:00
fix-bug-1914095-fa71d81c9639ba94.yaml Work on copy of registered rule instead of original object 2021-02-04 12:23:52 -06:00
fix-rendering-for-deprecated-rules-d465292e4155f483.yaml Remove erroneous newline in sample generation 2018-06-01 21:25:19 +00:00
list-redundant-deprecation-warnings-f84a06133efdaedd.yaml Suppress deprecation warnings in oslopolicy-list-redundant 2019-09-17 21:50:14 +00:00
oslo-policy-descriptive-support-3ee688c5fa48d751.yaml Add release note for DocumentedRuleDefault 2017-03-22 15:02:13 +00:00
policy-check-performance-fbad83c7a4afd7d7.yaml Avoid redundant policy syntax checks 2018-07-18 19:40:15 +00:00
policy-file-validator-906d5cff864a2d51.yaml Add oslopolicy-validator tool 2020-06-26 14:55:26 +00:00