1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-13 19:28:55 +00:00
kyverno/pkg/engine
Amit kumar 6d8ae16afa
added verify image ristretto cache implementation (#7969)
* updated flags

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added ristretto_cache impl

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added bufferSize

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* made cache as private member

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* made cache as private member

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added logger.withValues

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added verify image cache

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added cache tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* fixed lint issue

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added chaged policy test

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* cache time should be entered in minutes

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed cache.wait()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed client.go logs and added in imageVerifier

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added level to the logs

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added notary image cache verification

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* replace intVar by flag.DurationVar()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed lock from cache clinet

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* updated cosign tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added execution latencies comparision

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added assert.Error()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added error assertion util

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added error log

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* Update pkg/engine/internal/imageverifier.go

Signed-off-by: shuting <shutting06@gmail.com>

* lint fixes

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed logs from unit tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added ristretto_cache impl

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* removed cache.wait()

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* small nits

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* added asssertions in tests

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* fixed conflicts

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* lint fix

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

* renamed variabls

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>

---------

Signed-off-by: hackeramitkumar <amit9116260192@gmail.com>
Signed-off-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shutting06@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-08-30 07:26:40 +00:00
..
adapters feat: support namespaced parameter resources for CEL expressions in Kyverno policies (#8084) 2023-08-28 14:43:09 +00:00
anchor feat: add fuzzers from cncf-fuzzing (#8027) 2023-08-16 16:42:37 +00:00
api feat: support namespaced parameter resources for CEL expressions in Kyverno policies (#8084) 2023-08-28 14:43:09 +00:00
apicall refactor: add specific loaders from #7597 (#7671) 2023-06-26 13:31:40 +00:00
context fix: return err in load data (#7982) 2023-08-08 12:42:29 +00:00
factories feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
handlers added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
internal added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
jmespath fix: remove jmespath replace directive (#7726) 2023-07-07 10:22:26 +00:00
jsonutils refactor: move util funcs in sub packages (#5754) 2022-12-22 06:39:54 +00:00
mutate feat: switch json patch lib for real (#7452) 2023-06-08 10:23:20 +00:00
operator fix: change inrange operator regexs (#5962) 2023-01-16 16:23:36 +01:00
pattern fix: abort validation if value could be processed (#7307) 2023-06-06 14:41:20 +00:00
policycontext Fix deferred loading (#7597) 2023-06-27 09:58:50 -07:00
resources refactor: introduce engine handler (#6680) 2023-03-24 16:24:00 +00:00
utils chore: move kyverno.io/verify-images constant (#7955) 2023-08-02 14:02:21 +00:00
validate update k8s.gcr.io to registry.k8s.io (#6340) 2023-02-20 13:40:12 +00:00
variables feat: add fuzzers from cncf-fuzzing (#8027) 2023-08-16 16:42:37 +00:00
wildcards fix: add type conversion error judgment to avoid program panic (#6526) 2023-06-14 14:24:45 +00:00
attestation_test.go Conditions message (#7113) 2023-05-08 15:34:23 +08:00
background.go fix: Delete downstream objects on precondition fail (#7496) 2023-06-15 11:32:19 -04:00
engine.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
exceptions.go fix: exceptions not considered on delete (#7433) 2023-06-06 22:15:10 +08:00
forceMutate.go refactor: remove json patches from engine response (#7449) 2023-06-07 17:45:11 +08:00
forceMutate_test.go refactor: introduce jmespath interface (#6882) 2023-04-13 11:29:40 +00:00
fuzz_test.go refactor: create cel package for compiling expressions (#8108) 2023-08-24 14:06:37 +00:00
generation.go refactor: don't process context/preconditions in invokeHandler (#6751) 2023-04-03 12:57:48 +08:00
image_verify.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
image_verify_test.go added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
metrics.go Add an abstraction interface for Kyverno policies and validating admission policies (#8016) 2023-08-15 12:41:43 -07:00
mutation.go refactor: policy response (#6877) 2023-04-12 16:20:42 +00:00
mutation_test.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00
policy_context.go refactor: hide json context from caller (#7139) 2023-05-12 14:14:48 +00:00
validation.go feat: support cel expression in validate rules (#7070) 2023-05-31 14:30:55 -07:00
validation_test.go feat: add basic structure for image verify cache (#7890) 2023-08-06 21:54:52 +02:00