Charles-Edouard Brétéché
410f99f624
refactor: add cli fix package ( #8400 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 21:36:32 +02:00
Charles-Edouard Brétéché
d8186ef4ab
chore: add workflow to test cli with kubectl-validate enabled ( #8407 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 19:04:55 +00:00
Charles-Edouard Brétéché
5181deaf2e
fix: load policies ( #8403 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: kyverno-bot <104836976+kyverno-bot@users.noreply.github.com>
2023-09-14 16:54:54 +00:00
Charles-Edouard Brétéché
d5c23f0f45
chore: use upstream kubectl-validate ( #8406 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 16:08:16 +00:00
Charles-Edouard Brétéché
2a136f5b8d
feat: use kubectl-validate to load policies ( #8384 )
...
* feat: use kubectl-validate to load policies
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* schemas
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* bump
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* policies v2beta1
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* option
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* defaulting test
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* makefile
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* makefile
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 15:17:02 +00:00
Mariam Fahmy
7db8800b87
chore: move policy exceptions to beta ( #8378 )
...
* chore: move policy exceptions to beta
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
* fix kuttl test
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
* fix: keep v2alpha1 as the storage version
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
* fix: avoid using type aliases
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
---------
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-09-14 14:23:51 +00:00
Mariam Fahmy
d3dbd52f75
fix typo ( #8399 )
...
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-09-14 13:52:24 +00:00
dependabot[bot]
714518fb22
chore(deps): bump github.com/go-git/go-billy/v5 from 5.4.1 to 5.5.0 ( #8394 )
...
Bumps [github.com/go-git/go-billy/v5](https://github.com/go-git/go-billy ) from 5.4.1 to 5.5.0.
- [Release notes](https://github.com/go-git/go-billy/releases )
- [Commits](https://github.com/go-git/go-billy/compare/v5.4.1...v5.5.0 )
---
updated-dependencies:
- dependency-name: github.com/go-git/go-billy/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 13:01:16 +00:00
Shubham Gupta
45caeb357b
bump kuttl version ( #8396 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
2023-09-14 12:18:59 +00:00
Charles-Edouard Brétéché
901efbc74c
fix: cli output improvements ( #8398 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 11:45:18 +00:00
dependabot[bot]
1b27673a75
chore(deps): bump k8s.io/apiserver from 0.28.1 to 0.28.2 ( #8392 )
...
Bumps [k8s.io/apiserver](https://github.com/kubernetes/apiserver ) from 0.28.1 to 0.28.2.
- [Commits](https://github.com/kubernetes/apiserver/compare/v0.28.1...v0.28.2 )
---
updated-dependencies:
- dependency-name: k8s.io/apiserver
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 10:55:12 +00:00
dependabot[bot]
86530740c1
chore(deps): bump k8s.io/client-go from 0.28.1 to 0.28.2 ( #8391 )
...
Bumps [k8s.io/client-go](https://github.com/kubernetes/client-go ) from 0.28.1 to 0.28.2.
- [Changelog](https://github.com/kubernetes/client-go/blob/master/CHANGELOG.md )
- [Commits](https://github.com/kubernetes/client-go/compare/v0.28.1...v0.28.2 )
---
updated-dependencies:
- dependency-name: k8s.io/client-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 09:50:27 +00:00
Charles-Edouard Brétéché
3cde1cc5b4
fix: cli test manifests ( #8397 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 09:06:04 +00:00
dependabot[bot]
099a93139b
chore(deps): bump k8s.io/api from 0.28.1 to 0.28.2 ( #8395 )
...
Bumps [k8s.io/api](https://github.com/kubernetes/api ) from 0.28.1 to 0.28.2.
- [Commits](https://github.com/kubernetes/api/compare/v0.28.1...v0.28.2 )
---
updated-dependencies:
- dependency-name: k8s.io/api
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 08:17:38 +00:00
dependabot[bot]
068420ff9d
chore(deps): bump go.opentelemetry.io/otel/exporters/prometheus ( #8393 )
...
Bumps [go.opentelemetry.io/otel/exporters/prometheus](https://github.com/open-telemetry/opentelemetry-go ) from 0.40.0 to 0.41.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/sdk/metric/v0.40.0...sdk/metric/v0.41.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/prometheus
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 09:29:14 +02:00
dependabot[bot]
78a94c476d
chore(deps): bump go.opentelemetry.io/otel/sdk/metric ( #8371 )
...
Bumps [go.opentelemetry.io/otel/sdk/metric](https://github.com/open-telemetry/opentelemetry-go ) from 0.40.0 to 0.41.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/sdk/metric/v0.40.0...sdk/metric/v0.41.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk/metric
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-14 04:49:57 +00:00
Vishal Choudhary
6a62613d5b
feat: add CTLogs verification to cosign ( #8130 )
...
* feat: add TUF and CTlogs to types
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: add tuf init and custom ctlogs to cosign verify
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: update tests with new types
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* fix: reduce description size
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: add ctlogs negative test
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: add validate for ignoresct
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: update codegen files
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: update codegen
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
* feat: remove TUF changes
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
---------
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
Co-authored-by: shuting <shuting@nirmata.com>
2023-09-14 04:18:44 +00:00
Charles-Edouard Brétéché
37bbf33bd5
fix: CLI test command should validate the policy under test ( #8387 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 00:30:23 +00:00
Charles-Edouard Brétéché
b9bc57b201
fix: replace fmt.Print calls by fmt.Fprint ones ( #8389 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-14 02:55:19 +03:00
Charles-Edouard Brétéché
5af4d13a0e
chore: lint test files ( #8388 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 20:24:49 +00:00
Charles-Edouard Brétéché
32b2110dd9
fix: cli test policy ( #8386 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 19:52:57 +00:00
dependabot[bot]
51fc790aa7
chore(deps): bump docker/login-action from 2.2.0 to 3.0.0 ( #8372 )
...
Bumps [docker/login-action](https://github.com/docker/login-action ) from 2.2.0 to 3.0.0.
- [Release notes](https://github.com/docker/login-action/releases )
- [Commits](465a07811f...343f7c4344
)
---
updated-dependencies:
- dependency-name: docker/login-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 17:29:46 +00:00
Charles-Edouard Brétéché
e173795933
chore: bump kuttl version ( #8329 )
...
* chore: bump kuttl version
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* bump
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 16:43:36 +00:00
Charles-Edouard Brétéché
2b69ba6772
refactor: move cli path utils package ( #8379 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 15:10:12 +00:00
Charles-Edouard Brétéché
14ab6b72a2
fix: Kyverno variable substitution might not work correctly if the top level variable key contains dots ( #8377 )
...
* fix: Kyverno variable substitution might not work correctly if the top level variable key contains dots
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 14:04:39 +00:00
Charles-Edouard Brétéché
aeb5e01c60
fix: Result not correct when testing a mutate rule and foreach with add anchor ( #8375 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 13:25:29 +00:00
oaxiento
d4951476b2
fix: helm pre-delete-hook ( #8381 )
...
Signed-off-by: Markus Mansshardt <15368510+oaxiento@users.noreply.github.com>
2023-09-13 12:38:06 +00:00
Mariam Fahmy
fa4823a0e9
fix generate VAPs kuttl tests ( #8376 )
...
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-09-13 11:16:53 +00:00
shuting
6be71b3cab
remove unnecessary steps ( #8374 )
...
Signed-off-by: ShutingZhao <shuting@nirmata.com>
2023-09-13 10:30:40 +00:00
Charles-Edouard Brétéché
dc71610df7
refactor: cli commands tests and error handling ( #8367 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 09:53:19 +00:00
Charles-Edouard Brétéché
c88f8e8638
fix: Testing a generate rule for a custom resource fails ( #8373 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-13 08:45:40 +00:00
dependabot[bot]
b4c669b32a
chore(deps): bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc ( #8369 )
...
Bumps [go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc](https://github.com/open-telemetry/opentelemetry-go ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.17.0...v1.18.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 07:59:11 +00:00
dependabot[bot]
d181d54323
chore(deps): bump go.opentelemetry.io/otel/sdk from 1.17.0 to 1.18.0 ( #8370 )
...
Bumps [go.opentelemetry.io/otel/sdk](https://github.com/open-telemetry/opentelemetry-go ) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/open-telemetry/opentelemetry-go/releases )
- [Changelog](https://github.com/open-telemetry/opentelemetry-go/blob/main/CHANGELOG.md )
- [Commits](https://github.com/open-telemetry/opentelemetry-go/compare/v1.17.0...v1.18.0 )
---
updated-dependencies:
- dependency-name: go.opentelemetry.io/otel/sdk
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-13 09:21:54 +02:00
Shubham Gupta
6846afc00e
wrong-fields ( #8364 )
...
Signed-off-by: Shubham Gupta <iamshubhamgupta2001@gmail.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 23:05:47 +00:00
Charles-Edouard Brétéché
d24b0848a6
chore: add cli commands unit tests ( #8366 )
...
* chore: add cli unit tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* chore: add cli commands unit tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 21:47:03 +00:00
Charles-Edouard Brétéché
fb97629ab5
fix: kyverno test are applying previous mutation rules to subsequent test cases causing failures ( #8363 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 20:19:14 +00:00
Charles-Edouard Brétéché
34c1615090
chore: add cli unit tests ( #8365 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 19:46:04 +00:00
Charles-Edouard Brétéché
e3188fca8c
fix: Overridden request.operation is not considered by match/exclude with operations ( #8361 )
...
* fix: verifyImages w/ multiple entries is not consistent
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* clean
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix: Kyverno apply produces false positives when validating 'empty dangling' tags
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix: Overridden request.operation is not considered by match/exclude with operations
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 18:56:31 +00:00
Charles-Edouard Brétéché
954415a311
fix: kyverno test wrongly finds 'patchedResource mismatch' due to wrong order in array ( #8362 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 17:57:23 +00:00
Charles-Edouard Brétéché
0688c9b369
fix: Kyverno apply produces false positives when validating 'empty dangling" tags ( #8358 )
...
* fix: verifyImages w/ multiple entries is not consistent
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* clean
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix: Kyverno apply produces false positives when validating 'empty dangling' tags
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 17:03:37 +00:00
Charles-Edouard Brétéché
dde312e65d
refactor: cli proper error handling ( #8360 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 16:07:06 +00:00
Charles-Edouard Brétéché
44f0de5c53
fix: verifyImages w/ multiple entries is not consistent ( #8357 )
...
* fix: verifyImages w/ multiple entries is not consistent
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* clean
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* unit tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 15:20:21 +00:00
Charles-Edouard Brétéché
dbad967150
fix: namespace in kyverno-test.yaml seems to have no effect in case of exclude ( #8354 )
...
* fix: namespace in kyverno-test.yaml seems to have no effect in case of exclude
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* unit tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 14:33:26 +00:00
Charles-Edouard Brétéché
2ea68ccc7a
fix: Auto-gen rules can not get variables from test input values ( #8337 )
...
* chore: improve cli version command and add tests
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix: Auto-gen rules can not get variables from test input values
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* fix
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-09-12 13:38:57 +00:00
Charles-Edouard Brétéché
a1d06b41df
feat: add create exception cli command ( #7781 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 12:58:30 +00:00
Charles-Edouard Brétéché
045e955a6e
refactor: simplify cli processor ( #8352 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 12:07:12 +00:00
Mariam Fahmy
9b0e6b6e9e
fix: ignore generating backgroundscan reports for Kyverno policies in case VAPs are generated ( #8356 )
...
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
2023-09-12 11:08:28 +00:00
dependabot[bot]
a5198e78a9
chore(deps): bump goreleaser/goreleaser-action from 4.6.0 to 5.0.0 ( #8344 )
...
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action ) from 4.6.0 to 5.0.0.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases )
- [Commits](5fdedb94ab...7ec5c2b0c6
)
---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-12 10:15:28 +00:00
Charles-Edouard Brétéché
9e950b9892
fix: Kyverno test fails to load resources ( #8349 )
...
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-09-12 09:45:24 +00:00
Vishal Choudhary
889117da60
feat: add gofiber/fiber/v2@v2.43.0 to nancy ignore ( #8350 )
...
Signed-off-by: Vishal Choudhary <sendtovishalchoudhary@gmail.com>
2023-09-12 09:04:56 +00:00