Red Hat Bugzilla – Bug 1014899
Command line support for filtering policy rules by user(s), group(s), self
Last modified: 2018-02-05 19:41:31 EST
Description of problem:
BZ#1011378 adds the support for retrieving access policy rules for a system. It will also be useful to be able to retrieve the policies for particular user(s), group(s) and the user himself/herself.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
List my access rules for system test1.example.com:
$ bkr policy-list test1.example.com --mine
List a user's access rules for system test1.example.com:
$ bkr policy-list test1.example.com --user <username>
List a group's access rules for system test1.example.com:
$ bkr policy-list test1.example.com --group <groupname>
All three should be accessible to any authenticated user?
On gerrit: http://gerrit.beaker-project.org/#/c/2573/1
The updated documentation for this change is available at:
For the --mine filter, it should check if the user is authenticated. Currently this is not the case and results in:
"AttributeError: 'NoneType' object has no attribute 'user_name'"
On gerrit: http://gerrit.beaker-project.org/#/c/2603/1
(In reply to Amit Saha from comment #5)
Have opened a bug for it :
*** Bug 1039478 has been marked as a duplicate of this bug. ***
Release announcement: https://lists.fedorahosted.org/pipermail/beaker-devel/2013-December/000923.html