Need policy validator tool
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.policy |
Fix Released
|
Wishlist
|
Ben Nemec |
Bug Description
Someone asked about this when I was demo'ing the Oslo CLI tools. We have a config validator for oslo.config[0], but no equivalent tool exists for oslo.policy as far as I'm aware. What I envision the tool doing is similar to the config tool: Look at each entry in a policy file, check with the service to see if a rule of that name actually exists, and if not log an error. This would allow operators to easily catch typos or references to old rules in their policy files. It should _not_ do any testing of the rule (other than maybe a basic syntax sanity check, but I would consider that a future enhancement not part of the initial implementation). That's what oslopolicy-checker is for.
It's possible that this could be combined with the oslopolicy-
0: https:/
Fix proposed to branch: master /review. opendev. org/702757
Review: https:/