patchman 4.0.19__tar.gz → 4.0.20__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {patchman-4.0.19 → patchman-4.0.20}/PKG-INFO +1 -1
- patchman-4.0.20/VERSION.txt +1 -0
- patchman-4.0.20/errata/migrations/0010_synopsis_textfield.py +18 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/models.py +1 -1
- patchman-4.0.20/hosts/migrations/0013_alter_hostrepo_unique_together_and_more.py +21 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/models.py +6 -1
- patchman-4.0.20/modules/migrations/0007_alter_module_unique_together_module_unique_module.py +21 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/models.py +6 -1
- patchman-4.0.20/operatingsystems/migrations/0012_alter_osrelease_unique_together_and_more.py +21 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/models.py +6 -1
- patchman-4.0.20/packages/migrations/0008_alter_package_unique_together_and_more.py +29 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/models.py +12 -2
- {patchman-4.0.19 → patchman-4.0.20}/patchman/settings.py +0 -1
- {patchman-4.0.19 → patchman-4.0.20}/patchman/urls.py +1 -2
- {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/PKG-INFO +1 -1
- {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/SOURCES.txt +6 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_parsing.py +31 -31
- {patchman-4.0.19 → patchman-4.0.20}/reports/utils.py +13 -7
- {patchman-4.0.19 → patchman-4.0.20}/reports/views.py +3 -3
- {patchman-4.0.19 → patchman-4.0.20}/repos/utils.py +3 -0
- patchman-4.0.20/security/migrations/0011_alter_cvss_unique_together_and_more.py +29 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/models.py +12 -2
- {patchman-4.0.19 → patchman-4.0.20}/security/tests/test_models.py +2 -4
- {patchman-4.0.19 → patchman-4.0.20}/util/__init__.py +18 -9
- {patchman-4.0.19 → patchman-4.0.20}/util/context_processors.py +4 -4
- {patchman-4.0.19 → patchman-4.0.20}/util/filterspecs.py +2 -1
- patchman-4.0.19/VERSION.txt +0 -1
- {patchman-4.0.19 → patchman-4.0.20}/AUTHORS +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/COPYING +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/INSTALL.md +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/MANIFEST.in +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/README.md +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/0002_alter_machinearchitecture_options_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/arch/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/0002_alter_domain_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/domains/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0002_alter_erratumreference_unique_together.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0003_delete_erratumreference_alter_erratum_references.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0004_rename_packages_erratum_fixed_packages.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0005_erratum_affected_packages_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0006_alter_erratum_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0007_alter_erratum_fixed_packages.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0008_add_cached_count_fields.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/0009_backfill_cached_counts.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/signals.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/alma.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/arch.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/centos.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/debian.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/rocky.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/distros/ubuntu.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/repos/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/sources/repos/yum.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/templates/errata/erratum_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/templates/errata/erratum_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_integration.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/errata/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/apache.conf.example +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/celery.conf +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/etc/patchman/local_settings.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/etc/systemd/system/patchman-celery-beat.service +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/etc/systemd/system/patchman-celery-worker@.service +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/forms.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0002_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0003_host_modules.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0004_remove_host_tags_host_tags.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0005_rename_os_host_osvariant.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0006_migrate_to_tz_aware.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0007_alter_host_tags.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0008_alter_host_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0009_host_errata.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0010_alter_hostrepo_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0011_host_bug_updates_count_host_errata_count_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/0012_backfill_cached_counts.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/signals.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_edit.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templates/hosts/host_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templatetags/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/templatetags/report_alert.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_find_updates.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/hosts/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0002_auto_20240204_2214.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0003_alter_module_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0004_alter_module_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0005_alter_module_unique_together.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/0006_alter_module_context_alter_module_name_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/templates/modules/module_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/templates/modules/module_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/modules/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/fixtures/os.json +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/fixtures/osgroup.json +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/forms.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0002_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0003_os_arch.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0003_osgroup_codename.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0004_alter_osgroup_unique_together.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0006_osrelease_cpe_name_osvariant_codename.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0007_alter_osrelease_unique_together.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0008_alter_osrelease_options_alter_osvariant_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0009_osvariant_hosts_count.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0010_backfill_osvariant_counts.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/signals.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/os_landing.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osrelease_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_delete_multiple.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/templates/operatingsystems/osvariant_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/operatingsystems/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0002_auto_20250207_1319.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0002_delete_erratum_delete_erratumreference.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0003_auto_20250207_1746.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0004_alter_package_options_alter_packagecategory_options_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0005_alter_package_packagetype.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0006_alter_packageupdate_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/0007_alter_package_epoch_alter_package_release_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_name_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_name_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/templates/packages/package_update_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_version_compare.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/tests/test_views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/packages/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/celery.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/receivers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/signals.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/sqlite3/base.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/static/css/base.css +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/static/js/expandable-text.js +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/static/js/sidebar.js +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman/wsgi.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/dependency_links.txt +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/requires.txt +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/patchman.egg-info/top_level.txt +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0002_report_modules.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0003_remove_report_accessed.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0004_migrate_to_tz_aware.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/0005_alter_report_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report.txt +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/templates/reports/report_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_edge_cases.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_integration.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/tests/test_utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/reports/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/forms.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0002_alter_repository_repotype.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0003_migrate_to_tz_aware.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0004_rename_file_checksum_mirror_package_checksum.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0005_rename_package_checksum_mirror_packages_checksum.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0006_mirror_errata_checksum_mirror_modules_checksum.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0008_mirror_packages_count.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/0009_backfill_mirror_counts.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/arch.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/deb.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/gentoo.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/rpm.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/yast.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/repo_types/yum.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/signals.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_edit.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/mirror_with_repo_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_delete.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_edit.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templates/repos/repo_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/templatetags/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_mirror_sync.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_models.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/tests/test_views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/repos/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/requirements.txt +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman-manage +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/sbin/patchman-set-secret-key +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/scripts/clear-django-logs.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/scripts/create_graph.sh +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/scripts/rpm-install.sh +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/scripts/rpm-post-install.sh +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/admin.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/managers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0001_initial.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0002_alter_cve_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0003_alter_cve_description_alter_cwe_description.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0004_alter_cve_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0005_reference_cve_references.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0006_alter_cve_options_alter_cvss_unique_together.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0007_remove_cve_title.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0008_alter_cwe_options_alter_reference_options.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/0010_fix_cvss_vector_string_length.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/migrations/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/serializers.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cve_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cve_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cwe_detail.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/cwe_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/reference_list.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/templates/security/security_landing.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/tests/test_api.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/security/views.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/setup.cfg +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/setup.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/apps.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/logging.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/management/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/create_api_key.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/list_api_keys.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/management/commands/revoke_api_key.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/tables.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/tasks.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/404.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/500.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/base.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/bulk_actions.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/dashboard.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/navbar.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/objectlist.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/registration/login.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/searchbar.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templates/table.html +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templatetags/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/templatetags/common.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/tests/__init__.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/tests/test_commands.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/tests/test_utils.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/urls.py +0 -0
- {patchman-4.0.19 → patchman-4.0.20}/util/views.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.0.20
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-05-02 03:49
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('errata', '0009_backfill_cached_counts'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterField(
|
|
14
|
+
model_name='erratum',
|
|
15
|
+
name='synopsis',
|
|
16
|
+
field=models.TextField(),
|
|
17
|
+
),
|
|
18
|
+
]
|
|
@@ -33,7 +33,7 @@ class Erratum(models.Model):
|
|
|
33
33
|
name = models.CharField(max_length=255, unique=True)
|
|
34
34
|
e_type = models.CharField(max_length=255)
|
|
35
35
|
issue_date = models.DateTimeField()
|
|
36
|
-
synopsis = models.
|
|
36
|
+
synopsis = models.TextField()
|
|
37
37
|
affected_packages = models.ManyToManyField(Package, blank=True, related_name='affected_by_erratum')
|
|
38
38
|
fixed_packages = models.ManyToManyField(Package, blank=True, related_name='provides_fix_in_erratum')
|
|
39
39
|
from operatingsystems.models import OSRelease
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-04-01 03:15
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('hosts', '0012_backfill_cached_counts'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterUniqueTogether(
|
|
14
|
+
name='hostrepo',
|
|
15
|
+
unique_together=set(),
|
|
16
|
+
),
|
|
17
|
+
migrations.AddConstraint(
|
|
18
|
+
model_name='hostrepo',
|
|
19
|
+
constraint=models.UniqueConstraint(fields=('host', 'repo'), name='unique_hostrepo'),
|
|
20
|
+
),
|
|
21
|
+
]
|
|
@@ -649,7 +649,12 @@ class HostRepo(models.Model):
|
|
|
649
649
|
priority = models.IntegerField(default=0)
|
|
650
650
|
|
|
651
651
|
class Meta:
|
|
652
|
-
|
|
652
|
+
constraints = [
|
|
653
|
+
models.UniqueConstraint(
|
|
654
|
+
fields=['host', 'repo'],
|
|
655
|
+
name='unique_hostrepo',
|
|
656
|
+
),
|
|
657
|
+
]
|
|
653
658
|
ordering = ['host', 'repo']
|
|
654
659
|
|
|
655
660
|
def __str__(self):
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-04-01 03:15
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('modules', '0006_alter_module_context_alter_module_name_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterUniqueTogether(
|
|
14
|
+
name='module',
|
|
15
|
+
unique_together=set(),
|
|
16
|
+
),
|
|
17
|
+
migrations.AddConstraint(
|
|
18
|
+
model_name='module',
|
|
19
|
+
constraint=models.UniqueConstraint(fields=('name', 'stream', 'version', 'context', 'arch', 'repo'), name='unique_module'),
|
|
20
|
+
),
|
|
21
|
+
]
|
|
@@ -35,7 +35,12 @@ class Module(models.Model):
|
|
|
35
35
|
class Meta:
|
|
36
36
|
verbose_name = 'Module'
|
|
37
37
|
verbose_name_plural = 'Modules'
|
|
38
|
-
|
|
38
|
+
constraints = [
|
|
39
|
+
models.UniqueConstraint(
|
|
40
|
+
fields=['name', 'stream', 'version', 'context', 'arch', 'repo'],
|
|
41
|
+
name='unique_module',
|
|
42
|
+
),
|
|
43
|
+
]
|
|
39
44
|
ordering = ['name', 'stream']
|
|
40
45
|
|
|
41
46
|
def __str__(self):
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-04-01 03:15
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('operatingsystems', '0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterUniqueTogether(
|
|
14
|
+
name='osrelease',
|
|
15
|
+
unique_together=set(),
|
|
16
|
+
),
|
|
17
|
+
migrations.AddConstraint(
|
|
18
|
+
model_name='osrelease',
|
|
19
|
+
constraint=models.UniqueConstraint(fields=('name', 'codename', 'cpe_name'), name='unique_osrelease'),
|
|
20
|
+
),
|
|
21
|
+
]
|
|
@@ -35,7 +35,12 @@ class OSRelease(models.Model):
|
|
|
35
35
|
class Meta:
|
|
36
36
|
verbose_name = 'Operating System Release'
|
|
37
37
|
verbose_name_plural = 'Operating System Releases'
|
|
38
|
-
|
|
38
|
+
constraints = [
|
|
39
|
+
models.UniqueConstraint(
|
|
40
|
+
fields=['name', 'codename', 'cpe_name'],
|
|
41
|
+
name='unique_osrelease',
|
|
42
|
+
),
|
|
43
|
+
]
|
|
39
44
|
ordering = ['name']
|
|
40
45
|
|
|
41
46
|
def __str__(self):
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-04-01 03:15
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('packages', '0007_alter_package_epoch_alter_package_release_and_more'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterUniqueTogether(
|
|
14
|
+
name='package',
|
|
15
|
+
unique_together=set(),
|
|
16
|
+
),
|
|
17
|
+
migrations.AlterUniqueTogether(
|
|
18
|
+
name='packageupdate',
|
|
19
|
+
unique_together=set(),
|
|
20
|
+
),
|
|
21
|
+
migrations.AddConstraint(
|
|
22
|
+
model_name='package',
|
|
23
|
+
constraint=models.UniqueConstraint(fields=('name', 'epoch', 'version', 'release', 'arch', 'packagetype', 'category'), name='unique_package'),
|
|
24
|
+
),
|
|
25
|
+
migrations.AddConstraint(
|
|
26
|
+
model_name='packageupdate',
|
|
27
|
+
constraint=models.UniqueConstraint(fields=('oldpackage', 'newpackage', 'security'), name='unique_packageupdate'),
|
|
28
|
+
),
|
|
29
|
+
]
|
|
@@ -87,7 +87,12 @@ class Package(models.Model):
|
|
|
87
87
|
|
|
88
88
|
class Meta:
|
|
89
89
|
ordering = ['name', 'epoch', 'version', 'release', 'arch']
|
|
90
|
-
|
|
90
|
+
constraints = [
|
|
91
|
+
models.UniqueConstraint(
|
|
92
|
+
fields=['name', 'epoch', 'version', 'release', 'arch', 'packagetype', 'category'],
|
|
93
|
+
name='unique_package',
|
|
94
|
+
),
|
|
95
|
+
]
|
|
91
96
|
|
|
92
97
|
def __str__(self):
|
|
93
98
|
if self.epoch:
|
|
@@ -226,7 +231,12 @@ class PackageUpdate(models.Model):
|
|
|
226
231
|
security = models.BooleanField(default=False)
|
|
227
232
|
|
|
228
233
|
class Meta:
|
|
229
|
-
|
|
234
|
+
constraints = [
|
|
235
|
+
models.UniqueConstraint(
|
|
236
|
+
fields=['oldpackage', 'newpackage', 'security'],
|
|
237
|
+
name='unique_packageupdate',
|
|
238
|
+
),
|
|
239
|
+
]
|
|
230
240
|
ordering = ['oldpackage', 'newpackage']
|
|
231
241
|
|
|
232
242
|
def __str__(self):
|
|
@@ -16,9 +16,8 @@
|
|
|
16
16
|
# along with If not, see <http://www.gnu.org/licenses/>
|
|
17
17
|
|
|
18
18
|
from django.conf import settings
|
|
19
|
-
from django.conf.urls import handler404, handler500, include # noqa
|
|
20
19
|
from django.contrib import admin
|
|
21
|
-
from django.urls import path
|
|
20
|
+
from django.urls import include, path
|
|
22
21
|
from django.views import static
|
|
23
22
|
from rest_framework import routers
|
|
24
23
|
|
|
@@ -53,6 +53,7 @@ errata/migrations/0006_alter_erratum_options.py
|
|
|
53
53
|
errata/migrations/0007_alter_erratum_fixed_packages.py
|
|
54
54
|
errata/migrations/0008_add_cached_count_fields.py
|
|
55
55
|
errata/migrations/0009_backfill_cached_counts.py
|
|
56
|
+
errata/migrations/0010_synopsis_textfield.py
|
|
56
57
|
errata/migrations/__init__.py
|
|
57
58
|
errata/sources/__init__.py
|
|
58
59
|
errata/sources/distros/__init__.py
|
|
@@ -100,6 +101,7 @@ hosts/migrations/0009_host_errata.py
|
|
|
100
101
|
hosts/migrations/0010_alter_hostrepo_options.py
|
|
101
102
|
hosts/migrations/0011_host_bug_updates_count_host_errata_count_and_more.py
|
|
102
103
|
hosts/migrations/0012_backfill_cached_counts.py
|
|
104
|
+
hosts/migrations/0013_alter_hostrepo_unique_together_and_more.py
|
|
103
105
|
hosts/migrations/__init__.py
|
|
104
106
|
hosts/templates/hosts/host_delete.html
|
|
105
107
|
hosts/templates/hosts/host_detail.html
|
|
@@ -128,6 +130,7 @@ modules/migrations/0003_alter_module_options.py
|
|
|
128
130
|
modules/migrations/0004_alter_module_options.py
|
|
129
131
|
modules/migrations/0005_alter_module_unique_together.py
|
|
130
132
|
modules/migrations/0006_alter_module_context_alter_module_name_and_more.py
|
|
133
|
+
modules/migrations/0007_alter_module_unique_together_module_unique_module.py
|
|
131
134
|
modules/migrations/__init__.py
|
|
132
135
|
modules/templates/modules/module_detail.html
|
|
133
136
|
modules/templates/modules/module_list.html
|
|
@@ -157,6 +160,7 @@ operatingsystems/migrations/0008_alter_osrelease_options_alter_osvariant_options
|
|
|
157
160
|
operatingsystems/migrations/0009_osvariant_hosts_count.py
|
|
158
161
|
operatingsystems/migrations/0010_backfill_osvariant_counts.py
|
|
159
162
|
operatingsystems/migrations/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.py
|
|
163
|
+
operatingsystems/migrations/0012_alter_osrelease_unique_together_and_more.py
|
|
160
164
|
operatingsystems/migrations/__init__.py
|
|
161
165
|
operatingsystems/templates/operatingsystems/os_landing.html
|
|
162
166
|
operatingsystems/templates/operatingsystems/osrelease_delete.html
|
|
@@ -187,6 +191,7 @@ packages/migrations/0004_alter_package_options_alter_packagecategory_options_and
|
|
|
187
191
|
packages/migrations/0005_alter_package_packagetype.py
|
|
188
192
|
packages/migrations/0006_alter_packageupdate_options.py
|
|
189
193
|
packages/migrations/0007_alter_package_epoch_alter_package_release_and_more.py
|
|
194
|
+
packages/migrations/0008_alter_package_unique_together_and_more.py
|
|
190
195
|
packages/migrations/__init__.py
|
|
191
196
|
packages/templates/packages/package_detail.html
|
|
192
197
|
packages/templates/packages/package_list.html
|
|
@@ -317,6 +322,7 @@ security/migrations/0007_remove_cve_title.py
|
|
|
317
322
|
security/migrations/0008_alter_cwe_options_alter_reference_options.py
|
|
318
323
|
security/migrations/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.py
|
|
319
324
|
security/migrations/0010_fix_cvss_vector_string_length.py
|
|
325
|
+
security/migrations/0011_alter_cvss_unique_together_and_more.py
|
|
320
326
|
security/migrations/__init__.py
|
|
321
327
|
security/templates/security/cve_detail.html
|
|
322
328
|
security/templates/security/cve_list.html
|
|
@@ -18,7 +18,7 @@ from django.test import TestCase, override_settings
|
|
|
18
18
|
|
|
19
19
|
from packages.models import Package
|
|
20
20
|
from reports.utils import (
|
|
21
|
-
|
|
21
|
+
get_package_type, get_repo_type, parse_packages, parse_repos,
|
|
22
22
|
process_repo_text,
|
|
23
23
|
)
|
|
24
24
|
from repos.models import Repository
|
|
@@ -122,32 +122,32 @@ class ParseReposTests(TestCase):
|
|
|
122
122
|
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
123
123
|
)
|
|
124
124
|
class GetPackageTypeTests(TestCase):
|
|
125
|
-
"""Tests for
|
|
125
|
+
"""Tests for get_package_type() function."""
|
|
126
126
|
|
|
127
|
-
def
|
|
127
|
+
def testget_package_type_deb(self):
|
|
128
128
|
"""Test DEB package type detection."""
|
|
129
|
-
self.assertEqual(
|
|
130
|
-
self.assertEqual(
|
|
131
|
-
self.assertEqual(
|
|
129
|
+
self.assertEqual(get_package_type('deb'), Package.DEB)
|
|
130
|
+
self.assertEqual(get_package_type('DEB'), Package.DEB)
|
|
131
|
+
self.assertEqual(get_package_type('Deb'), Package.DEB)
|
|
132
132
|
|
|
133
|
-
def
|
|
133
|
+
def testget_package_type_rpm(self):
|
|
134
134
|
"""Test RPM package type detection."""
|
|
135
|
-
self.assertEqual(
|
|
136
|
-
self.assertEqual(
|
|
135
|
+
self.assertEqual(get_package_type('rpm'), Package.RPM)
|
|
136
|
+
self.assertEqual(get_package_type('RPM'), Package.RPM)
|
|
137
137
|
|
|
138
|
-
def
|
|
138
|
+
def testget_package_type_arch(self):
|
|
139
139
|
"""Test Arch package type detection."""
|
|
140
|
-
self.assertEqual(
|
|
140
|
+
self.assertEqual(get_package_type('arch'), Package.ARCH)
|
|
141
141
|
|
|
142
|
-
def
|
|
142
|
+
def testget_package_type_gentoo(self):
|
|
143
143
|
"""Test Gentoo package type detection."""
|
|
144
|
-
self.assertEqual(
|
|
144
|
+
self.assertEqual(get_package_type('gentoo'), Package.GENTOO)
|
|
145
145
|
|
|
146
|
-
def
|
|
146
|
+
def testget_package_type_unknown(self):
|
|
147
147
|
"""Test unknown package type returns UNKNOWN."""
|
|
148
|
-
self.assertEqual(
|
|
149
|
-
self.assertEqual(
|
|
150
|
-
self.assertEqual(
|
|
148
|
+
self.assertEqual(get_package_type(''), Package.UNKNOWN)
|
|
149
|
+
self.assertEqual(get_package_type('invalid'), Package.UNKNOWN)
|
|
150
|
+
self.assertEqual(get_package_type(None), Package.UNKNOWN)
|
|
151
151
|
|
|
152
152
|
|
|
153
153
|
@override_settings(
|
|
@@ -155,30 +155,30 @@ class GetPackageTypeTests(TestCase):
|
|
|
155
155
|
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
156
156
|
)
|
|
157
157
|
class GetRepoTypeTests(TestCase):
|
|
158
|
-
"""Tests for
|
|
158
|
+
"""Tests for get_repo_type() function."""
|
|
159
159
|
|
|
160
|
-
def
|
|
160
|
+
def testget_repo_type_deb(self):
|
|
161
161
|
"""Test DEB repo type detection."""
|
|
162
|
-
self.assertEqual(
|
|
163
|
-
self.assertEqual(
|
|
162
|
+
self.assertEqual(get_repo_type('deb'), Repository.DEB)
|
|
163
|
+
self.assertEqual(get_repo_type('DEB'), Repository.DEB)
|
|
164
164
|
|
|
165
|
-
def
|
|
165
|
+
def testget_repo_type_rpm(self):
|
|
166
166
|
"""Test RPM repo type detection."""
|
|
167
|
-
self.assertEqual(
|
|
168
|
-
self.assertEqual(
|
|
167
|
+
self.assertEqual(get_repo_type('rpm'), Repository.RPM)
|
|
168
|
+
self.assertEqual(get_repo_type('RPM'), Repository.RPM)
|
|
169
169
|
|
|
170
|
-
def
|
|
170
|
+
def testget_repo_type_arch(self):
|
|
171
171
|
"""Test Arch repo type detection."""
|
|
172
|
-
self.assertEqual(
|
|
172
|
+
self.assertEqual(get_repo_type('arch'), Repository.ARCH)
|
|
173
173
|
|
|
174
|
-
def
|
|
174
|
+
def testget_repo_type_gentoo(self):
|
|
175
175
|
"""Test Gentoo repo type detection."""
|
|
176
|
-
self.assertEqual(
|
|
176
|
+
self.assertEqual(get_repo_type('gentoo'), Repository.GENTOO)
|
|
177
177
|
|
|
178
|
-
def
|
|
178
|
+
def testget_repo_type_unknown(self):
|
|
179
179
|
"""Test unknown repo type returns None."""
|
|
180
|
-
self.assertIsNone(
|
|
181
|
-
self.assertIsNone(
|
|
180
|
+
self.assertIsNone(get_repo_type(''))
|
|
181
|
+
self.assertIsNone(get_repo_type('invalid'))
|
|
182
182
|
|
|
183
183
|
|
|
184
184
|
@override_settings(
|
|
@@ -34,7 +34,9 @@ from packages.utils import (
|
|
|
34
34
|
from patchman.signals import pbar_start, pbar_update
|
|
35
35
|
from repos.models import Mirror, MirrorPackage, Repository
|
|
36
36
|
from repos.utils import get_or_create_repo
|
|
37
|
-
from util.logging import
|
|
37
|
+
from util.logging import (
|
|
38
|
+
debug_message, error_message, info_message, warning_message,
|
|
39
|
+
)
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
def process_repos(report, host):
|
|
@@ -216,7 +218,7 @@ def parse_repos(repos_string):
|
|
|
216
218
|
return repos
|
|
217
219
|
|
|
218
220
|
|
|
219
|
-
def
|
|
221
|
+
def get_repo_type(type_str):
|
|
220
222
|
""" Convert repo type string to Repository constant
|
|
221
223
|
"""
|
|
222
224
|
type_str = type_str.lower()
|
|
@@ -242,6 +244,9 @@ def process_repo(r_type, r_name, r_id, r_priority, urls, arch):
|
|
|
242
244
|
for r_url in urls:
|
|
243
245
|
if r_type == Repository.GENTOO and r_url.startswith('rsync'):
|
|
244
246
|
r_url = 'https://api.gentoo.org/mirrors/distfiles.xml'
|
|
247
|
+
if not r_url.startswith(('http://', 'https://')):
|
|
248
|
+
warning_message(text=f'Skipping non-http(s) mirror URL: {r_url}')
|
|
249
|
+
continue
|
|
245
250
|
try:
|
|
246
251
|
mirror = Mirror.objects.get(url=r_url.strip('/'))
|
|
247
252
|
except Mirror.DoesNotExist:
|
|
@@ -259,7 +264,8 @@ def process_repo(r_type, r_name, r_id, r_priority, urls, arch):
|
|
|
259
264
|
repository.repo_id = r_id
|
|
260
265
|
|
|
261
266
|
for url in unknown:
|
|
262
|
-
|
|
267
|
+
if url.startswith(('http://', 'https://')):
|
|
268
|
+
Mirror.objects.create(repo=repository, url=url.rstrip('/'))
|
|
263
269
|
|
|
264
270
|
for mirror in Mirror.objects.filter(repo=repository).values('url'):
|
|
265
271
|
mirror_url = mirror.get('url')
|
|
@@ -364,7 +370,7 @@ def parse_packages(packages_string):
|
|
|
364
370
|
return packages
|
|
365
371
|
|
|
366
372
|
|
|
367
|
-
def
|
|
373
|
+
def get_package_type(type_str):
|
|
368
374
|
""" Convert package type string to Package constant
|
|
369
375
|
"""
|
|
370
376
|
type_str = type_str.lower() if type_str else ''
|
|
@@ -398,7 +404,7 @@ def process_package_text(pkg):
|
|
|
398
404
|
rel = pkg[3] if pkg[3] else ''
|
|
399
405
|
arch = pkg[4] if pkg[4] else 'unknown'
|
|
400
406
|
|
|
401
|
-
p_type =
|
|
407
|
+
p_type = get_package_type(pkg[5])
|
|
402
408
|
p_category = pkg[6] if p_type == Package.GENTOO and len(pkg) > 6 else None
|
|
403
409
|
p_repo = pkg[7] if p_type == Package.GENTOO and len(pkg) > 7 else None
|
|
404
410
|
|
|
@@ -413,7 +419,7 @@ def process_package_json(pkg):
|
|
|
413
419
|
ver = pkg.get('version', '')
|
|
414
420
|
rel = pkg.get('release', '')
|
|
415
421
|
arch = pkg.get('arch', 'unknown')
|
|
416
|
-
p_type =
|
|
422
|
+
p_type = get_package_type(pkg.get('type', ''))
|
|
417
423
|
p_category = pkg.get('category') if p_type == Package.GENTOO else None
|
|
418
424
|
p_repo = pkg.get('repo') if p_type == Package.GENTOO else None
|
|
419
425
|
|
|
@@ -453,7 +459,7 @@ def process_packages_json(packages_json, host):
|
|
|
453
459
|
def process_repo_json(repo, arch):
|
|
454
460
|
""" Processes a single JSON repo dict and converts to a repo object
|
|
455
461
|
"""
|
|
456
|
-
r_type =
|
|
462
|
+
r_type = get_repo_type(repo.get('type', ''))
|
|
457
463
|
if r_type is None:
|
|
458
464
|
return None, 0
|
|
459
465
|
|
|
@@ -304,8 +304,8 @@ class ReportViewSet(viewsets.ViewSet):
|
|
|
304
304
|
data = serializer.validated_data
|
|
305
305
|
|
|
306
306
|
# Extract client IP
|
|
307
|
-
x_forwarded_for = request.
|
|
308
|
-
x_real_ip = request.
|
|
307
|
+
x_forwarded_for = request.headers.get('x-forwarded-for')
|
|
308
|
+
x_real_ip = request.headers.get('x-real-ip')
|
|
309
309
|
if x_forwarded_for:
|
|
310
310
|
report_ip = x_forwarded_for.split(',')[0]
|
|
311
311
|
elif x_real_ip:
|
|
@@ -336,7 +336,7 @@ class ReportViewSet(viewsets.ViewSet):
|
|
|
336
336
|
os=data['os'],
|
|
337
337
|
report_ip=report_ip,
|
|
338
338
|
protocol='2',
|
|
339
|
-
useragent=request.
|
|
339
|
+
useragent=request.headers.get('user-agent', ''),
|
|
340
340
|
packages=json.dumps(data.get('packages', [])),
|
|
341
341
|
repos=json.dumps(data.get('repos', [])),
|
|
342
342
|
modules=json.dumps(data.get('modules', [])),
|
|
@@ -197,6 +197,9 @@ def check_for_mirrorlists(repo):
|
|
|
197
197
|
Creates MAX_MIRRORS mirrors from list if so.
|
|
198
198
|
"""
|
|
199
199
|
for mirror in repo.mirror_set.all():
|
|
200
|
+
if not mirror.url.startswith(('http://', 'https://')):
|
|
201
|
+
warning_message(text=f'Skipping non-http(s) mirror URL: {mirror.url}')
|
|
202
|
+
continue
|
|
200
203
|
mirror_urls = get_mirrorlist_urls(mirror.url)
|
|
201
204
|
if mirror_urls:
|
|
202
205
|
mirror.mirrorlist = True
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-04-01 03:15
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Migration(migrations.Migration):
|
|
7
|
+
|
|
8
|
+
dependencies = [
|
|
9
|
+
('security', '0010_fix_cvss_vector_string_length'),
|
|
10
|
+
]
|
|
11
|
+
|
|
12
|
+
operations = [
|
|
13
|
+
migrations.AlterUniqueTogether(
|
|
14
|
+
name='cvss',
|
|
15
|
+
unique_together=set(),
|
|
16
|
+
),
|
|
17
|
+
migrations.AlterUniqueTogether(
|
|
18
|
+
name='reference',
|
|
19
|
+
unique_together=set(),
|
|
20
|
+
),
|
|
21
|
+
migrations.AddConstraint(
|
|
22
|
+
model_name='cvss',
|
|
23
|
+
constraint=models.UniqueConstraint(fields=('score', 'severity', 'version', 'vector_string'), name='unique_cvss'),
|
|
24
|
+
),
|
|
25
|
+
migrations.AddConstraint(
|
|
26
|
+
model_name='reference',
|
|
27
|
+
constraint=models.UniqueConstraint(fields=('ref_type', 'url'), name='unique_reference'),
|
|
28
|
+
),
|
|
29
|
+
]
|
|
@@ -32,7 +32,12 @@ class Reference(models.Model):
|
|
|
32
32
|
url = models.URLField(max_length=512)
|
|
33
33
|
|
|
34
34
|
class Meta:
|
|
35
|
-
|
|
35
|
+
constraints = [
|
|
36
|
+
models.UniqueConstraint(
|
|
37
|
+
fields=['ref_type', 'url'],
|
|
38
|
+
name='unique_reference',
|
|
39
|
+
),
|
|
40
|
+
]
|
|
36
41
|
ordering = ['ref_type', 'url']
|
|
37
42
|
|
|
38
43
|
def __str__(self):
|
|
@@ -87,7 +92,12 @@ class CVSS(models.Model):
|
|
|
87
92
|
vector_string = models.CharField(max_length=255, blank=True, null=True)
|
|
88
93
|
|
|
89
94
|
class Meta:
|
|
90
|
-
|
|
95
|
+
constraints = [
|
|
96
|
+
models.UniqueConstraint(
|
|
97
|
+
fields=['score', 'severity', 'version', 'vector_string'],
|
|
98
|
+
name='unique_cvss',
|
|
99
|
+
),
|
|
100
|
+
]
|
|
91
101
|
|
|
92
102
|
def __str__(self):
|
|
93
103
|
return f'{self.score} ({self.severity}) [{self.vector_string}]'
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
from decimal import Decimal
|
|
18
18
|
|
|
19
|
+
from django.db import IntegrityError
|
|
19
20
|
from django.test import TestCase, override_settings
|
|
20
21
|
|
|
21
22
|
from security.models import CVE, CVSS, CWE, Reference
|
|
@@ -47,7 +48,6 @@ class CVEMethodTests(TestCase):
|
|
|
47
48
|
def test_cve_unique_id(self):
|
|
48
49
|
"""Test CVE cve_id is unique."""
|
|
49
50
|
CVE.objects.create(cve_id='CVE-2024-12345')
|
|
50
|
-
from django.db import IntegrityError
|
|
51
51
|
with self.assertRaises(IntegrityError):
|
|
52
52
|
CVE.objects.create(cve_id='CVE-2024-12345')
|
|
53
53
|
|
|
@@ -90,7 +90,6 @@ class CWEMethodTests(TestCase):
|
|
|
90
90
|
def test_cwe_unique_id(self):
|
|
91
91
|
"""Test CWE cwe_id is unique."""
|
|
92
92
|
CWE.objects.create(cwe_id='CWE-79', name='XSS')
|
|
93
|
-
from django.db import IntegrityError
|
|
94
93
|
with self.assertRaises(IntegrityError):
|
|
95
94
|
CWE.objects.create(cwe_id='CWE-79', name='Different name')
|
|
96
95
|
|
|
@@ -155,12 +154,11 @@ class ReferenceMethodTests(TestCase):
|
|
|
155
154
|
self.assertIn('example.com', str_repr)
|
|
156
155
|
|
|
157
156
|
def test_reference_unique_together(self):
|
|
158
|
-
"""Test Reference
|
|
157
|
+
"""Test Reference unique constraint."""
|
|
159
158
|
Reference.objects.create(
|
|
160
159
|
url='https://example.com/advisory',
|
|
161
160
|
ref_type='VENDOR',
|
|
162
161
|
)
|
|
163
|
-
from django.db import IntegrityError
|
|
164
162
|
with self.assertRaises(IntegrityError):
|
|
165
163
|
Reference.objects.create(
|
|
166
164
|
url='https://example.com/advisory',
|
|
@@ -121,6 +121,8 @@ def get_url(url, headers=None, params=None, session=None):
|
|
|
121
121
|
error_message(text=f'Too many redirects - {url}')
|
|
122
122
|
except ConnectionError:
|
|
123
123
|
error_message(text=f'Connection error - {url}')
|
|
124
|
+
except requests.exceptions.InvalidSchema:
|
|
125
|
+
error_message(text=f'Unsupported URL scheme - {url}')
|
|
124
126
|
return response
|
|
125
127
|
|
|
126
128
|
|
|
@@ -194,16 +196,18 @@ def unzstd(contents):
|
|
|
194
196
|
""" unzstd contents in memory and return the data
|
|
195
197
|
"""
|
|
196
198
|
try:
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
if hasattr(zstd, 'decompress'):
|
|
200
|
+
return zstd.decompress(contents)
|
|
201
|
+
return zstd.ZstdDecompressor().stream_reader(contents).read()
|
|
202
|
+
except (zstd.ZstdError, Exception) as e:
|
|
200
203
|
error_message(text=f'zstd: {e}')
|
|
201
204
|
|
|
202
205
|
|
|
203
206
|
def extract(data, fmt):
|
|
204
207
|
""" Extract the contents based on mimetype or file ending. Return the
|
|
205
208
|
unmodified data if neither mimetype nor file ending matches, otherwise
|
|
206
|
-
return the extracted contents.
|
|
209
|
+
return the extracted contents. Falls back to unmodified data if
|
|
210
|
+
decompression fails (e.g. requests already decompressed the content).
|
|
207
211
|
"""
|
|
208
212
|
try:
|
|
209
213
|
mime = magic.from_buffer(data, mime=True)
|
|
@@ -212,14 +216,19 @@ def extract(data, fmt):
|
|
|
212
216
|
m = magic.open(magic.MAGIC_MIME)
|
|
213
217
|
m.load()
|
|
214
218
|
mime = m.buffer(data).split(';')[0]
|
|
219
|
+
if mime.startswith('text/'):
|
|
220
|
+
return data
|
|
221
|
+
extracted = None
|
|
215
222
|
if mime == 'application/zstd' or fmt.endswith('zst'):
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
223
|
+
extracted = unzstd(data)
|
|
224
|
+
elif mime == 'application/x-xz' or fmt.endswith('xz'):
|
|
225
|
+
extracted = unxz(data)
|
|
219
226
|
elif mime == 'application/x-bzip2' or fmt.endswith('bz2'):
|
|
220
|
-
|
|
227
|
+
extracted = bunzip2(data)
|
|
221
228
|
elif mime == 'application/gzip' or fmt.endswith('gz'):
|
|
222
|
-
|
|
229
|
+
extracted = gunzip(data)
|
|
230
|
+
if extracted is not None:
|
|
231
|
+
return extracted
|
|
223
232
|
return data
|
|
224
233
|
|
|
225
234
|
|