1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-07 01:33:31 +00:00
kyverno/pkg/engine
Abhinav Sinha a1182859ad
Added x509_decode JMESPath function ()
* Added `x509_decode` JMESPath function

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Use `crypto/x509` stdlib

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Return result as `map[string]interface{}`

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Made minor fixes

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Fixed error with unmarshalling decoded certificate

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Added e2e test for decoding X.509 certs

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Reverted to using `smallstep/zcrypto` for X.509

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Minor fix

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Addressed reviews

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

* Removed redundant dependency on `pkg/errors`

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>

Signed-off-by: Abhinav Sinha <abhinav@nirmata.com>
Co-authored-by: shuting <shuting@nirmata.com>
2022-09-28 18:15:39 +00:00
..
anchor skip validate rules if conditional anchor key doesn't exist in the resource () 2022-08-31 05:09:53 +00:00
common refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
context refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
jmespath Added x509_decode JMESPath function () 2022-09-28 18:15:39 +00:00
jsonutils refactor: move common utils () 2022-04-05 13:02:43 +00:00
mutate refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
operator chore: enable gofmt and gofumpt linters () 2022-05-17 06:19:03 +00:00
resources Yaml signing and verification () 2022-08-30 10:14:54 -07:00
response refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
utils use failurePolicy to block or allow requests, on policy errors () 2022-08-02 20:24:02 +05:30
validate skip validate rules if conditional anchor key doesn't exist in the resource () 2022-08-31 05:09:53 +00:00
variables refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
wildcards chore: add unit tests for pkg/utils/wildcard () 2022-09-06 08:02:41 +00:00
attestation_test.go add applyRules to control whether one or all rules are applied () 2022-07-29 15:02:26 +08:00
background.go chore: fix golangcilint timeout () 2022-08-24 21:08:24 +08:00
forceMutate.go chore: make kyverno api import aliases consistent () 2022-05-17 13:12:43 +02:00
forceMutate_test.go refactor: engine context () 2022-04-09 11:52:50 +00:00
generation.go chore: make kyverno api import aliases consistent () 2022-05-17 13:12:43 +02:00
imageVerify.go refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
imageVerify_test.go fix: change key used in test () 2022-09-27 17:18:14 +00:00
imageVerifyMetadata.go chore: enable gofmt and gofumpt linters () 2022-05-17 06:19:03 +00:00
imageVerifyValidate.go Added appropriate logging levels to log.Info() calls wherever necessary () 2022-08-18 13:24:59 +00:00
jsonContext.go feat: remove context api call constraints () 2022-09-01 08:30:04 +00:00
k8smanifest.go Add the metric "kyverno_client_queries_total" () 2022-08-31 11:33:47 +05:30
k8smanifest_test.go Yaml signing and verification () 2022-08-30 10:14:54 -07:00
loadtargets.go fix: namespaced policy targets namespace validation and scoping them to the policy's namespace () 2022-09-26 14:54:13 +00:00
loadtargets_test.go Load mutate.targets via dclient () 2022-05-06 05:46:36 +00:00
mutation.go add applyRules to control whether one or all rules are applied () 2022-07-29 15:02:26 +08:00
mutation_test.go Add the metric "kyverno_client_queries_total" () 2022-08-31 11:33:47 +05:30
policyContext.go Add the metric "kyverno_client_queries_total" () 2022-08-31 11:33:47 +05:30
utils.go refactor: introduce wildcard utils package () 2022-08-25 05:23:01 +00:00
utils_test.go handle subresources () 2022-05-09 18:50:50 -07:00
validation.go Support PSa integration by controlName only () 2022-09-28 10:03:53 +00:00
validation_test.go Support PSa integration by controlName only () 2022-09-28 10:03:53 +00:00