summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorMichael Johnson <johnsomor@gmail.com>2021-07-15 21:42:54 +0000
committerMichael Johnson <johnsomor@gmail.com>2021-08-12 20:28:52 +0000
commit9774108cf91408e9cb825b317f48a3a3f856e161 (patch)
tree20ef9fe37f9df1e066996d08481445bbdcbb3b91 /releasenotes
parent0bc8a2e70faaf8600a44c6e7e366d2296adc128b (diff)
downloadoslo-policy-9774108cf91408e9cb825b317f48a3a3f856e161.tar.gz
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
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/Fix-map-system-scope-for-creds-dict-e4cbec2f7495f22e.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/Fix-map-system-scope-for-creds-dict-e4cbec2f7495f22e.yaml b/releasenotes/notes/Fix-map-system-scope-for-creds-dict-e4cbec2f7495f22e.yaml
new file mode 100644
index 0000000..0bb53cc
--- /dev/null
+++ b/releasenotes/notes/Fix-map-system-scope-for-creds-dict-e4cbec2f7495f22e.yaml
@@ -0,0 +1,5 @@
+---
+fixes:
+ - |
+ Fixes the mapping of 'system_scope' to 'system' when enforce is called
+ with a 'creds' dictionary instead of a RequestContext.