1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +00:00
Commit graph

6680 commits

Author SHA1 Message Date
Vishal Choudhary
0699002299
fix: bump docker in release 1.11 (#10887)
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2024-08-19 08:02:54 +00:00
Vishal Choudhary
4816b7cad8
fix: critical docker vulnerability in release 1.11 (#10762)
* fix: critical docker vulnerability in release 1.11

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: update scaffolding version

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: notary tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2024-08-01 10:12:39 +00:00
shuting
0a51e10130
fix: cve (#10521)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-06-21 07:47:58 +00:00
shuting
c708a20600
feat: release v1.11.5 (#10211)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-05-09 08:47:44 +00:00
Vishal Choudhary
dd5a495961
fix: cosign ctlog unit tests (#9970) (#10213) 2024-05-09 08:19:36 +00:00
Vishal Choudhary
8badacff0e
feat: use awslabs keychain for AWS and gcr keychain for GCP cherry-pick #9416 (#9547)
* feat: use awslabs keychain for AWS and gcr keychain for GCP (#9416)

* feat: use awslabs keychain for AWS and gcr keychain for GCP

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* chore: remove unused var

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* chore: remove more unused vars

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: gofumpt

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* chore; go mod tidy

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2024-01-29 12:13:30 +00:00
gcp-cherry-pick-bot[bot]
eeeef826d5
fix(policies): Add ability to configure skipBackgroundRequests (#9532) (#9536)
* fix(policies): Add ability to configure skipBackgroundRequests



* fix: Drop trailing spaces to fix CI



---------

Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
Co-authored-by: Marco Maurer (-Kilchhofer) <mkilchhofer@users.noreply.github.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-01-27 18:18:13 +00:00
Mariam Fahmy
04391d6ecc
fix: add v1beta1 of VAPs in the CLI (#9404) (#9455)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2024-01-20 14:30:39 +01:00
shuting
6c88cf5ee1
release 1.11.4 (#9453)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-01-19 10:08:00 +00:00
shuting
e59ddbdd96
update bitnami/kubectl (#9408) (#9452)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-01-19 09:28:17 +00:00
shuting
e3ea068dff
bump libs (#9411)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-01-16 10:22:23 +00:00
shuting
1612b21e6a
release 1.11.3 (#9346)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2024-01-05 09:58:56 +00:00
Vishal Choudhary
8a13ec1bba
fix: update CLI to use store for fetching regclient (#9345)
* fix: update CLI to use store for fetching regclient

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: nil

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: pass the rclient

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2024-01-05 08:44:39 +00:00
gcp-cherry-pick-bot[bot]
42a6b4b545
fix: non-trigger resources should be skipped for background policies regardless of skipBackgroundRequests settings (#9333) (#9337)
* fix skip checks



* fix: skip request for non-triggers



* add missing files



* fix: empty policy



---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2024-01-04 11:24:23 +00:00
gcp-cherry-pick-bot[bot]
5f9ed6f0f8
Add Chainsaw Test for Conditional Anchor (#9295) (#9304)
Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: Khaled Emara <khaled.emara@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-28 13:16:31 +00:00
shuting
ccb05b3a7d
release 1.11.2 (#9302)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-12-28 09:31:35 +00:00
shuting
12c9c016a8
fix(cli): handle excluded resources as pass (cherry-pick #9274) (#9300)
* fix(cli): handle excluded resources as pass (#9274)

* fix(cli): handle excluded resources as pass

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

* test: add cli test for exclude

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>

---------

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>

* cherry-pick #9274

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

---------

Signed-off-by: Khaled Emara <khaled.emara@nirmata.com>
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: Khaled Emara <khaled.emara@nirmata.com>
2023-12-28 08:50:51 +00:00
Charles-Edouard Brétéché
e50ed6fb9c
feat: add deprecation warnings in the CLI (#9222) (#9294) 2023-12-27 10:39:45 +00:00
Mariam Fahmy
c87c7b3f9b
fix: updaterequests stuck in pending/fail infinite loop (cherry-pick #9119) (#9293)
* fix: updaterequests stuck in pending/fail infinite loop

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix: prevent creating URs upon DELETE unless it is specified

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* fix chainsaw test

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

* add kuttl test

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>

---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-27 10:06:26 +00:00
Mariam Fahmy
a6f121cb6f
chore: update chart.yaml with the changes (#9292)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-27 09:35:45 +00:00
shuting
e809755f30
cherry-picj #9151 (#9291)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: raffis <raffael.sahli@doodle.com>
2023-12-27 09:04:36 +00:00
gcp-cherry-pick-bot[bot]
8b117276cd
Support more signature algorithms (#9102) (#9289)
* Support more signature algorithms



* Fix codegen



* Fail loudly for unsupported algorithm



* Fix codegen



* Fix more



---------

Signed-off-by: Hongxin Liang <honnix@users.noreply.github.com>
Co-authored-by: Honnix <honnix@users.noreply.github.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-27 08:34:16 +00:00
gcp-cherry-pick-bot[bot]
0306c3fd7c
fix: large table row ID number format in CLI (#9281) (#9287)
Co-authored-by: hhsel <26063868+hhsel@users.noreply.github.com>
Co-authored-by: shuting <shuting@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-27 06:03:48 +00:00
gcp-cherry-pick-bot[bot]
3501cde249
fix: remove skip increment when resource not found in cli apply (#9282) (#9284)
* fix: remove skip increment when resource not found in cli apply



* fix test



---------

Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-26 22:26:44 +01:00
Vishal Choudhary
41e7bd40a8
chore: disable policy library kuttl tests in 1.11 (#9259)
* chore: disable policy library kuttl tests in 1.11

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* chore: delete policy-lib test

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-12-26 06:19:06 +00:00
gcp-cherry-pick-bot[bot]
92028dfd9b
fix: use http.MaxBytesReader instead of content length for API Calls (#9265) (#9268)
* fix: use http.MaxBytesReader instead of content length for API Calls



* feat: add unit tests



* feat: added test for chunked transfer



---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-12-26 04:28:21 +00:00
gcp-cherry-pick-bot[bot]
98f2162413
Add imagePullSecrets to post-upgrade job (#9264) (#9273)
Signed-off-by: Frank Wittig <frank@e5k.de>
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
Co-authored-by: Frank Wittig <frank@e5k.de>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-12-24 18:27:38 +00:00
shuting
a0520b53ff
release v1.11.2-rc.1 (#9252)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-12-22 11:33:20 +00:00
Vishal Choudhary
9a49735ea8
chore: bump k8s to 1.29 stable (release 1.11) (#9257)
* chore: bump k8s to 1.29 stable (release 1.11)

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: lint

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: kyverno-bot <104836976+kyverno-bot@users.noreply.github.com>
2023-12-22 18:55:07 +08:00
Mariam Fahmy
88d1818bb3
fix: convert chainsaw tests to kuttl (#9242)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-22 09:21:07 +00:00
Vishal Choudhary
83a0e05b28
fix: bump k8s to 0.29-alpha.3 and add support for fips endpoints in AWS authentication (cherry-pick: #9233) (#9244)
* fix: add support for fips endpoints in AWS authentication (cherry-pick: #9233)

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* feat: bump k8s to 0.29

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* chore: codegen

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: lint

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

* fix: tests

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>

---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
2023-12-22 07:37:38 +00:00
gcp-cherry-pick-bot[bot]
373e828f34
fix launch.json (#9239) (#9245)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-21 21:02:00 +00:00
shuting
0c000eb8ee
cherry-pick #9230 (#9234)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-12-20 17:16:09 +00:00
gcp-cherry-pick-bot[bot]
71f7a67b6e
fix: add chainsaw test for mutate existing (#9210) (#9221)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-20 13:30:09 +08:00
gcp-cherry-pick-bot[bot]
69f52b9879
fix: add skipBackgoundRequests to configure loop protection option (#9157) (#9207)
* fix typo



* add new attribute skipBackgroundRequests



* move to per rule config



* check flag



* clean up



* update docs



* fix logger



* add retryCount to ur.status



* add chainsaw tests



---------

Signed-off-by: ShutingZhao <shuting@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-19 10:51:47 +00:00
gcp-cherry-pick-bot[bot]
95364ca438
fix: limit the trigger name to a maximum of 63 characters for mutate existing rules (#9162) (#9195)
* fix: limit the trigger name to a maximum of 63 characters for mutate existing rules



* fix chainsaw test



---------

Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-18 20:54:31 +00:00
gcp-cherry-pick-bot[bot]
8cca8c5243
fix: enable additional report printers by default (#9194) (#9196)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-18 18:17:00 +00:00
gcp-cherry-pick-bot[bot]
91acdb373b
improve messages (#9168) (#9169)
* improve messages



* fix typo



---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2023-12-18 05:09:29 +00:00
Mariam Fahmy
c073f7c2ba
fix: add tolerations and affinity to the post-upgrate hook (#9156) (#9164)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-15 09:00:51 -05:00
gcp-cherry-pick-bot[bot]
d3d0eb354f
fix: allow changes to preexisting resource in violation of a policy in Enforce (#9027) (#9139)
* fix: allow changes to preexisting resource in violation of a policy in Enforce



* fix: missing error check



* fix: tests



* nit: cleanup



* fix



* fix: update old policy context



* fix: preconditions always retured true

internal.CheckPreconditions always returned true when v.anyAllConditions, it should be populated with rule.RawAnyAllConditions when newValidator() is used to create a validator



* fix: fix chainsaw test



* fix: nit



* debug



* feat: update test



* fix: add namespace



* feat: add test for bad to good conversion



* feat: add test step



---------

Signed-off-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: Vishal Choudhary <vishal.choudhary@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-12-12 09:54:45 +00:00
treydock
52526f8425
(cherry-pick) Fix Helm chart to not error when replicas defined (#9066) (#9073)
Fixes #8941

Cherry pick from main PR didn't work

Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
2023-12-04 22:09:28 +08:00
gcp-cherry-pick-bot[bot]
c146c5731c
fix: add nodeSelector to the reports cleanup helm hook (#9065) (#9069)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-12-04 07:28:16 +00:00
gcp-cherry-pick-bot[bot]
e7b463a41e
fix: ttl cleanup not working with cluster wide resources (#9060) (#9063)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-12-03 00:11:52 +00:00
shuting
afe740a42a
release 1.11.1 (#9039)
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-11-28 15:08:54 +00:00
gcp-cherry-pick-bot[bot]
5b18a4bc46
fix: cleanup older policy reports (#9026) (#9035)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-28 19:37:36 +08:00
Mariam Fahmy
697188dfa1
fix: use validate.message in case there is no message associated with the CEL expression (#9025)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-27 11:06:52 +00:00
gcp-cherry-pick-bot[bot]
6883e7c031
Remove var check (#8990) (#9024)
* fix excessive logs



* remove variable check



---------

Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
2023-11-27 10:37:36 +00:00
Mariam Fahmy
a08cb71deb
fix: use the default namespace in case --namespace isn't set in kyverno create exception (#9022)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-27 18:04:20 +08:00
Mariam Fahmy
9906505ee5
fix: remove the additional dash in kyverno create exception (#9021)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-27 09:30:09 +00:00
Mariam Fahmy
925f80d4c2
fix: use v2beta1 version of exceptions in kyverno create CLI (#9020)
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-11-27 09:02:00 +00:00