Open cipherboy opened 3 years ago
@cipherboy the content
tag is for problems related to the security content rather than the scanner itself. As far as I can see it is not the case here.
Also, is it still the same for 1.3.x
?
Great idea!
The only thing mildly related in the XSL is here (as far as I can tell, it is a different field though): https://github.com/OpenSCAP/openscap/blob/maint-1.3/xsl/xccdf-report-impl.xsl#L825-L833
I think that's a different thing because it matches a remark
element inside override
element but you want remark
element inside select
element.
Also, is it still the same for 1.3.x?
It most likely is, we haven't added it in 1.3.x.
@evgenyz said:
@cipherboy the
content
tag is for problems related to the security content rather than the scanner itself. As far as I can see it is not the case here.
Aha, ty :) I've gone ahead and updated the label's description.
@cipherboy The PR has been merged. Can this be closed?
@jan-cerny I was debating that as well.
IIRC we only merged the portion of this related to the scan results. You mentioned on the PR:
- It would be nice to have the same feature also in HTML guide.
- I think it can be useful to enable it also for tailoring files.
The latter I think will sit open longer and be a different RFE (since it is harder), but it might be nice to see 1 addressed before closing this. Thoughts?
@cipherboy I can look into opening a new PR addressing your first point this week.
The latter I think will sit open longer and be a different RFE (since it is harder), but it might be nice to see 1 addressed before closing this. Thoughts?
I agree.
Description of Problem:
I was discussing how to add commentary to a tailoring file the other day on
#openscap
. I suggested adding aremark
under theselect
element of aprofile
. However:OpenSCAP doesn't display the
<xccdf:remark />
child of a<xccdf:select />
inside a<xccdf:Profile />
in the corresponding HTML report.This is allowed by the standard -- pdf page 43, noted as page 36.
Take for instance this DS:
This eventually gets rendered into a results.xml like the following:
And a HTML report like follows:
However, it doesn't appear to do anything after that.
OpenSCAP Version:
Right now on 20.04:
Operating System & Version:
Steps to Reproduce:
Actual Results:
Expected the remark to be visible somewhere.
Expected Results:
Not presently visible.
Additional information
I see some tests cases like
tests/nist/R3005/r3005-datastream-01.xml
include remarks, but as far as I can tell, no test cases check HTML output for it.The only thing mildly related in the XSL is here (as far as I can tell, it is a different field though): https://github.com/OpenSCAP/openscap/blob/maint-1.3/xsl/xccdf-report-impl.xsl#L825-L833
Maybe I'm barking up the wrong tree though. :-)