Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-27369

Improve the behaviour of 'hammer scap-content bulk-upload --type default' on Satellite to receive the lastest SCAP content.

XMLWordPrintable

    • Bug Fix
    • Hide
      .`hammer scap-content bulk-upload --type default` now updates previously uploaded default compliance guidelines

      Before this update, when an updated version of the default compliance guidelines was installed on the system where Satellite server was running, using the `hammer scap-content bulk-upload --type default` command did not update the guidelines on the Satellite server if the command was already used to upload a previous version of the guidelines before.
      As a consequence, Satellite in some cases did not include the latest SCAP content after `hammer scap-content bulk-upload --type default` was run.
      Now, when an updated version of the default compliance guidelines is available locally, running `hammer scap-content bulk-upload --type default` properly updates the guidelines on the Satellite server, even when the command was used to upload a previous version of the guidelines before.
      Show
      .`hammer scap-content bulk-upload --type default` now updates previously uploaded default compliance guidelines Before this update, when an updated version of the default compliance guidelines was installed on the system where Satellite server was running, using the `hammer scap-content bulk-upload --type default` command did not update the guidelines on the Satellite server if the command was already used to upload a previous version of the guidelines before. As a consequence, Satellite in some cases did not include the latest SCAP content after `hammer scap-content bulk-upload --type default` was run. Now, when an updated version of the default compliance guidelines is available locally, running `hammer scap-content bulk-upload --type default` properly updates the guidelines on the Satellite server, even when the command was used to upload a previous version of the guidelines before.
    • Done
    • Automated

      Problem Statement

       

      On Red Hat Satellite default content can be uploaded initially by using command 'hammer scap-content bulk-upload --type default'.
      Need a command to update the digest of existing policies by looking them up from /usr/share/xml/scap/ssg/content/

       

      User Experience & Workflow

      • We can keep the package 'scap-security-guide' up to date on the Satellite server to receive the latest updates.

      ~~~

      1. satellite-maintain packages update scap-security-guide
        ~~~

      After updating the package, need to perform the below steps for every SCAP content that should be updated.

      1. cd /usr/share/xml/scap/ssg/content/
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        ssg-rhel6-ds.xml  ===> For rhel-6  // Based on the ID you have to point to the release.
        ssg-rhel7-ds.xml  ===> For rhel-7
        ssg-rhel8-ds.xml  ===> For rhel-8  
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

      ~~~

      1. hammer scap-content list
      2. hammer scap-content update --scap-file /usr/share/xml/scap/ssg/content/ssg-xxxxx-ds.xml --id <ID>  // Get the ID from the previous command and replace the ID.
        ~~~
      • There seems no option to update the SCAP content to latest for all SCAP content available inside '/usr/share/xml/scap/ssg/content/'.

       

      Requirements

      The requirement is to improve the behavior of 'hammer scap-content bulk-upload --type default'  or to have a bulk-update option that can update the digest of existing policies by looking them up from /usr/share/xml/scap/ssg/content/

       

      Business Impact

      There is no specific command to update SCAP content for every SCAP content available.

          There are no Sub-Tasks for this issue.

              ofedoren@redhat.com Oleh Fedorenko
              rhn-support-mkushwah Mohit Kushwah
              Lukas Hellebrandt Lukas Hellebrandt
              Aneta Šteflová Petrová Aneta Šteflová Petrová
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: