1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/pkg
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
..
auth fix: auth checks with the APIVersion and the subresource (#7628) 2023-06-22 14:14:06 +00:00
autogen chore: organize constants better (#7941) 2023-07-31 11:53:57 +00:00
background feat: Add support for server-side-apply in generate rules (#7705) 2023-08-02 17:59:37 +00:00
client feat: migrate ignoreSCT from rekor to ctlog (#8166) 2023-08-30 08:39:49 +02:00
clients feat: use k8s 1.28 libs (#8037) 2023-08-18 03:54:05 +00:00
config feat: allow overriding ca and tls secret names (#8137) 2023-08-28 14:05:49 +00:00
controllers [Feat]: Perform permissions check when TTL label is observed (#8128) 2023-08-28 16:18:48 +00:00
cosign Support for Cosign 2.0 (#7248) 2023-08-15 14:25:55 +00:00
engine added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
event Add an abstraction interface for Kyverno policies and validating admission policies (#8016) 2023-08-15 12:41:43 -07:00
images Support for Cosign 2.0 (#7248) 2023-08-15 14:25:55 +00:00
imageverifycache added verify image ristretto cache implementation (#7969) 2023-08-30 07:26:40 +00:00
informers fix: factorise confimap informer code (#7667) 2023-06-28 04:43:16 +00:00
leaderelection Remove dependency on github.com/pkg/errors (#6165) 2023-02-01 14:38:04 +08:00
logging fix log level (#7877) 2023-07-21 15:41:29 +00:00
metrics fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
notary Support for Cosign 2.0 (#7248) 2023-08-15 14:25:55 +00:00
openapi feat: use k8s 1.28 libs (#8037) 2023-08-18 03:54:05 +00:00
policy feat: support namespaced parameter resources for CEL expressions in Kyverno policies (#8084) 2023-08-28 14:43:09 +00:00
policycache refactor: introduce pss validation handler (#6724) 2023-03-30 09:51:16 +00:00
profiling refactor: introduce cmd internal package (#5404) 2022-11-18 22:21:15 +08:00
pss fix latest version check (#7263) 2023-05-23 15:38:41 +00:00
registryclient Support for Cosign 2.0 (#7248) 2023-08-15 14:25:55 +00:00
tls refactor: remove logger from tls package (#8157) 2023-08-29 10:31:56 +00:00
toggle feat: add lazy loading feature flag (#7680) 2023-06-27 13:44:15 +08:00
tracing fix: context propagation in tracing (#8104) 2023-08-24 14:45:58 +08:00
userinfo refactor: reduce userinfos deps and add unit tests (#6524) 2023-03-10 09:09:19 +00:00
utils refactor: create cel package for compiling expressions (#8108) 2023-08-24 14:06:37 +00:00
validatingadmissionpolicy refactor: create cel package for compiling expressions (#8108) 2023-08-24 14:06:37 +00:00
validation fix: misleading warning about matching on status (#8127) 2023-08-25 21:44:08 +00:00
version fix: use golang builtin version management (#7654) 2023-06-30 23:27:06 +00:00
webhooks fix: context propagation in tracing (#8104) 2023-08-24 14:45:58 +08:00