Skip to content

Commit

Permalink
feat: update crl config
Browse files Browse the repository at this point in the history
Signed-off-by: Juncheng Zhu <[email protected]>
  • Loading branch information
junczhu committed Dec 18, 2024
1 parent 0837c02 commit 1cbd412
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
}
Expand Down
3 changes: 3 additions & 0 deletions config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@
"denylistCVEs": ["CVE-2021-44228"]
}
]
},
"crl": {
"cacheEnabled" : true
}
}
3 changes: 3 additions & 0 deletions config/config_cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,8 @@
}
}
]
},
"crl": {
"cacheEnabled" : true
}
}
20 changes: 20 additions & 0 deletions config/crl_config.go
Original file line number Diff line number Diff line change
@@ -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"`
}

0 comments on commit 1cbd412

Please sign in to comment.