yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #34521
[Bug 1467692] Re: keystone-manage mapping_engine does not support regex
Hi Fernando,
I checked some example rules with regex and it worked. The trick was to
use boolean values as defined here
https://docs.python.org/2/library/json.html#encoders-and-decoders, so
true, not "True" nor True (lowercase true).
I will let myself mark this bug as invalid.
I can agree that our documentation could be more detailed on how to use
regex rules, including some examples.
** Changed in: keystone
Status: In Progress => Invalid
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1467692
Title:
keystone-manage mapping_engine does not support regex
Status in OpenStack Identity (Keystone):
Invalid
Bug description:
When running keystone-manage mapping_engine --rules rules.json --input
input.txt, if rules.json contains any mapping containing regex, it
will fail.
This is because
https://github.com/openstack/keystone/blob/master/keystone/cli.py#L598
uses jsonutils.load(rules.json) and regex contains a boolean instead
of a string, which will invalidate the json file. If the regex is
provided as a string it will fail because it does not match the schema
in
https://github.com/openstack/keystone/blob/master/keystone/contrib/federation/utils.py#L88-L90.
To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1467692/+subscriptions
References