Barnabas Makonda
6b7d6ab301
Added Mutation webhook ( #755 )
...
* added mutate webhook
* fix mutation operation type
* if no mutation just use valid response
2022-05-03 17:42:19 +03:00
Barnabas Makonda
a59063bdb2
Add fix command to mutate and update IaC ( #746 )
...
* added fix command
* update fix command to walk through the folder to find all files
* added ability to add comment
* fix comment prefix
* trim whitespaces to the line
* refactor update mutated file
* remove filepath as is not needed anymore
* remove filepath as is not needed anymore
* remove timestamp and status if creation is null
* added comments and fix tests
* remove hardcoded mutation in config
* revert comment deletion
* separate mutated to success files
* read multiple resources in a file and update both
* Remove mutation in config.yaml
2022-04-28 18:28:33 +03:00
Barnabas Makonda
a4c0b0f555
Add mutation field to imagePolicyNotAlways ( #712 )
...
* added mutation field in checks and config
* added test
* fix tests
* revert resolve export
* remove Patched resources as moving that to separate functionality apart from validation
* go mod tidy
* move mutation to the container level
* change prefix based on the resource kind
* collect all mutations from results and apply
* added test for cronjob and deployment apart from just pod
* test cronjob prefix
* return a copy of mutation
* fix tests and comments
* address feedback comments
* fix warning formating
* refactor getJSONSchemaPrefix function
2022-03-25 16:38:58 +03:00
Timur Girgin
5acdc4a4b9
fix: add space before "in namespace" output ( #650 )
2021-10-15 15:48:58 -04:00
Robert Brennan
9ae4f774e9
bump version, add docs, fix up dashboard ( #595 )
...
* bump version\, add docs\, fix up dashboard
* fix pretty output
* Update config.yaml
* fix extra kinds appearing
2021-08-18 17:55:48 -04:00
Robert Brennan
a43a0fe2f5
fix score when onlyOutputFailed is true ( #563 )
...
* fix score when onlyOutputFailed is true
* fix tests
* remove return
2021-06-21 12:26:44 -04:00
Robert Brennan
371e30fe3d
Add support for check templates ( #520 )
...
* Add basic flow
* Add arbitrary validator
* Pipe config through to resource provider
* Set arbitraries on resource provider
* Add arbitrary validation to fullaudit
* Add conf argument
* Fix resource setting from string
* PR updates
* Fix nil map error
* Delete lingering print, add pdb check, start implementing validator test
* move ingress to arbitrary
* fix compile
* refactor a bunch
* add tls tests
* tests passing
* resource provider helper
* refactor tests
* fix exemptions
* fix check test
* fix up resource creation from API
* fix init containers
* fix cronjob test
* fix pod tests
* combine controllers and-noncontrollers in resource provider
* delint
* add ingress backward compat
* fix tests
* reenable test
* rename a fn
* remove unused fn
* remove if
* first pass
* more progress
* debug
* update jsonschema
* Revert "update jsonschema"
This reverts commit 45e6c398ff .
* Revert "Revert "update jsonschema""
This reverts commit f8c5ec223824694c43a6af9dae9319f1f0e30b37.
* templating working
* rename check
* add failure details to results
* minor edits
* add runAsRoot test
* Revert "Revert "Revert "update jsonschema"""
This reverts commit fcdacdc3c22e32c580541901f99e154d00bedbc8.
* minor fixes
* most tests passing
* fix json annotations
* logspam
* delint
* add comment
Co-authored-by: Jordan Doig <jordan.steele.doig@gmail.com >
2021-04-09 09:08:31 -04:00
Robert Brennan
1fed099b53
Pretty printer for audit ( #512 )
...
* pretty output
* add colors
* better nocolor
* fix up main title
* delint
* remove double negative
* update docs
2021-03-12 12:20:00 -05:00
Robert Brennan
768b715fdf
fix npe ( #511 )
2021-03-08 08:34:31 -05:00
MAKOSCAFEE
0aa173789a
refactor resultSet loop
2021-02-09 19:16:42 +03:00
MAKOSCAFEE
fe0060af77
added test for score
2021-01-29 22:13:01 +03:00
Jordan Doig
550447234a
ControllerResult to Result
2020-12-16 13:32:08 -07:00
jordandoig
717d9b2630
PodResult to pointer
2020-12-16 12:11:19 -07:00
Bader Boland
7fdebfc4db
Fix tests
2020-03-17 09:19:33 -04:00
Bader Boland
31de106ba8
Added check for parent and rollup to parent.
2020-01-31 14:10:53 -05: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
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