[release-announce] oslo.policy 1.38.0 (rocky)
no-reply at openstack.org
no-reply at openstack.org
Thu Jul 12 23:36:19 UTC 2018
We eagerly announce the release of:
oslo.policy 1.38.0: Oslo Policy library
This release is part of the rocky release series.
The source is available from:
https://git.openstack.org/cgit/openstack/oslo.policy
Download the package from:
https://pypi.org/project/oslo.policy
Please report issues through launchpad:
https://bugs.launchpad.net/oslo.policy
For more details, please see below.
1.38.0
^^^^^^
New Features
************
* [bug 1779172 (https://bugs.launchpad.net/keystone/+bug/1779172)]
The "enforce()" method now supports the ability to parse
"oslo.context" objects if passed into "enforce()" as "creds". This
provides more consistent policy enforcement for service developers
by ensuring the attributes provided in policy enforcement are
standardized. In this case they are being standardized through the
"oslo_context.context.RequestContext.to_policy_values()" method.
Bug Fixes
*********
* [bug 1779172 (https://bugs.launchpad.net/keystone/+bug/1779172)]
The "enforce()" method now supports the ability to parse
"oslo.context" objects if passed into "enforce()" as "creds". This
provides more consistent policy enforcement for service developers
by ensuring the attributes provided in policy enforcement are
standardized. In this case they are being standardized through the
"oslo_context.context.RequestContext.to_policy_values()" method.
* [bug 1741073
(https://bugs.launchpad.net/oslo.policy/+bug/1741073)] Documentation
has been improved to include "oslopolicy-sample- generator" and
"oslopolicy-list-redundant" usage.
Changes in oslo.policy 1.37.0..1.38.0
-------------------------------------
775641a Teach Enforcer.enforce to deal with context objects
13a4e78 Pass dictionary as creds in policy tests
8f74e2b Fix requirements and convert to stestr
21a8c8c Add blueprints and releasenotes link to README
161a8cb fix tox python3 overrides
3fe95b2 Add CLI usage documentation
e74a3b7 Clarify CLI documentation
7955900 Add examples and clarification around scope_types
5f5f4e0 trivial: Fix file permissions
Diffstat (except docs and test files)
-------------------------------------
.gitignore | 1 +
.stestr.conf | 3 +
.testr.conf | 7 --
README.rst | 3 +-
lower-constraints.txt | 2 +
oslo_policy/policy.py | 50 +++++++++++-
.../notes/bug-1779172-c1323c0f647bc44c.yaml | 19 +++++
.../notes/expand-cli-docs-02c2f13adbe251c0.yaml | 6 ++
requirements.txt | 1 +
test-requirements.txt | 4 +-
tox.ini | 9 +-
15 files changed, 304 insertions(+), 17 deletions(-)
Requirements updates
--------------------
diff --git a/requirements.txt b/requirements.txt
index 0de7135..86517fd 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -6,0 +7 @@ oslo.config>=5.2.0 # Apache-2.0
+oslo.context>=2.21.0 # Apache-2.0
diff --git a/test-requirements.txt b/test-requirements.txt
index 704e603..aea29ba 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -6,0 +7,2 @@ requests-mock>=1.1.0 # Apache-2.0
+stestr>=2.0.0 # Apache-2.0
+oslo.context>=2.21.0 # Apache-2.0
@@ -13 +15 @@ openstackdocstheme>=1.18.1 # Apache-2.0
-sphinx!=1.6.6,!=1.6.7,>=1.6.2 # BSD
+sphinx!=1.6.6,!=1.6.7,>=1.6.5 # BSD
More information about the Release-announce
mailing list