1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg/policy
shuting f87b0204e6
fix: generate policy validation to prevent endless loop (#7026)
* refactor policy validation

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add loop check for generate

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* add kuttl tests

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* linter fixes

Signed-off-by: ShutingZhao <shuting@nirmata.com>

* linter fixes

Signed-off-by: ShutingZhao <shuting@nirmata.com>

---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-04-28 13:54:17 +00:00
..
common Replaces manually written logic with regex for matching anchor elements (#6133) 2023-01-30 12:17:19 +00:00
generate feat: new access checks for background policies (#6970) 2023-04-24 10:31:42 +00:00
mutate feat: new access checks for background policies (#6970) 2023-04-24 10:31:42 +00:00
validate fix: block generate policies when lack of permission to operate downstream resources (#6610) 2023-03-22 13:14:57 +00:00
generate.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
mutate.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
policy_controller.go fix: generate policy validation to prevent endless loop (#7026) 2023-04-28 13:54:17 +00:00
updaterequest.go fix: delete downstream for a generate rule removal, with data and sync (#6393) 2023-03-01 03:48:18 +00:00
utils.go fix: background scan events (#5807) 2023-01-04 13:15:30 +08:00
utils_test.go tests: add unit tests for utils functions (#3857) 2022-05-10 13:45:48 +00:00