Bug 2176122

Summary: Default RHEL9 SCAP content does not get populated on the Satellite
Product: Red Hat Satellite Reporter: Gaurav Talreja <gtalreja>
Component: SCAP PluginAssignee: satellite6-bugs <satellite6-bugs>
Status: NEW --- QA Contact: visawant
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.13.0CC: mhulan, zuansorg
Target Milestone: UnspecifiedKeywords: Reopened
Target Release: UnusedFlags: mhulan: needinfo? (gtalreja)
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-04-03 13:27:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2226766    

Description Gaurav Talreja 2023-03-07 12:52:37 UTC
Description of problem:


Version-Release number of selected component (if applicable):
Satellite 6.13.0 Snap 13.0

How reproducible:


Steps to Reproduce:
1. # hammer scap-content list
---|---------------------------------|-----------------------------------------------------------------
ID | TITLE                           | DIGEST
---|---------------------------------|-----------------------------------------------------------------
1  | Red Hat firefox default content | 654f841b9386f771d3999f855f28bfed01e2be4036774103e822950c1e4230aa
2  | Red Hat rhel6 default content   | 6298742afc45309f86ac467c0c9a3e433ff505dd3d237dd8cbf72be1a02937bb
3  | Red Hat rhel7 default content   | 96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d
4  | Red Hat rhel8 default content   | b7772a4001f865517e30762c406dee80fdab2100ecc010f4408519a979665f6e
---|---------------------------------|-----------------------------------------------------------------


Actual results:
No RHEL9 SCAP default content is available

Expected results:
RHEL9 SCAP default content is available

Additional info:

Comment 1 Marek Hulan 2023-03-07 13:54:25 UTC
Hi, is it present in the scap-security-guide package on RHEL 8? Note that we only take content from that RPM and I wouldn't expect RHEL 9 content in RHEL 8. If you have RHEL 9 machine around, get the DS file from there and upload it to Satellite as a new SCAP content. It should auto-populate when Satellite is ported to RHEL 9.

Comment 3 Marek Hulan 2023-03-09 10:57:35 UTC
You need to get the rhel 9 content from the rhel 9 scap-security-guide.  I'd recommend closing this as not a bug, do you agree?

Comment 4 Gaurav Talreja 2023-03-28 12:10:05 UTC
Hi, 

I tried on the 6.10.7.2 release which was completely on rhel7, but we had rhel6 and rhel8 contents as defaults there, so not sure if this is specific to the OS release of Satellite and I thought it is for the supported content hosts, correct me, please?

# rpm -qa | grep scap-security-guide
scap-security-guide-0.1.63-1.el7_9.noarch

#  ls /usr/share/xml/scap/ssg/content/
ssg-firefox-cpe-dictionary.xml  ssg-jre-ds-1.2.xml            ssg-rhel6-ocil.xml            ssg-rhel7-xccdf.xml
ssg-firefox-cpe-oval.xml        ssg-jre-ds.xml                ssg-rhel6-oval.xml            ssg-rhel8-cpe-dictionary.xml
ssg-firefox-ds-1.2.xml          ssg-jre-ocil.xml              ssg-rhel6-xccdf.xml           ssg-rhel8-cpe-oval.xml
ssg-firefox-ds.xml              ssg-jre-oval.xml              ssg-rhel7-cpe-dictionary.xml  ssg-rhel8-ds-1.2.xml
ssg-firefox-ocil.xml            ssg-jre-xccdf.xml             ssg-rhel7-cpe-oval.xml        ssg-rhel8-ds.xml
ssg-firefox-oval.xml            ssg-rhel6-cpe-dictionary.xml  ssg-rhel7-ds-1.2.xml          ssg-rhel8-ocil.xml
ssg-firefox-xccdf.xml           ssg-rhel6-cpe-oval.xml        ssg-rhel7-ds.xml              ssg-rhel8-oval.xml
ssg-jre-cpe-dictionary.xml      ssg-rhel6-ds-1.2.xml          ssg-rhel7-ocil.xml            ssg-rhel8-xccdf.xml
ssg-jre-cpe-oval.xml            ssg-rhel6-ds.xml              ssg-rhel7-oval.xml

# hammer scap-content list
---|---------------------------------|-----------------------------------------------------------------
ID | TITLE                           | DIGEST
---|---------------------------------|-----------------------------------------------------------------
1  | Red Hat firefox default content | 654f841b9386f771d3999f855f28bfed01e2be4036774103e822950c1e4230aa
2  | Red Hat jre default content     | fe93f99c14251cc76e92b9da71c351c8ba45fbd3639a2cd55911ef6f7db1b650
3  | Red Hat rhel6 default content   | 6298742afc45309f86ac467c0c9a3e433ff505dd3d237dd8cbf72be1a02937bb
4  | Red Hat rhel7 default content   | 96c2a9d5278d5da905221bbb2dc61d0ace7ee3d97f021fccac994d26296d986d
5  | Red Hat rhel8 default content   | b7772a4001f865517e30762c406dee80fdab2100ecc010f4408519a979665f6e
---|---------------------------------|-----------------------------------------------------------------


And, btw, there is a recent PR I found and missed including earlier in the description, that introduces rhel9 profiles https://github.com/ComplianceAsCode/content/pull/10091/, not sure if it's packaged in a scap-security-guide package for RHEL/Satellite?


Thanks, 
Gaurav

Comment 5 Brad Buckingham 2023-03-30 14:23:43 UTC
Marek,

Based upon the feedback in comment 4, would this still be considered notabug?

I assume so, if it is a case of the mentioned PR being needed to include the rhel9 profile.

Thanks!

Comment 6 Marek Hulan 2023-03-30 18:12:24 UTC
We know scap-security-guide package contains also content for other RHEL version, but based on the OpenSCAP team response, this is not supported combination. For RHEL 8, one needs to get the content from RHEL8's scap-security-guide, similarly for 7 and 9.

Therefore, I think we should close this as not a bug.

Comment 7 Brad Buckingham 2023-04-03 13:27:57 UTC
Thanks Marek.

Closing based upon comment 6.