Skip to content

Commit

Permalink
add threshold (#39)
Browse files Browse the repository at this point in the history
* add threshold

* bump  version  for 0.3.4 release

* switch to int
  • Loading branch information
nhakmiller authored Aug 13, 2020
1 parent e086836 commit bcf67f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion panther_analysis_tool/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def setup_parser() -> argparse.ArgumentParser:
prog='panther_analysis_tool')
parser.add_argument('--version',
action='version',
version='panther_analysis_tool 0.3.3')
version='panther_analysis_tool 0.3.4')
subparsers = parser.add_subparsers()

test_parser = subparsers.add_parser(
Expand Down
2 changes: 2 additions & 0 deletions panther_analysis_tool/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@
str,
Optional('Runbook'):
str,
Optional('Threshold'):
int,
Optional('Suppressions'): [str],
Optional('Tags'): [str],
Optional('Reports'): {
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
setup(
name='panther_analysis_tool',
packages=['panther_analysis_tool'],
version='0.3.3',
version='0.3.4',
license='apache-2.0',
description=
'Panther command line interface for writing, testing, and packaging policies/rules.',
author='Panther Labs Inc',
author_email='pypi@runpanther.io',
url='https://github.com/panther-labs/panther_analysis_tool',
download_url = 'https://github.com/panther-labs/panther_analysis_tool/archive/v0.3.2.tar.gz',
download_url = 'https://github.com/panther-labs/panther_analysis_tool/archive/v0.3.4.tar.gz',
keywords=['Security', 'CLI'],
scripts=['bin/panther_analysis_tool'],
install_requires=[
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/valid_analysis/rules/example_rule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Filename: example_rule.py
DisplayName: MFA Rule
Description: MFA is a security best practice that adds an extra layer of protection for your AWS account logins.
Severity: High
Threshold: 5
RuleID: AWS.CloudTrail.MFAEnabled
Enabled: true
LogTypes:
Expand Down

0 comments on commit bcf67f2

Please sign in to comment.