mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
fix: disables TUF by default (#8509)
This commit is contained in:
parent
a043325237
commit
d4d5d751b1
6 changed files with 14 additions and 1 deletions
|
@ -315,6 +315,7 @@ The chart values are organised per component.
|
|||
| features.registryClient.credentialHelpers | list | `["default","google","amazon","azure","github"]` | Enable registry client helpers |
|
||||
| features.reports.chunkSize | int | `1000` | Reports chunk size |
|
||||
| features.ttlController.reconciliationInterval | string | `"1m"` | Reconciliation interval for the label based cleanup manager |
|
||||
| features.tuf.enable | bool | `false` | Enable tuf |
|
||||
| features.tuf.root | string | `nil` | Tuf root |
|
||||
| features.tuf.mirror | string | `nil` | Tuf mirror |
|
||||
|
||||
|
|
|
@ -75,6 +75,9 @@
|
|||
{{- $flags = append $flags (print "--ttlReconciliationInterval=" .reconciliationInterval) -}}
|
||||
{{- end -}}
|
||||
{{- with .tuf -}}
|
||||
{{- with .enable -}}
|
||||
{{- $flags = append $flags (print "--enableTuf=" .) -}}
|
||||
{{- end -}}
|
||||
{{- with .mirror -}}
|
||||
{{- $flags = append $flags (print "--tufMirror=" .) -}}
|
||||
{{- end -}}
|
||||
|
|
|
@ -448,6 +448,8 @@ features:
|
|||
# -- Reconciliation interval for the label based cleanup manager
|
||||
reconciliationInterval: 1m
|
||||
tuf:
|
||||
# -- Enable tuf
|
||||
enable: false
|
||||
# -- Tuf root
|
||||
root:
|
||||
# -- Tuf mirror
|
||||
|
|
|
@ -39,6 +39,7 @@ var (
|
|||
enableConfigMapCaching bool
|
||||
// cosign
|
||||
imageSignatureRepository string
|
||||
enableTUF bool
|
||||
tufMirror string
|
||||
tufRoot string
|
||||
// registry client
|
||||
|
@ -101,7 +102,8 @@ func initDeferredLoadingFlags() {
|
|||
|
||||
func initCosignFlags() {
|
||||
flag.StringVar(&imageSignatureRepository, "imageSignatureRepository", "", "(DEPRECATED, will be removed in 1.12) Alternate repository for image signatures. Can be overridden per rule via `verifyImages.Repository`.")
|
||||
flag.StringVar(&tufMirror, "tufMirror", tuf.DefaultRemoteRoot, "Alternate TUF mirror for sigstore. If left blank, public sigstore one is used for cosign verification..")
|
||||
flag.BoolVar(&enableTUF, "enableTuf", false, "enable tuf for private sigstore deployments")
|
||||
flag.StringVar(&tufMirror, "tufMirror", tuf.DefaultRemoteRoot, "Alternate TUF mirror for sigstore. If left blank, public sigstore one is used for cosign verification.")
|
||||
flag.StringVar(&tufRoot, "tufRoot", "", "Alternate TUF root.json for sigstore. If left blank, public sigstore one is used for cosign verification.")
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,10 @@ import (
|
|||
)
|
||||
|
||||
func setupSigstoreTUF(ctx context.Context, logger logr.Logger) {
|
||||
if !enableTUF {
|
||||
return
|
||||
}
|
||||
|
||||
logger = logger.WithName("sigstore-tuf").WithValues("tufroot", tufRoot, "tufmirror", tufMirror)
|
||||
logger.Info("setup tuf client for sigstore...")
|
||||
var tufRootBytes []byte
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
features:
|
||||
tuf:
|
||||
enable: true
|
||||
root: "$(TUF_MIRROR)/root.json"
|
||||
mirror: "$(TUF_MIRROR)"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue