From 78169535c2e5b76c53bcab540e74f067e4de0f8e Mon Sep 17 00:00:00 2001 From: Juncheng Zhu Date: Wed, 20 Nov 2024 07:49:10 +0000 Subject: [PATCH] feat: update kmp crds Signed-off-by: Juncheng Zhu --- .../azurekeyvault/provider.go | 1 + .../config/crl_config.go | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 pkg/keymanagementprovider/config/crl_config.go diff --git a/pkg/keymanagementprovider/azurekeyvault/provider.go b/pkg/keymanagementprovider/azurekeyvault/provider.go index 22c3fba6a..c09ef764e 100644 --- a/pkg/keymanagementprovider/azurekeyvault/provider.go +++ b/pkg/keymanagementprovider/azurekeyvault/provider.go @@ -65,6 +65,7 @@ type AKVKeyManagementProviderConfig struct { Resource string `json:"resource,omitempty"` Certificates []types.KeyVaultValue `json:"certificates,omitempty"` Keys []types.KeyVaultValue `json:"keys,omitempty"` + CRL config.CRLConfig `json:"crl,omitempty"` } type akvKMProvider struct { diff --git a/pkg/keymanagementprovider/config/crl_config.go b/pkg/keymanagementprovider/config/crl_config.go new file mode 100644 index 000000000..c1c9d64b3 --- /dev/null +++ b/pkg/keymanagementprovider/config/crl_config.go @@ -0,0 +1,28 @@ +/* +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 { + Type string `json:"type,omitempty"` + EnableCache bool `json:"enable_cache,omitempty"` + Refreshable bool `json:"refreshable,omitempty"` + HTTPRequest HTTPRequestConfig `json:"http_request,omitempty"` +} + +type HTTPRequestConfig struct { + Timeout int `json:"timeout,omitempty"` + RetryCount int `json:"retry_count,omitempty"` +}