Bader Boland
3c46f405a9
Cleanup SupportedControllers
2020-03-25 16:50:12 -04:00
Bader Boland
a5828a2d3b
Fix tests
2020-03-25 14:23:18 -04:00
Bader Boland
5769acf820
deduplicate results right away
2020-03-25 13:25:26 -04:00
Bader Boland
68fe23018a
Feedback from PR
2020-03-23 09:27:36 -04:00
Bader Boland
fb0d7c5d82
Add additional logging
2020-03-17 16:19:58 -04:00
Bader Boland
8c769e445c
Cut out duplicitive code.
2020-03-17 13:23:58 -04:00
Bader Boland
7fdebfc4db
Fix tests
2020-03-17 09:19:33 -04:00
Bader Boland
bb34be7e02
Dynamically retrieve parents
2020-03-16 16:41:16 -04:00
baderbuddy
fe55216e2a
Merge branch 'master' into bb/openshift
2020-03-16 13:07:20 -04:00
Robert Brennan
d2bb2f126b
test extra controller versions
2020-02-26 19:26:18 +00:00
Bader Boland
31de106ba8
Added check for parent and rollup to parent.
2020-01-31 14:10:53 -05:00
Bader Boland
aaa54cc401
Directly return 0 for divide by 0
2020-01-31 12:57:26 -05:00
Bader Boland
51d639e2ef
Prevent divide by 0
2020-01-31 12:56:53 -05:00
Bader Boland
7f71a352a7
Remove kebab case
2020-01-28 09:34:52 -05:00
Bader Boland
56bba70ef3
Add ability to exclude individual tests
2020-01-24 08:53:34 -05:00
Robert Brennan
5ef97ae896
fix lint errors
2020-01-14 14:50:35 +00:00
Robert Brennan
dfa34e1880
explicitly handle schema validation errors
2020-01-14 14:50:35 +00:00
Robert Brennan
542694841a
change resolveCheck signature
2020-01-14 14:50:35 +00:00
Robert Brennan
e6a44c6ff8
formatting change
2020-01-14 14:50:35 +00:00
Robert Brennan
7637108234
refactor ValidateContainers
2020-01-14 14:50:34 +00:00
Robert Brennan
23bf4c81b0
refactor ValidatePod, add NakedPod type
2020-01-14 14:50:34 +00:00
Robert Brennan
090700f641
minor tweaks
2020-01-14 14:50:34 +00:00
Robert Brennan
e129ba6971
fix dashboard after output change
2020-01-14 14:50:34 +00:00
Robert Brennan
51cd3523fc
messages -> results
2020-01-14 14:50:34 +00:00
Robert Brennan
83a7448c99
add namespaces to controllers
2020-01-14 14:50:34 +00:00
Robert Brennan
d228acfe71
add object meta to controller interface
2020-01-14 14:50:34 +00:00
Robert Brennan
49c540e993
type -> kind
2020-01-14 14:50:34 +00:00
Robert Brennan
9f7caabef4
change message type to boolean
2020-01-14 14:50:34 +00:00
Robert Brennan
2770be643f
Refactor validation
2020-01-14 14:50:34 +00:00
Robert Brennan
917e630697
move some tests
2020-01-02 20:49:51 +00:00
Robert Brennan
57ff1d5c06
remove messages
2020-01-02 20:07:55 +00:00
Robert Brennan
04da47d83e
change input config to simplify things
2020-01-02 17:55:21 +00:00
Robert Brennan
5efa416ea9
implement custom checks, implement resource ranges as custom check
2020-01-02 17:55:21 +00:00
Robert Brennan
7b0fe81d01
implement capabilities checks in JSON schema
2020-01-02 17:55:21 +00:00
Robert Brennan
7cc0be4188
remove unused function
2019-12-23 21:16:59 +00:00
Robert Brennan
b0035158d2
fix lint errors
2019-12-23 20:57:48 +00:00
Robert Brennan
f7dccc079b
move more security checks to jsonschema
2019-12-23 20:32:38 +00:00
Robert Brennan
ad3a8e6748
move runAsRootAllowed over to jsonschema
2019-12-23 20:32:38 +00:00
Robert Brennan
3fa627a2cd
move networking checks over to json schema
2019-12-23 20:32:38 +00:00
Robert Brennan
30b49c4d7b
implement image checks using json schema
2019-12-23 20:32:38 +00:00
Robert Brennan
f2c5752718
migrate health checks to schemas
2019-12-23 20:32:38 +00:00
Robert Brennan
3304285b4e
move rest of pod checks over to schema
2019-12-23 20:32:38 +00:00
Robert Brennan
d80d326f7c
swap out host_network for a schema-based check
2019-12-23 20:32:38 +00:00
Robert Brennan
67ab987f7e
Add support for annotation-based exemptions ( #227 )
...
* add controllers_to_scan to example config-full
* add support for annotation-based exemptions
* fix lint errors
* add docs
2019-12-06 08:29:30 -05:00
Robert Brennan
98b47e0aeb
Fix resource success messages ( #223 )
...
* add success messages when resources are set
* add tests
2019-11-13 14:07:32 -05:00
Robert Brennan
4eeabb2c7f
pass RunAsNonRoot if RunAsUser > 0 ( #219 )
2019-11-11 13:21:32 -05:00
Robert Brennan
22ab851681
skip health checks for jobs, cronjobs, and initContainers ( #216 )
2019-11-06 13:31:17 -05:00
Robert Brennan
2b15f11d57
Add exemptions to config ( #204 )
...
* first pass at adding exemptions
* Update config.yaml
* make config_test more reliable
* add flag to disallow exemptions in dashboard
* add disallow-exemptions flag to CLI
* add comments
* fix exemptions flag
* fix alert on dashboard
* minor style changes
2019-10-23 17:14:03 -04:00
Robert Brennan
434b1f604f
Create capabilitiesAdded and capabilitiesDropped IDs ( #207 )
...
* ensure check IDs are unique
* create capabilitiesAdded and capabilitiesDropped check IDs
2019-10-02 08:51:47 -04:00
Robert Brennan
c91a85a08a
add IDs to each check ( #197 )
2019-09-11 14:07:08 -04:00