oslo.policy/oslo_policy
Colleen Murphy 99daead510 Modernize policy checker
Without this patch, the policy checker issues a 'failed' result when
checking a system-scoped sample token against a policy string like
"role:admin and system_scope:all", because the policy checker does not
understand the 'system_scope' attribute that is now in oslo.context[1]
and wasn't parsing the "system" scope object from the sample token.
Similarly, it fails on a string like "user_id:%(user_id)s" because it
never looked up the user_id from the sample token. This change updates
the policy checker to understand token contexts and policies like these
so that more of the policy defaults in keystone, and soon other
projects, will pass. This also adds a new system-scoped sample token to
check against.

[1] https://review.opendev.org/530509

Change-Id: I02fbbc99d28aa5c787133f530f6e968341107bf7
2019-10-10 08:38:14 -07:00
..
locale/en_GB/LC_MESSAGES Imported Translations from Zanata 2018-08-09 07:19:45 +00:00
tests Modernize policy checker 2019-10-10 08:38:14 -07:00
__init__.py exported from oslo-incubator by graduate.sh 2014-12-09 14:40:01 -03:00
_cache_handler.py Add missing parameter description in module _cache_handler 2016-11-02 02:39:38 +00:00
_checks.py Handle deprecation of inspect.getargspec 2017-11-21 12:55:11 -06:00
_external.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
_i18n.py Update URLs in documents according to document migration 2017-07-12 23:01:31 +08:00
_parser.py http/https check rules as stevedore extensions 2017-10-05 08:40:47 -04:00
fixture.py Update hacking version 2019-02-13 14:33:45 +08:00
generator.py Only alias when policy names change 2019-07-25 19:17:33 +00:00
opts.py Clarify policy_file configuration option help text 2019-04-03 13:10:26 +00:00
policy.py Add attribute to suppress deprecation warnings 2019-08-05 12:35:21 -07:00
shell.py Modernize policy checker 2019-10-10 08:38:14 -07:00
sphinxext.py sphinxext: Start parsing 'DocumentedRuleDefault.description' as rST 2018-08-22 11:17:06 +01:00
sphinxpolicygen.py Update sphinx extension logging 2018-10-16 14:35:57 -05:00
version.py pbr.version.VersionInfo needs package name (oslo.xyz and not oslo_xyz) 2017-02-06 12:49:22 -05:00