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

[GSOC23] - B - Enable the downloading and synchronization of OVAL data #7509

Merged
merged 64 commits into from
Sep 5, 2024

Commits on Sep 5, 2024

  1. Configuration menu
    Copy the full SHA
    bae562e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01aeecb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    44ec0e4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2bd4d9 View commit details
    Browse the repository at this point in the history
  5. Add Leap 15.2 OVAL sources

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    6c3ea0e View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ddbf4d5 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    c298db7 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    a180ead View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    f97857a View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    914fb48 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    4160040 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    03c6bb1 View commit details
    Browse the repository at this point in the history
  13. Test OVAL sources

    Also, found some dead URLs so I deleted them
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    7c2f376 View commit details
    Browse the repository at this point in the history
  14. Use Leap in oval.config.json

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    51a3a47 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    529ddd7 View commit details
    Browse the repository at this point in the history
  16. Rename 'openSUSE_LEAP_MICRO' to 'LEAP_MICRO'

    - Having enums starting with a capital letter is better for consistency
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    c53980f View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    d9102ab View commit details
    Browse the repository at this point in the history
  18. Refactor and fix checkstyle

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    4e7c6da View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    ae819ba View commit details
    Browse the repository at this point in the history
  20. Remove unused methods

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    170d3af View commit details
    Browse the repository at this point in the history
  21. Refactor Server#toOVALProduct

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    7a9ac7f View commit details
    Browse the repository at this point in the history
  22. Add changelogs

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    e783046 View commit details
    Browse the repository at this point in the history
  23. Revert "Use channel data until full OVAL implementation is ready"

    This reverts commit 6c86362.
    
    It is ready!
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    4298480 View commit details
    Browse the repository at this point in the history
  24. Copyright (c) 2024

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    e96be51 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    0f13988 View commit details
    Browse the repository at this point in the history
  26. Avoid fetching all servers to detect the set of operating systems the…

    …y use
    
    - We have deployments with more than 10k systems. This would load all of them when we should have a few of different OS flavors.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    baed757 View commit details
    Browse the repository at this point in the history
  27. Log the starting and ending of the OVAL syncing task

    - Since the task runs once a day by default, using log#info instead of log#debug makes more sense.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    ddcfda1 View commit details
    Browse the repository at this point in the history
  28. Rephrase comment in OVALCleaner

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    89dc45a View commit details
    Browse the repository at this point in the history
  29. Fix typo in oval.config.json

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    00ae7c0 View commit details
    Browse the repository at this point in the history
  30. Refactor OVALDownloader

    - Also deleted OVALCompressionMethod as it is not needed anymore
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    374bb8e View commit details
    Browse the repository at this point in the history
  31. Refactor to avoid code duplication

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    8e61f4a View commit details
    Browse the repository at this point in the history
  32. Clarify comments

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    518a859 View commit details
    Browse the repository at this point in the history
  33. Increase connection and read timeouts while downloading OVAL data

    - Increased it to 15 seconds.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    17d3379 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    e57ce14 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    4f42473 View commit details
    Browse the repository at this point in the history
  36. Undo OVAL support for ubuntu

    - Support for ubuntu requires more changes and thus will be added in its own PR.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    c3c46e4 View commit details
    Browse the repository at this point in the history
  37. Extract the cve from <cve> tag in OVAL files

    - In openSUSE Leap 15.5 OVAL file, I found <cve> CVE-2018-1000155 at SUSE </cve> which resulted in an exception being thrown when OVAL data is written to the database, because of the length of the CVE (more than 20 characters).
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    954c7dd View commit details
    Browse the repository at this point in the history
  38. Display the list of data sources used to scan each client server

    - Only two possible data sources: OVAL and Channels
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    a9aa82f View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    1332260 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    c4103f0 View commit details
    Browse the repository at this point in the history
  41. Implement the check for existence of erratas in server CVE channels

    - If result is not empty, then server can be CVE audited normally otherwise a warning should be displayed indicating a lack of channels data and thus inaccuracies are expected.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    8f7e4cd View commit details
    Browse the repository at this point in the history
  42. Delete cveaudit.less

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    21c56b8 View commit details
    Browse the repository at this point in the history
  43. Remove the "Scan Data" column from the CVE audit page

    - It doesn't bring much value + UI looks quite overloaded
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    998916e View commit details
    Browse the repository at this point in the history
  44. Translate strings

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    8f66bc9 View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    f666d1b View commit details
    Browse the repository at this point in the history
  46. Configuration menu
    Copy the full SHA
    3a5dc43 View commit details
    Browse the repository at this point in the history
  47. Rephrase CVE auditing related UI messages

    Co-authored-by: Abid Mehmood <amehmood@suse.de>
    2 people authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    d9e36a4 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    1615168 View commit details
    Browse the repository at this point in the history
  49. Introduce an "unknown" patch status to be returned when OVAL and Chan…

    …nels metadata not synced
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    44ebb6e View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    1cc5f08 View commit details
    Browse the repository at this point in the history
  51. Add missing OVAL data sources

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    f96ddc0 View commit details
    Browse the repository at this point in the history
  52. Move OVAL config file to a more appropriate directory

    - The 'scc' directory is not the best place to put this json file since it is not coming from SCC.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    01567d4 View commit details
    Browse the repository at this point in the history
  53. Configuration menu
    Copy the full SHA
    27d86c7 View commit details
    Browse the repository at this point in the history
  54. Fix linter

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    18c8852 View commit details
    Browse the repository at this point in the history
  55. Frontend lint

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    c838766 View commit details
    Browse the repository at this point in the history
  56. Configuration menu
    Copy the full SHA
    0f128b7 View commit details
    Browse the repository at this point in the history
  57. Configuration menu
    Copy the full SHA
    b0d1d34 View commit details
    Browse the repository at this point in the history
  58. Configuration menu
    Copy the full SHA
    54372ea View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    9a64863 View commit details
    Browse the repository at this point in the history
  60. Fix OVAL's release package regex

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    88e06ef View commit details
    Browse the repository at this point in the history
  61. Relocate database migration script

    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    3c7637d View commit details
    Browse the repository at this point in the history
  62. Configuration menu
    Copy the full SHA
    34229c5 View commit details
    Browse the repository at this point in the history
  63. Change string#replace by string#replaceFirst

    - The former does not accept a regex.
    HoussemNasri authored and parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    81026c5 View commit details
    Browse the repository at this point in the history
  64. Move schema migration to current dir

    Signed-off-by: Pascal Arlt <parlt@suse.com>
    parlt91 committed Sep 5, 2024
    Configuration menu
    Copy the full SHA
    5855da9 View commit details
    Browse the repository at this point in the history