csaf_distribution icon indicating copy to clipboard operation
csaf_distribution copied to clipboard

Improve message on empty ROLIE feeds

Open tschmidtb51 opened this issue 1 year ago • 1 comments

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...

tschmidtb51 avatar Aug 18 '23 22:08 tschmidtb51

The code is in https://github.com/csaf-poc/csaf_distribution/blob/824079899e1b99695b2620c5b65f724862309697/cmd/csaf_checker/roliecheck.go#L359-L363 and above

tschmidtb51 avatar Aug 18 '23 22:08 tschmidtb51