Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Debian OVAL URL for offline update #6430

Merged
merged 1 commit into from
Sep 4, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,30 +62,30 @@ Currently, the module fetches the Debian vulnerabilities from two different sour
- JSON feed with global information about the affected packages for each distribution.

.. note::

Both sources are necessary for the proper functioning of the scanner. Below are the steps to configure each source for the offline update.

Debian OVAL feed
^^^^^^^^^^^^^^^^

To perform an offline update of Debian OVAL feeds, you must download the appropriate files.

+------------+-------------------------------------------------------------------------------------------------------+
| OS | Files |
+============+=======================================================================================================+
| Bullseye | `oval-definitions-bullseye.xml <https://www.debian.org/security/oval/oval-definitions-bullseye.xml>`_ |
+------------+-------------------------------------------------------------------------------------------------------+
| Buster | `oval-definitions-buster.xml <https://www.debian.org/security/oval/oval-definitions-buster.xml>`_ |
+------------+-------------------------------------------------------------------------------------------------------+
+------------+---------------------------------------------------------------------------------------------------------------+
| OS | Files |
+============+===============================================================================================================+
| Bullseye | `oval-definitions-bullseye.xml.bz2 <https://www.debian.org/security/oval/oval-definitions-bullseye.xml.bz2>`_ |
+------------+---------------------------------------------------------------------------------------------------------------+
| Buster | `oval-definitions-buster.xml.bz2 <https://www.debian.org/security/oval/oval-definitions-buster.xml.bz2>`_ |
+------------+---------------------------------------------------------------------------------------------------------------+

To update the vulnerability feed from a user-defined repository, use a configuration similar to the following.

.. code-block:: xml

<provider name="debian">
<enabled>yes</enabled>
<os url="http://local_repo/oval-definitions-bullseye.xml">bullseye</os>
<os url="http://local_repo/oval-definitions-buster.xml">buster</os>
<os url="http://local_repo/oval-definitions-bullseye.xml.bz2">bullseye</os>
<os url="http://local_repo/oval-definitions-buster.xml.bz2">buster</os>
<update_interval>1h</update_interval>
</provider>

Expand All @@ -95,8 +95,8 @@ To use a local feed file, add the ``path`` attribute accompanying the ``os`` opt

<provider name="debian">
<enabled>yes</enabled>
<os path="/local_path/oval-definitions-bullseye.xml">bullseye</os>
<os path="/local_path/oval-definitions-buster.xml">buster</os>
<os path="/local_path/oval-definitions-bullseye.xml.bz2">bullseye</os>
<os path="/local_path/oval-definitions-buster.xml.bz2">buster</os>
<update_interval>1h</update_interval>
</provider>

Expand Down Expand Up @@ -430,8 +430,8 @@ Sample Configuration
<!-- Debian OS vulnerabilities -->
<provider name="debian">
<enabled>yes</enabled>
<os path="/local_path/oval-definitions-bullseye.xml">bullseye</os>
<os path="/local_path/oval-definitions-buster.xml">buster</os>
<os path="/local_path/oval-definitions-bullseye.xml.bz2">bullseye</os>
<os path="/local_path/oval-definitions-buster.xml.bz2">buster</os>
<path>/local_path/security_tracker_local.json</path>
<update_interval>1h</update_interval>
</provider>
Expand Down