duo-labs/parliament

Feature: Command-line filters

Open

#59 opened on Jan 16, 2020

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Python (954 stars) (88 forks)batch import
enhancementgood first issuelow_priority

Description

Mentioned in #57, @kmcquade raised the idea of having filtering at the command-line such as:

parliament --exclude informational,community,whatevergroup

Right now, you can specify --minimum_severity INFO

Each rule I have been giving a grouping, such as group: INVALID. Currently, these aren't used for anything. I could rename this to tag and allow multiple tags. I could also have the exclude be able to work off of the key, severity, and these tags. I think it make sense to keep this as a basic list and not try to do any logic (ex. don't worry about "If informational AND community". If someone wants more advanced logic they can just output as json and run it through jq or something else for more logic.

Contributor guide