Problem:
When i try to display the details from a openscap raport on the Foreman GUI, i get this error:
As I understand it, the full HTML and an XML raport is stored in the reports directory on the smart proxy (not the same server as the foreman server).
but in the reports directory is only see the file:
/usr/share/foreman-proxy/openscap/reports/arf/28d40127-59c6-4682-9a36-e3eca89e9af9/528885/1675927797/
[root@srvproxy01 1675927797]# ls -ltr
-rw-r--r-- 1 foreman-proxy foreman-proxy 1181274 9. Feb 08:29 8c381c2a21eeb7ab6d1a84c3cfc2fca9bf845422848052e3c1df55d30dd02d40
[root@srvproxy01 1675927797]# oscap info 8c381c2a21eeb7ab6d1a84c3cfc2fca9bf845422848052e3c1df55d30dd02d40
Document type: Result Data Stream
Imported: 2023-02-09T08:29:58
Asset: asset0
ARF report: xccdf1
Report request: collection1
Result ID: xccdf_org.open-scap_testresult_xccdf_org.ssgproject.content_profile_cis_server_l1
Source benchmark: #scap_org.open-scap_comp_ssg-rhel8-xccdf-1.2.xml
Source profile: xccdf_org.ssgproject.content_profile_cis_server_l1
Evaluation started: 2023-02-09T08:29:49+01:00
Evaluation finished: 2023-02-09T08:29:49+01:00
Platform CPEs:
(none)
That would explain, why the foreman GUI cant show the report. But i dont know how i can solve this Problem.
Expected outcome:
ARF report Details in the GUI.
Foreman and Proxy versions:
Foreman:
foreman.noarch 3.5.1-1.el8
ansible [core 2.14.0]
External Smart Proxy:
foreman-proxy.noarch 3.5.1-1.el8
ansible [core 2.13.3]
Other relevant data:
Openscap config on Smart Proxy:
[root@srvproxy01 settings.d]# cat openscap.yml
---
:enabled: https
# Log file for the forwarding script.
:openscap_send_log_file: /var/log/foreman-proxy/openscap-send.log
# Directory where OpenSCAP audits are stored
# before they are forwarded to Foreman
:spooldir: /var/spool/foreman-proxy/openscap
# Directory where OpenSCAP content XML are stored
# So we will not request the XML from Foreman each time
:contentdir: /var/lib/openscap/content
# Directory where OpenSCAP tailoring XML files are stored
#:tailoring_dir: /var/lib/openscap/tailoring
# Directory where OpenSCAP report XML are stored
# So Foreman can request arf xml reports
:reportsdir: /usr/share/foreman-proxy/openscap/reports
# Directory where OpenSCAP report XML are stored
# In case sending to Foreman succeeded, yet failed to save to reportsdir
:failed_dir: /usr/share/foreman-proxy/openscap/failed
# Directory where corrupted OpenSCAP report XML are stored
# When proxy cannot parse the report sent by client
:corrupted_dir: /var/lib/foreman-proxy/openscap/corrupted
# The time we wait for response after the upload request connection was established, in seconds.
# Affects sending reports to Foreman (directly and from spool) and fetching scap content or tailoring file
# for distribution to clients
:timeout: 60
# Directory where OpenSCAP OVAL content bzipped XML are stored
#:oval_content_dir: /var/lib/openscap/oval_content