csaf_distribution
csaf_distribution copied to clipboard
Improve message on empty ROLIE feeds
Currently (v2.2.1-95-ga65fead
) the following output is produced when requesting a CSAF provider with only one empty feed:
Requirement 15: ROLIE feed (failed)
- WARN: No entries in https://example.test/.well-known/csaf/white/csaf-feed-tlp-white.json
- ERROR: One ROLIE feed with a TLP:WHITE, TLP:GREEN or unlabeled tlp must exist, but none were found.
It is correctly evaluated as valid
, but the ERROR
seems to be misleading...
The code is in https://github.com/csaf-poc/csaf_distribution/blob/824079899e1b99695b2620c5b65f724862309697/cmd/csaf_checker/roliecheck.go#L359-L363 and above