diff --git a/config/config.go b/config/config.go index 7bc3e0f9f..e2a556c4f 100644 --- a/config/config.go +++ b/config/config.go @@ -52,6 +52,7 @@ type Config struct { PoliciesConfig pcConfig.PoliciesConfig `json:"policy,omitempty"` VerifiersConfig vfConfig.VerifiersConfig `json:"verifier,omitempty"` ExecutorConfig exConfig.ExecutorConfig `json:"executor,omitempty"` + CRLConfig CRLConfig `json:"crl,omitempty"` LoggerConfig logger.Config `json:"logger,omitempty"` fileHash string `json:"-"` } diff --git a/config/config.json b/config/config.json index 21facc6b1..c71a2f38e 100644 --- a/config/config.json +++ b/config/config.json @@ -68,5 +68,8 @@ "denylistCVEs": ["CVE-2021-44228"] } ] + }, + "crl": { + "cacheEnabled" : true } } diff --git a/config/config_cli.json b/config/config_cli.json index 04170bf07..5fbbffd36 100644 --- a/config/config_cli.json +++ b/config/config_cli.json @@ -51,5 +51,8 @@ } } ] + }, + "crl": { + "cacheEnabled" : true } } \ No newline at end of file diff --git a/config/crl_config.go b/config/crl_config.go new file mode 100644 index 000000000..6544dde34 --- /dev/null +++ b/config/crl_config.go @@ -0,0 +1,20 @@ +/* +Copyright The Ratify Authors. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package config + +type CRLConfig struct { + CacheEnabled bool `json:"cache_enabled,omitempty"` +}