summaryrefslogtreecommitdiff
path: root/releasenotes
diff options
context:
space:
mode:
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>2018-10-25 15:48:25 +0300
committerJuan Antonio Osorio Robles <jaosorior@redhat.com>2018-11-02 14:14:21 +0200
commitf79650325f459e12bbac8f6967dcfabece1de7a4 (patch)
treed4b87d746fa220fee3bdc42ec818c7f6f36242de /releasenotes
parentd746dfb5f42fa18f3ad9c37f17144f20c05d1c73 (diff)
downloadoslo-policy-f79650325f459e12bbac8f6967dcfabece1de7a4.tar.gz
Add ability to pass in target data for the oslopolicy-checker1.41.0
This allows us to test the policy for other services which might have different or unusual target data formats (such as Barbican). It would be possible to pass it as a nested dictionary, e.g.: { "target": { "secret": { "project_id": "my project id" } } } or as a key pair (as oslo.policy would expect): { "target.secret.project_id": "my project id" } Both will work (note that this logic was taken from barbican). This fixes around the limitation that the target is hardcoded to be "project_id", and thus allows to test more scenarios (such as the project ID not matching). Change-Id: Ia9f7462072a8cb142251c8bb5ef19d9a25a98119
Diffstat (limited to 'releasenotes')
-rw-r--r--releasenotes/notes/Pass-target-dict-to-oslopolicy-checker-87185d40aec413ee.yaml6
1 files changed, 6 insertions, 0 deletions
diff --git a/releasenotes/notes/Pass-target-dict-to-oslopolicy-checker-87185d40aec413ee.yaml b/releasenotes/notes/Pass-target-dict-to-oslopolicy-checker-87185d40aec413ee.yaml
new file mode 100644
index 0000000..a844f3f
--- /dev/null
+++ b/releasenotes/notes/Pass-target-dict-to-oslopolicy-checker-87185d40aec413ee.yaml
@@ -0,0 +1,6 @@
+---
+features:
+ - |
+ oslopolicy-checker was added the ability to accept a file containing a hash
+ that represents the target. This makes it possible to check policies that
+ have non-conventional targets such as barbican.