mirror of
https://github.com/gocsaf/csaf.git
synced 2025-12-22 05:40:11 +01:00
Add support for remote validation services. (#185)
* Simple tool to test the remote validation * Added remote validator support to provider. * Added remote validation to aggregator. * Calm golint * Removed csaf_remote_validator tool as it was only for dev. * Re-added csaf_remote_validator tool. Testing is not done. * Embed the document entirely * Include testing the remote validator in the Itests * Change permission of the script * Remove code for Itests * As these will be done in another branch Co-authored-by: Fadi Abbud <fadi.abbud@intevation.de>
This commit is contained in:
parent
7cbbb4bf81
commit
78d8b89aca
16 changed files with 466 additions and 43 deletions
|
|
@ -40,21 +40,22 @@ type providerMetadataConfig struct {
|
|||
|
||||
// configs contains the config values for the provider.
|
||||
type config struct {
|
||||
Password *string `toml:"password"`
|
||||
OpenPGPPublicKey string `toml:"openpgp_public_key"`
|
||||
OpenPGPPrivateKey string `toml:"openpgp_private_key"`
|
||||
Folder string `toml:"folder"`
|
||||
Web string `toml:"web"`
|
||||
TLPs []tlp `toml:"tlps"`
|
||||
UploadSignature bool `toml:"upload_signature"`
|
||||
CanonicalURLPrefix string `toml:"canonical_url_prefix"`
|
||||
NoPassphrase bool `toml:"no_passphrase"`
|
||||
NoValidation bool `toml:"no_validation"`
|
||||
NoWebUI bool `toml:"no_web_ui"`
|
||||
DynamicProviderMetaData bool `toml:"dynamic_provider_metadata"`
|
||||
ProviderMetaData *providerMetadataConfig `toml:"provider_metadata"`
|
||||
UploadLimit *int64 `toml:"upload_limit"`
|
||||
Issuer *string `toml:"issuer"`
|
||||
Password *string `toml:"password"`
|
||||
OpenPGPPublicKey string `toml:"openpgp_public_key"`
|
||||
OpenPGPPrivateKey string `toml:"openpgp_private_key"`
|
||||
Folder string `toml:"folder"`
|
||||
Web string `toml:"web"`
|
||||
TLPs []tlp `toml:"tlps"`
|
||||
UploadSignature bool `toml:"upload_signature"`
|
||||
CanonicalURLPrefix string `toml:"canonical_url_prefix"`
|
||||
NoPassphrase bool `toml:"no_passphrase"`
|
||||
NoValidation bool `toml:"no_validation"`
|
||||
NoWebUI bool `toml:"no_web_ui"`
|
||||
DynamicProviderMetaData bool `toml:"dynamic_provider_metadata"`
|
||||
ProviderMetaData *providerMetadataConfig `toml:"provider_metadata"`
|
||||
UploadLimit *int64 `toml:"upload_limit"`
|
||||
Issuer *string `toml:"issuer"`
|
||||
RemoteValidator *csaf.RemoteValidatorOptions `toml:"remote_validator"`
|
||||
}
|
||||
|
||||
func (pmdc *providerMetadataConfig) apply(pmd *csaf.ProviderMetadata) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue