patchman 4.0.22__py3-none-any.whl → 4.0.23__py3-none-any.whl
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.
Potentially problematic release.
This version of patchman might be problematic. Click here for more details.
- etc/patchman/local_settings.py +32 -0
- patchman/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/celery.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/receivers.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/settings.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/__pycache__/wsgi.cpython-315.opt-1.pyc +0 -0
- patchman/apps.py +7 -0
- patchman/arch/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/arch/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/arch/admin.py +23 -0
- patchman/arch/apps.py +22 -0
- patchman/arch/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/arch/migrations/__pycache__/0002_alter_machinearchitecture_options_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/arch/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/arch/serializers.py +31 -0
- patchman/arch/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/arch/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/arch/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/arch/tests/test_api.py +121 -0
- patchman/arch/tests/test_models.py +83 -0
- patchman/arch/utils.py +52 -0
- patchman/arch/views.py +40 -0
- patchman/compliance/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/admin.py +53 -0
- patchman/compliance/apps.py +22 -0
- patchman/compliance/migrations/0001_initial.py +82 -0
- patchman/compliance/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/models.py +119 -0
- patchman/compliance/serializers.py +58 -0
- patchman/compliance/tables.py +111 -0
- patchman/compliance/templates/compliance/compliance_host.html +76 -0
- patchman/compliance/templates/compliance/compliance_rule.html +58 -0
- patchman/compliance/templates/compliance/compliance_summary.html +58 -0
- patchman/compliance/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/tests/__pycache__/test_compliance.cpython-315.opt-1.pyc +0 -0
- patchman/compliance/tests/test_compliance.py +494 -0
- patchman/compliance/urls.py +27 -0
- patchman/compliance/utils.py +98 -0
- patchman/compliance/views.py +190 -0
- patchman/domains/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/domains/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/domains/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/domains/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/domains/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/domains/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/domains/admin.py +22 -0
- patchman/domains/apps.py +22 -0
- patchman/domains/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/domains/migrations/__pycache__/0002_alter_domain_options.cpython-315.opt-1.pyc +0 -0
- patchman/domains/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/domains/serializers.py +25 -0
- patchman/domains/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/domains/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/domains/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/domains/tests/test_api.py +83 -0
- patchman/domains/tests/test_models.py +52 -0
- patchman/domains/views.py +29 -0
- patchman/errata/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/errata/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/errata/admin.py +26 -0
- patchman/errata/apps.py +38 -0
- patchman/errata/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0003_delete_erratumreference_alter_erratum_references.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0005_erratum_affected_packages_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0006_alter_erratum_options.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0007_alter_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0008_add_cached_count_fields.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0009_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/0010_synopsis_textfield.cpython-315.opt-1.pyc +0 -0
- patchman/errata/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/models.py +171 -0
- patchman/errata/serializers.py +25 -0
- patchman/errata/signals.py +60 -0
- patchman/errata/sources/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/alma.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/centos.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/debian.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/rocky.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/__pycache__/ubuntu.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/distros/alma.py +166 -0
- patchman/errata/sources/distros/arch.py +224 -0
- patchman/errata/sources/distros/centos.py +168 -0
- patchman/errata/sources/distros/debian.py +376 -0
- patchman/errata/sources/distros/rocky.py +265 -0
- patchman/errata/sources/distros/ubuntu.py +244 -0
- patchman/errata/sources/repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/repos/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- patchman/errata/sources/repos/yum.py +249 -0
- patchman/errata/tables.py +111 -0
- patchman/errata/tasks.py +104 -0
- patchman/errata/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/errata/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/errata/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- patchman/errata/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/errata/tests/test_api.py +166 -0
- patchman/errata/tests/test_integration.py +75 -0
- patchman/errata/tests/test_models.py +260 -0
- patchman/errata/urls.py +26 -0
- patchman/errata/utils.py +127 -0
- patchman/errata/views.py +94 -0
- patchman/hosts/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/admin.py +28 -0
- patchman/hosts/apps.py +25 -0
- patchman/hosts/forms.py +42 -0
- patchman/hosts/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0003_host_modules.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0004_remove_host_tags_host_tags.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0005_rename_os_host_osvariant.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0006_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0007_alter_host_tags.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0008_alter_host_options.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0009_host_errata.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0010_alter_hostrepo_options.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0011_host_bug_updates_count_host_errata_count_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0012_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0013_alter_hostrepo_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/0014_drop_legacy_tagging.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/models.py +666 -0
- patchman/hosts/serializers.py +45 -0
- patchman/hosts/signals.py +45 -0
- patchman/hosts/tables.py +122 -0
- patchman/hosts/tasks.py +43 -0
- patchman/hosts/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/templatetags/__pycache__/report_alert.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/templatetags/report_alert.py +38 -0
- patchman/hosts/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_find_updates.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_migrations.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- patchman/hosts/tests/test_api.py +383 -0
- patchman/hosts/tests/test_find_updates.py +364 -0
- patchman/hosts/tests/test_managers.py +205 -0
- patchman/hosts/tests/test_migrations.py +99 -0
- patchman/hosts/tests/test_models.py +1025 -0
- patchman/hosts/tests/test_utils.py +91 -0
- patchman/hosts/urls.py +31 -0
- patchman/hosts/utils.py +174 -0
- patchman/hosts/views.py +394 -0
- patchman/management/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/management/__pycache__/helpers.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/clean_reports.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/create_api_key.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/create_enrollment_token.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/dbcheck.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/delete_hosts.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/diff_hosts.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/dns_checks.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/find_updates.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/list_api_keys.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/list_certificates.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/list_enrollment_tokens.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/list_hosts.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/list_repos.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/process_reports.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/refresh_repos.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/revoke_api_key.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/revoke_certificate.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/toggle_check_dns.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/toggle_host_repos_only.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/update_cves.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/__pycache__/update_errata.cpython-315.opt-1.pyc +0 -0
- patchman/management/commands/clean_reports.py +42 -0
- patchman/management/commands/create_enrollment_token.py +93 -0
- patchman/management/commands/dbcheck.py +49 -0
- patchman/management/commands/delete_hosts.py +41 -0
- patchman/management/commands/diff_hosts.py +101 -0
- patchman/management/commands/dns_checks.py +37 -0
- patchman/management/commands/find_updates.py +48 -0
- patchman/management/commands/list_certificates.py +91 -0
- patchman/management/commands/list_enrollment_tokens.py +82 -0
- patchman/management/commands/list_hosts.py +37 -0
- patchman/management/commands/list_repos.py +37 -0
- patchman/management/commands/process_reports.py +60 -0
- patchman/management/commands/refresh_repos.py +44 -0
- patchman/management/commands/revoke_certificate.py +89 -0
- patchman/management/commands/toggle_check_dns.py +49 -0
- patchman/management/commands/toggle_host_repos_only.py +49 -0
- patchman/management/commands/update_cves.py +43 -0
- patchman/management/commands/update_errata.py +66 -0
- patchman/management/helpers.py +83 -0
- patchman/modules/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/modules/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/modules/admin.py +21 -0
- patchman/modules/apps.py +22 -0
- patchman/modules/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0002_auto_20240204_2214.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0003_alter_module_options.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0004_alter_module_options.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0005_alter_module_unique_together.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0006_alter_module_context_alter_module_name_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/0007_alter_module_unique_together_module_unique_module.cpython-315.opt-1.pyc +0 -0
- patchman/modules/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/modules/models.py +50 -0
- patchman/modules/serializers.py +25 -0
- patchman/modules/tables.py +72 -0
- patchman/modules/urls.py +26 -0
- patchman/modules/utils.py +78 -0
- patchman/modules/views.py +67 -0
- patchman/operatingsystems/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/admin.py +28 -0
- patchman/operatingsystems/apps.py +25 -0
- patchman/operatingsystems/forms.py +61 -0
- patchman/operatingsystems/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0003_os_arch.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0003_osgroup_codename.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0004_alter_osgroup_unique_together.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0006_osrelease_cpe_name_osvariant_codename.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0007_alter_osrelease_unique_together.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0008_alter_osrelease_options_alter_osvariant_options.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0009_osvariant_hosts_count.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0010_backfill_osvariant_counts.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/0012_alter_osrelease_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/models.py +78 -0
- patchman/operatingsystems/serializers.py +31 -0
- patchman/operatingsystems/signals.py +56 -0
- patchman/operatingsystems/tables.py +168 -0
- patchman/operatingsystems/templates/operatingsystems/osrelease_list.html +36 -0
- patchman/operatingsystems/templates/operatingsystems/osvariant_list.html +42 -0
- patchman/operatingsystems/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/operatingsystems/tests/test_api.py +232 -0
- patchman/operatingsystems/tests/test_models.py +241 -0
- patchman/operatingsystems/urls.py +35 -0
- patchman/operatingsystems/utils.py +117 -0
- patchman/operatingsystems/views.py +412 -0
- patchman/packages/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/packages/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/packages/admin.py +33 -0
- patchman/packages/apps.py +22 -0
- patchman/packages/migrations/0009_fix_null_version_fields.py +22 -0
- patchman/packages/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0002_auto_20250207_1319.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0002_delete_erratum_delete_erratumreference.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0003_auto_20250207_1746.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0004_alter_package_options_alter_packagecategory_options_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0005_alter_package_packagetype.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0006_alter_packageupdate_options.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0007_alter_package_epoch_alter_package_release_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0008_alter_package_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/0009_fix_null_version_fields.cpython-315.opt-1.pyc +0 -0
- patchman/packages/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/packages/models.py +247 -0
- patchman/packages/serializers.py +37 -0
- patchman/packages/tables.py +217 -0
- patchman/packages/templates/packages/package_list.html +37 -0
- patchman/packages/templates/packages/package_update_list.html +37 -0
- patchman/packages/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/packages/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/packages/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/packages/tests/__pycache__/test_version_compare.cpython-315.opt-1.pyc +0 -0
- patchman/packages/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- patchman/packages/tests/test_api.py +304 -0
- patchman/packages/tests/test_models.py +202 -0
- patchman/packages/tests/test_version_compare.py +316 -0
- patchman/packages/tests/test_views.py +72 -0
- patchman/packages/urls.py +33 -0
- patchman/packages/utils.py +374 -0
- patchman/packages/views.py +434 -0
- patchman/receivers.py +1 -1
- patchman/reports/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/reports/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/reports/admin.py +27 -0
- patchman/reports/apps.py +22 -0
- patchman/reports/migrations/0007_report_compliance.py +16 -0
- patchman/reports/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0002_report_modules.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0003_remove_report_accessed.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0004_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0005_alter_report_options.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0006_alter_report_options.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/0007_report_compliance.cpython-315.opt-1.pyc +0 -0
- patchman/reports/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/reports/models.py +270 -0
- patchman/reports/serializers.py +103 -0
- patchman/reports/tables.py +114 -0
- patchman/reports/tasks.py +88 -0
- patchman/reports/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_edge_cases.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_parsing.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_serializers.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_tasks.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- patchman/reports/tests/test_api.py +325 -0
- patchman/reports/tests/test_edge_cases.py +302 -0
- patchman/reports/tests/test_integration.py +274 -0
- patchman/reports/tests/test_models.py +476 -0
- patchman/reports/tests/test_parsing.py +239 -0
- patchman/reports/tests/test_serializers.py +290 -0
- patchman/reports/tests/test_tasks.py +271 -0
- patchman/reports/tests/test_utils.py +732 -0
- patchman/reports/urls.py +31 -0
- patchman/reports/utils.py +661 -0
- patchman/reports/views.py +358 -0
- patchman/repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/repos/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/repos/admin.py +33 -0
- patchman/repos/apps.py +25 -0
- patchman/repos/forms.py +105 -0
- patchman/repos/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0002_alter_repository_repotype.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0003_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0004_rename_file_checksum_mirror_package_checksum.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0005_rename_package_checksum_mirror_packages_checksum.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0006_mirror_errata_checksum_mirror_modules_checksum.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0008_mirror_packages_count.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/0009_backfill_mirror_counts.cpython-315.opt-1.pyc +0 -0
- patchman/repos/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/repos/models.py +204 -0
- patchman/repos/repo_types/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/deb.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/gentoo.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/rpm.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/yast.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- patchman/repos/repo_types/arch.py +119 -0
- patchman/repos/repo_types/deb.py +116 -0
- patchman/repos/repo_types/gentoo.py +306 -0
- patchman/repos/repo_types/rpm.py +104 -0
- patchman/repos/repo_types/yast.py +76 -0
- patchman/repos/repo_types/yum.py +256 -0
- patchman/repos/serializers.py +38 -0
- patchman/repos/signals.py +28 -0
- patchman/repos/tables.py +165 -0
- patchman/repos/tasks.py +58 -0
- patchman/repos/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/test_mirror_sync.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- patchman/repos/tests/test_api.py +295 -0
- patchman/repos/tests/test_managers.py +170 -0
- patchman/repos/tests/test_mirror_sync.py +141 -0
- patchman/repos/tests/test_models.py +193 -0
- patchman/repos/tests/test_views.py +114 -0
- patchman/repos/urls.py +38 -0
- patchman/repos/utils.py +334 -0
- patchman/repos/views.py +692 -0
- patchman/security/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- patchman/security/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/security/admin.py +24 -0
- patchman/security/apps.py +22 -0
- patchman/security/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0002_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0003_alter_cve_description_alter_cwe_description.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0004_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0005_reference_cve_references.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0006_alter_cve_options_alter_cvss_unique_together.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0007_remove_cve_title.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0008_alter_cwe_options_alter_reference_options.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0010_fix_cvss_vector_string_length.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/0011_alter_cvss_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- patchman/security/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/security/models.py +283 -0
- patchman/security/serializers.py +38 -0
- patchman/security/tables.py +177 -0
- patchman/security/tasks.py +95 -0
- patchman/security/tests/__init__.py +0 -0
- patchman/security/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/security/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/security/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- patchman/security/tests/test_api.py +216 -0
- patchman/security/tests/test_models.py +178 -0
- patchman/security/urls.py +30 -0
- patchman/security/utils.py +170 -0
- patchman/security/views.py +176 -0
- patchman/settings.py +26 -13
- patchman/sqlite3/__pycache__/base.cpython-315.opt-1.pyc +0 -0
- patchman/urls.py +28 -18
- patchman/util/__init__.py +380 -0
- patchman/util/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/api.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/context_processors.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/filterspecs.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/logging.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/middleware.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/pki.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- patchman/util/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- patchman/util/api.py +240 -0
- patchman/util/apps.py +22 -0
- patchman/util/context_processors.py +173 -0
- patchman/util/middleware.py +63 -0
- patchman/util/migrations/0001_initial.py +51 -0
- patchman/util/migrations/__init__.py +1 -0
- patchman/util/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- patchman/util/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/util/models.py +120 -0
- patchman/util/pki.py +282 -0
- patchman/util/serializers.py +78 -0
- patchman/util/tasks.py +39 -0
- patchman/util/templates/dashboard.html +295 -0
- patchman/util/templates/issues.html +148 -0
- patchman/util/templates/navbar.html +59 -0
- patchman/util/templatetags/__init__.py +0 -0
- patchman/util/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/util/templatetags/__pycache__/common.cpython-315.opt-1.pyc +0 -0
- patchman/util/templatetags/common.py +143 -0
- patchman/util/tests/__init__.py +0 -0
- patchman/util/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- patchman/util/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- patchman/util/tests/__pycache__/test_commands.cpython-315.opt-1.pyc +0 -0
- patchman/util/tests/__pycache__/test_mtls.cpython-315.opt-1.pyc +0 -0
- patchman/util/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- patchman/util/tests/test_api.py +327 -0
- patchman/util/tests/test_mtls.py +402 -0
- patchman/util/tests/test_utils.py +281 -0
- patchman/util/urls.py +35 -0
- patchman/util/views.py +352 -0
- patchman-4.0.23.data/scripts/patchman +521 -0
- patchman-4.0.23.dist-info/METADATA +231 -0
- patchman-4.0.23.dist-info/RECORD +738 -0
- patchman-4.0.23.dist-info/top_level.txt +1 -0
- arch/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- arch/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- arch/admin.py +0 -23
- arch/apps.py +0 -21
- arch/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- arch/migrations/__pycache__/0002_alter_machinearchitecture_options_and_more.cpython-315.opt-1.pyc +0 -0
- arch/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/serializers.py +0 -31
- arch/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- arch/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- arch/tests/test_api.py +0 -121
- arch/tests/test_models.py +0 -83
- arch/utils.py +0 -52
- arch/views.py +0 -40
- domains/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- domains/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- domains/admin.py +0 -22
- domains/apps.py +0 -21
- domains/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- domains/migrations/__pycache__/0002_alter_domain_options.cpython-315.opt-1.pyc +0 -0
- domains/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/serializers.py +0 -25
- domains/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- domains/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- domains/tests/test_api.py +0 -83
- domains/tests/test_models.py +0 -52
- domains/views.py +0 -29
- errata/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- errata/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- errata/admin.py +0 -26
- errata/apps.py +0 -37
- errata/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0002_alter_erratumreference_unique_together.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0003_delete_erratumreference_alter_erratum_references.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0004_rename_packages_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0005_erratum_affected_packages_and_more.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0006_alter_erratum_options.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0007_alter_erratum_fixed_packages.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0008_add_cached_count_fields.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0009_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/0010_synopsis_textfield.cpython-315.opt-1.pyc +0 -0
- errata/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/models.py +0 -171
- errata/serializers.py +0 -25
- errata/signals.py +0 -60
- errata/sources/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/alma.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/centos.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/debian.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/rocky.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/__pycache__/ubuntu.cpython-315.opt-1.pyc +0 -0
- errata/sources/distros/alma.py +0 -166
- errata/sources/distros/arch.py +0 -224
- errata/sources/distros/centos.py +0 -164
- errata/sources/distros/debian.py +0 -373
- errata/sources/distros/rocky.py +0 -265
- errata/sources/distros/ubuntu.py +0 -243
- errata/sources/repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/sources/repos/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- errata/sources/repos/yum.py +0 -250
- errata/tables.py +0 -111
- errata/tasks.py +0 -104
- errata/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- errata/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- errata/tests/test_api.py +0 -166
- errata/tests/test_integration.py +0 -75
- errata/tests/test_models.py +0 -260
- errata/urls.py +0 -26
- errata/utils.py +0 -127
- errata/views.py +0 -94
- hosts/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- hosts/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- hosts/admin.py +0 -28
- hosts/apps.py +0 -24
- hosts/forms.py +0 -42
- hosts/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0003_host_modules.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0004_remove_host_tags_host_tags.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0005_rename_os_host_osvariant.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0006_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0007_alter_host_tags.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0008_alter_host_options.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0009_host_errata.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0010_alter_hostrepo_options.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0011_host_bug_updates_count_host_errata_count_and_more.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0012_backfill_cached_counts.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0013_alter_hostrepo_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/0014_drop_legacy_tagging.cpython-315.opt-1.pyc +0 -0
- hosts/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/models.py +0 -666
- hosts/serializers.py +0 -45
- hosts/signals.py +0 -45
- hosts/tables.py +0 -122
- hosts/tasks.py +0 -43
- hosts/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/templatetags/__pycache__/report_alert.cpython-315.opt-1.pyc +0 -0
- hosts/templatetags/report_alert.py +0 -38
- hosts/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_find_updates.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_migrations.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- hosts/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- hosts/tests/test_api.py +0 -383
- hosts/tests/test_find_updates.py +0 -364
- hosts/tests/test_managers.py +0 -205
- hosts/tests/test_migrations.py +0 -99
- hosts/tests/test_models.py +0 -1025
- hosts/tests/test_utils.py +0 -91
- hosts/urls.py +0 -31
- hosts/utils.py +0 -174
- hosts/views.py +0 -310
- modules/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- modules/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- modules/admin.py +0 -21
- modules/apps.py +0 -21
- modules/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0002_auto_20240204_2214.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0003_alter_module_options.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0004_alter_module_options.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0005_alter_module_unique_together.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0006_alter_module_context_alter_module_name_and_more.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/0007_alter_module_unique_together_module_unique_module.cpython-315.opt-1.pyc +0 -0
- modules/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- modules/models.py +0 -50
- modules/serializers.py +0 -25
- modules/tables.py +0 -72
- modules/urls.py +0 -26
- modules/utils.py +0 -78
- modules/views.py +0 -67
- operatingsystems/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- operatingsystems/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- operatingsystems/admin.py +0 -28
- operatingsystems/apps.py +0 -24
- operatingsystems/forms.py +0 -61
- operatingsystems/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0002_initial.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_os_arch.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0003_osgroup_codename.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0004_alter_osgroup_unique_together.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0006_osrelease_cpe_name_osvariant_codename.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0007_alter_osrelease_unique_together.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0008_alter_osrelease_options_alter_osvariant_options.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0009_osvariant_hosts_count.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0010_backfill_osvariant_counts.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/0012_alter_osrelease_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- operatingsystems/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/models.py +0 -78
- operatingsystems/serializers.py +0 -31
- operatingsystems/signals.py +0 -56
- operatingsystems/tables.py +0 -168
- operatingsystems/templates/operatingsystems/osrelease_list.html +0 -26
- operatingsystems/templates/operatingsystems/osvariant_list.html +0 -32
- operatingsystems/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- operatingsystems/tests/test_api.py +0 -232
- operatingsystems/tests/test_models.py +0 -241
- operatingsystems/urls.py +0 -35
- operatingsystems/utils.py +0 -117
- operatingsystems/views.py +0 -361
- packages/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- packages/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- packages/admin.py +0 -33
- packages/apps.py +0 -21
- packages/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_auto_20250207_1319.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0002_delete_erratum_delete_erratumreference.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0003_auto_20250207_1746.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0004_alter_package_options_alter_packagecategory_options_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0005_alter_package_packagetype.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0006_alter_packageupdate_options.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0007_alter_package_epoch_alter_package_release_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/0008_alter_package_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- packages/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/models.py +0 -247
- packages/serializers.py +0 -37
- packages/tables.py +0 -203
- packages/templates/packages/package_list.html +0 -7
- packages/templates/packages/package_update_list.html +0 -7
- packages/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_version_compare.cpython-315.opt-1.pyc +0 -0
- packages/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- packages/tests/test_api.py +0 -304
- packages/tests/test_models.py +0 -202
- packages/tests/test_version_compare.py +0 -316
- packages/tests/test_views.py +0 -72
- packages/urls.py +0 -31
- packages/utils.py +0 -372
- packages/views.py +0 -266
- patchman-4.0.22.data/scripts/patchman +0 -521
- patchman-4.0.22.dist-info/METADATA +0 -231
- patchman-4.0.22.dist-info/RECORD +0 -646
- patchman-4.0.22.dist-info/top_level.txt +0 -12
- reports/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- reports/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- reports/admin.py +0 -27
- reports/apps.py +0 -21
- reports/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0002_report_modules.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0003_remove_report_accessed.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0004_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0005_alter_report_options.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/0006_alter_report_options.cpython-315.opt-1.pyc +0 -0
- reports/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/models.py +0 -246
- reports/serializers.py +0 -103
- reports/tables.py +0 -114
- reports/tasks.py +0 -87
- reports/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_edge_cases.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_integration.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_parsing.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_serializers.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_tasks.cpython-315.opt-1.pyc +0 -0
- reports/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- reports/tests/test_api.py +0 -325
- reports/tests/test_edge_cases.py +0 -302
- reports/tests/test_integration.py +0 -274
- reports/tests/test_models.py +0 -476
- reports/tests/test_parsing.py +0 -239
- reports/tests/test_serializers.py +0 -290
- reports/tests/test_tasks.py +0 -271
- reports/tests/test_utils.py +0 -732
- reports/urls.py +0 -31
- reports/utils.py +0 -661
- reports/views.py +0 -358
- repos/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/forms.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/signals.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- repos/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- repos/admin.py +0 -33
- repos/apps.py +0 -24
- repos/forms.py +0 -105
- repos/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0002_alter_repository_repotype.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0003_migrate_to_tz_aware.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0004_rename_file_checksum_mirror_package_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0005_rename_package_checksum_mirror_packages_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0006_mirror_errata_checksum_mirror_modules_checksum.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0008_mirror_packages_count.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/0009_backfill_mirror_counts.cpython-315.opt-1.pyc +0 -0
- repos/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/models.py +0 -204
- repos/repo_types/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/arch.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/deb.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/gentoo.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/rpm.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yast.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/__pycache__/yum.cpython-315.opt-1.pyc +0 -0
- repos/repo_types/arch.py +0 -119
- repos/repo_types/deb.py +0 -118
- repos/repo_types/gentoo.py +0 -307
- repos/repo_types/rpm.py +0 -104
- repos/repo_types/yast.py +0 -70
- repos/repo_types/yum.py +0 -257
- repos/serializers.py +0 -38
- repos/signals.py +0 -28
- repos/tables.py +0 -165
- repos/tasks.py +0 -58
- repos/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_managers.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_mirror_sync.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- repos/tests/__pycache__/test_views.cpython-315.opt-1.pyc +0 -0
- repos/tests/test_api.py +0 -295
- repos/tests/test_managers.py +0 -170
- repos/tests/test_mirror_sync.py +0 -141
- repos/tests/test_models.py +0 -193
- repos/tests/test_views.py +0 -114
- repos/urls.py +0 -38
- repos/utils.py +0 -334
- repos/views.py +0 -608
- security/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/admin.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/managers.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/models.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/serializers.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/utils.cpython-315.opt-1.pyc +0 -0
- security/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- security/admin.py +0 -24
- security/apps.py +0 -21
- security/migrations/__pycache__/0001_initial.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0002_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0003_alter_cve_description_alter_cwe_description.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0004_alter_cve_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0005_reference_cve_references.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0006_alter_cve_options_alter_cvss_unique_together.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0007_remove_cve_title.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0008_alter_cwe_options_alter_reference_options.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0010_fix_cvss_vector_string_length.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/0011_alter_cvss_unique_together_and_more.cpython-315.opt-1.pyc +0 -0
- security/migrations/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/models.py +0 -283
- security/serializers.py +0 -38
- security/tables.py +0 -177
- security/tasks.py +0 -95
- security/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- security/tests/__pycache__/test_api.cpython-315.opt-1.pyc +0 -0
- security/tests/__pycache__/test_models.cpython-315.opt-1.pyc +0 -0
- security/tests/test_api.py +0 -216
- security/tests/test_models.py +0 -178
- security/urls.py +0 -30
- security/utils.py +0 -170
- security/views.py +0 -176
- util/__init__.py +0 -355
- util/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/apps.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/context_processors.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/filterspecs.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/logging.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/tables.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/tasks.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/urls.cpython-315.opt-1.pyc +0 -0
- util/__pycache__/views.cpython-315.opt-1.pyc +0 -0
- util/apps.py +0 -21
- util/context_processors.py +0 -163
- util/management/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/create_api_key.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/list_api_keys.cpython-315.opt-1.pyc +0 -0
- util/management/commands/__pycache__/revoke_api_key.cpython-315.opt-1.pyc +0 -0
- util/tasks.py +0 -39
- util/templates/dashboard.html +0 -251
- util/templates/navbar.html +0 -57
- util/templatetags/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/templatetags/__pycache__/common.cpython-315.opt-1.pyc +0 -0
- util/templatetags/common.py +0 -141
- util/tests/__pycache__/__init__.cpython-315.opt-1.pyc +0 -0
- util/tests/__pycache__/test_commands.cpython-315.opt-1.pyc +0 -0
- util/tests/__pycache__/test_utils.cpython-315.opt-1.pyc +0 -0
- util/tests/test_utils.py +0 -281
- util/urls.py +0 -28
- util/views.py +0 -158
- {arch → patchman/arch}/__init__.py +0 -0
- {arch → patchman/arch}/migrations/0001_initial.py +0 -0
- {arch → patchman/arch}/migrations/0002_alter_machinearchitecture_options_and_more.py +0 -0
- {arch → patchman/arch}/migrations/__init__.py +0 -0
- {arch → patchman/arch}/models.py +0 -0
- {arch → patchman/arch}/tests/__init__.py +0 -0
- {domains → patchman/compliance}/__init__.py +0 -0
- {domains → patchman/compliance}/migrations/__init__.py +0 -0
- {domains → patchman/compliance}/tests/__init__.py +0 -0
- {errata → patchman/domains}/__init__.py +0 -0
- {domains → patchman/domains}/migrations/0001_initial.py +0 -0
- {domains → patchman/domains}/migrations/0002_alter_domain_options.py +0 -0
- {errata → patchman/domains}/migrations/__init__.py +0 -0
- {domains → patchman/domains}/models.py +0 -0
- {errata/sources → patchman/domains/tests}/__init__.py +0 -0
- {errata/sources/distros → patchman/errata}/__init__.py +0 -0
- {errata → patchman/errata}/managers.py +0 -0
- {errata → patchman/errata}/migrations/0001_initial.py +0 -0
- {errata → patchman/errata}/migrations/0002_alter_erratumreference_unique_together.py +0 -0
- {errata → patchman/errata}/migrations/0003_delete_erratumreference_alter_erratum_references.py +0 -0
- {errata → patchman/errata}/migrations/0004_rename_packages_erratum_fixed_packages.py +0 -0
- {errata → patchman/errata}/migrations/0005_erratum_affected_packages_and_more.py +0 -0
- {errata → patchman/errata}/migrations/0006_alter_erratum_options.py +0 -0
- {errata → patchman/errata}/migrations/0007_alter_erratum_fixed_packages.py +0 -0
- {errata → patchman/errata}/migrations/0008_add_cached_count_fields.py +0 -0
- {errata → patchman/errata}/migrations/0009_backfill_cached_counts.py +0 -0
- {errata → patchman/errata}/migrations/0010_synopsis_textfield.py +0 -0
- {errata/sources/repos → patchman/errata/migrations}/__init__.py +0 -0
- {hosts → patchman/errata/sources}/__init__.py +0 -0
- {hosts/migrations → patchman/errata/sources/distros}/__init__.py +0 -0
- {hosts/templatetags → patchman/errata/sources/repos}/__init__.py +0 -0
- {errata → patchman/errata}/templates/errata/erratum_detail.html +0 -0
- {errata → patchman/errata}/templates/errata/erratum_list.html +0 -0
- {errata → patchman/errata}/tests/__init__.py +0 -0
- {hosts/tests → patchman/hosts}/__init__.py +0 -0
- {hosts → patchman/hosts}/managers.py +0 -0
- {hosts → patchman/hosts}/migrations/0001_initial.py +0 -0
- {hosts → patchman/hosts}/migrations/0002_initial.py +0 -0
- {hosts → patchman/hosts}/migrations/0003_host_modules.py +0 -0
- {hosts → patchman/hosts}/migrations/0004_remove_host_tags_host_tags.py +0 -0
- {hosts → patchman/hosts}/migrations/0005_rename_os_host_osvariant.py +0 -0
- {hosts → patchman/hosts}/migrations/0006_migrate_to_tz_aware.py +0 -0
- {hosts → patchman/hosts}/migrations/0007_alter_host_tags.py +0 -0
- {hosts → patchman/hosts}/migrations/0008_alter_host_options.py +0 -0
- {hosts → patchman/hosts}/migrations/0009_host_errata.py +0 -0
- {hosts → patchman/hosts}/migrations/0010_alter_hostrepo_options.py +0 -0
- {hosts → patchman/hosts}/migrations/0011_host_bug_updates_count_host_errata_count_and_more.py +0 -0
- {hosts → patchman/hosts}/migrations/0012_backfill_cached_counts.py +0 -0
- {hosts → patchman/hosts}/migrations/0013_alter_hostrepo_unique_together_and_more.py +0 -0
- {hosts → patchman/hosts}/migrations/0014_drop_legacy_tagging.py +0 -0
- {modules → patchman/hosts/migrations}/__init__.py +0 -0
- {hosts → patchman/hosts}/templates/hosts/host_delete.html +0 -0
- {hosts → patchman/hosts}/templates/hosts/host_detail.html +0 -0
- {hosts → patchman/hosts}/templates/hosts/host_edit.html +0 -0
- {hosts → patchman/hosts}/templates/hosts/host_list.html +0 -0
- {modules/migrations → patchman/hosts/templatetags}/__init__.py +0 -0
- {operatingsystems → patchman/hosts/tests}/__init__.py +0 -0
- {operatingsystems/migrations → patchman/management}/__init__.py +0 -0
- {packages → patchman/management/commands}/__init__.py +0 -0
- {util → patchman}/management/commands/create_api_key.py +0 -0
- {util → patchman}/management/commands/list_api_keys.py +0 -0
- {util → patchman}/management/commands/revoke_api_key.py +0 -0
- {packages/migrations → patchman/modules}/__init__.py +0 -0
- {modules → patchman/modules}/managers.py +0 -0
- {modules → patchman/modules}/migrations/0001_initial.py +0 -0
- {modules → patchman/modules}/migrations/0002_auto_20240204_2214.py +0 -0
- {modules → patchman/modules}/migrations/0003_alter_module_options.py +0 -0
- {modules → patchman/modules}/migrations/0004_alter_module_options.py +0 -0
- {modules → patchman/modules}/migrations/0005_alter_module_unique_together.py +0 -0
- {modules → patchman/modules}/migrations/0006_alter_module_context_alter_module_name_and_more.py +0 -0
- {modules → patchman/modules}/migrations/0007_alter_module_unique_together_module_unique_module.py +0 -0
- {packages/tests → patchman/modules/migrations}/__init__.py +0 -0
- {modules → patchman/modules}/templates/modules/module_detail.html +0 -0
- {modules → patchman/modules}/templates/modules/module_list.html +0 -0
- {reports → patchman/operatingsystems}/__init__.py +0 -0
- {operatingsystems → patchman/operatingsystems}/fixtures/os.json +0 -0
- {operatingsystems → patchman/operatingsystems}/fixtures/osgroup.json +0 -0
- {operatingsystems → patchman/operatingsystems}/managers.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0001_initial.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0002_initial.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0003_os_arch.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0003_osgroup_codename.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0004_alter_osgroup_unique_together.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0005_rename_osgroup_osrelease_rename_os_osvariant_and_more.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0006_osrelease_cpe_name_osvariant_codename.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0007_alter_osrelease_unique_together.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0008_alter_osrelease_options_alter_osvariant_options.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0009_osvariant_hosts_count.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0010_backfill_osvariant_counts.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0011_alter_osrelease_codename_alter_osrelease_cpe_name_and_more.py +0 -0
- {operatingsystems → patchman/operatingsystems}/migrations/0012_alter_osrelease_unique_together_and_more.py +0 -0
- {reports → patchman/operatingsystems}/migrations/__init__.py +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/os_landing.html +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/osrelease_delete.html +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/osrelease_detail.html +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/osvariant_delete.html +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/osvariant_delete_multiple.html +0 -0
- {operatingsystems → patchman/operatingsystems}/templates/operatingsystems/osvariant_detail.html +0 -0
- {operatingsystems → patchman/operatingsystems}/tests/__init__.py +0 -0
- {reports/tests → patchman/packages}/__init__.py +0 -0
- {packages → patchman/packages}/managers.py +0 -0
- {packages → patchman/packages}/migrations/0001_initial.py +0 -0
- {packages → patchman/packages}/migrations/0002_auto_20250207_1319.py +0 -0
- {packages → patchman/packages}/migrations/0002_delete_erratum_delete_erratumreference.py +0 -0
- {packages → patchman/packages}/migrations/0003_auto_20250207_1746.py +0 -0
- {packages → patchman/packages}/migrations/0004_alter_package_options_alter_packagecategory_options_and_more.py +0 -0
- {packages → patchman/packages}/migrations/0005_alter_package_packagetype.py +0 -0
- {packages → patchman/packages}/migrations/0006_alter_packageupdate_options.py +0 -0
- {packages → patchman/packages}/migrations/0007_alter_package_epoch_alter_package_release_and_more.py +0 -0
- {packages → patchman/packages}/migrations/0008_alter_package_unique_together_and_more.py +0 -0
- {repos → patchman/packages/migrations}/__init__.py +0 -0
- {packages → patchman/packages}/templates/packages/package_detail.html +0 -0
- {packages → patchman/packages}/templates/packages/package_name_detail.html +0 -0
- {packages → patchman/packages}/templates/packages/package_name_list.html +0 -0
- {repos/migrations → patchman/packages/tests}/__init__.py +0 -0
- {repos/repo_types → patchman/reports}/__init__.py +0 -0
- {reports → patchman/reports}/migrations/0001_initial.py +0 -0
- {reports → patchman/reports}/migrations/0002_report_modules.py +0 -0
- {reports → patchman/reports}/migrations/0003_remove_report_accessed.py +0 -0
- {reports → patchman/reports}/migrations/0004_migrate_to_tz_aware.py +0 -0
- {reports → patchman/reports}/migrations/0005_alter_report_options.py +0 -0
- {reports → patchman/reports}/migrations/0006_alter_report_options.py +0 -0
- {repos/templatetags → patchman/reports/migrations}/__init__.py +0 -0
- {reports → patchman/reports}/templates/reports/report.txt +0 -0
- {reports → patchman/reports}/templates/reports/report_delete.html +0 -0
- {reports → patchman/reports}/templates/reports/report_detail.html +0 -0
- {reports → patchman/reports}/templates/reports/report_list.html +0 -0
- {repos → patchman/reports}/tests/__init__.py +0 -0
- {security → patchman/repos}/__init__.py +0 -0
- {repos → patchman/repos}/managers.py +0 -0
- {repos → patchman/repos}/migrations/0001_initial.py +0 -0
- {repos → patchman/repos}/migrations/0002_alter_repository_repotype.py +0 -0
- {repos → patchman/repos}/migrations/0003_migrate_to_tz_aware.py +0 -0
- {repos → patchman/repos}/migrations/0004_rename_file_checksum_mirror_package_checksum.py +0 -0
- {repos → patchman/repos}/migrations/0005_rename_package_checksum_mirror_packages_checksum.py +0 -0
- {repos → patchman/repos}/migrations/0006_mirror_errata_checksum_mirror_modules_checksum.py +0 -0
- {repos → patchman/repos}/migrations/0007_alter_mirror_options_alter_mirrorpackage_options_and_more.py +0 -0
- {repos → patchman/repos}/migrations/0008_mirror_packages_count.py +0 -0
- {repos → patchman/repos}/migrations/0009_backfill_mirror_counts.py +0 -0
- {security → patchman/repos}/migrations/__init__.py +0 -0
- {security/tests → patchman/repos/repo_types}/__init__.py +0 -0
- {repos → patchman/repos}/templates/repos/mirror_delete.html +0 -0
- {repos → patchman/repos}/templates/repos/mirror_detail.html +0 -0
- {repos → patchman/repos}/templates/repos/mirror_edit.html +0 -0
- {repos → patchman/repos}/templates/repos/mirror_list.html +0 -0
- {repos → patchman/repos}/templates/repos/mirror_with_repo_list.html +0 -0
- {repos → patchman/repos}/templates/repos/repo_delete.html +0 -0
- {repos → patchman/repos}/templates/repos/repo_detail.html +0 -0
- {repos → patchman/repos}/templates/repos/repo_edit.html +0 -0
- {repos → patchman/repos}/templates/repos/repo_list.html +0 -0
- {util/management → patchman/repos/templatetags}/__init__.py +0 -0
- {util/management/commands → patchman/repos/tests}/__init__.py +0 -0
- {util/templatetags → patchman/security}/__init__.py +0 -0
- {security → patchman/security}/managers.py +0 -0
- {security → patchman/security}/migrations/0001_initial.py +0 -0
- {security → patchman/security}/migrations/0002_alter_cve_options.py +0 -0
- {security → patchman/security}/migrations/0003_alter_cve_description_alter_cwe_description.py +0 -0
- {security → patchman/security}/migrations/0004_alter_cve_options.py +0 -0
- {security → patchman/security}/migrations/0005_reference_cve_references.py +0 -0
- {security → patchman/security}/migrations/0006_alter_cve_options_alter_cvss_unique_together.py +0 -0
- {security → patchman/security}/migrations/0007_remove_cve_title.py +0 -0
- {security → patchman/security}/migrations/0008_alter_cwe_options_alter_reference_options.py +0 -0
- {security → patchman/security}/migrations/0009_alter_cvss_severity_alter_cvss_vector_string_and_more.py +0 -0
- {security → patchman/security}/migrations/0010_fix_cvss_vector_string_length.py +0 -0
- {security → patchman/security}/migrations/0011_alter_cvss_unique_together_and_more.py +0 -0
- {util/tests → patchman/security/migrations}/__init__.py +0 -0
- {security → patchman/security}/templates/security/cve_detail.html +0 -0
- {security → patchman/security}/templates/security/cve_list.html +0 -0
- {security → patchman/security}/templates/security/cwe_detail.html +0 -0
- {security → patchman/security}/templates/security/cwe_list.html +0 -0
- {security → patchman/security}/templates/security/reference_list.html +0 -0
- {security → patchman/security}/templates/security/security_landing.html +0 -0
- {util → patchman/util}/filterspecs.py +0 -0
- {util → patchman/util}/logging.py +0 -0
- {util → patchman/util}/tables.py +0 -0
- {util → patchman/util}/templates/404.html +0 -0
- {util → patchman/util}/templates/500.html +0 -0
- {util → patchman/util}/templates/base.html +0 -0
- {util → patchman/util}/templates/bulk_actions.html +0 -0
- {util → patchman/util}/templates/objectlist.html +0 -0
- {util → patchman/util}/templates/registration/login.html +0 -0
- {util → patchman/util}/templates/searchbar.html +0 -0
- {util → patchman/util}/templates/table.html +0 -0
- {util → patchman/util}/tests/test_commands.py +0 -0
- {patchman-4.0.22.data → patchman-4.0.23.data}/scripts/patchman-manage +0 -0
- {patchman-4.0.22.data → patchman-4.0.23.data}/scripts/patchman-set-secret-key +0 -0
- {patchman-4.0.22.dist-info → patchman-4.0.23.dist-info}/WHEEL +0 -0
- {patchman-4.0.22.dist-info → patchman-4.0.23.dist-info}/licenses/AUTHORS +0 -0
- {patchman-4.0.22.dist-info → patchman-4.0.23.dist-info}/licenses/COPYING +0 -0
etc/patchman/local_settings.py
CHANGED
|
@@ -115,3 +115,35 @@ LOGGING = {
|
|
|
115
115
|
'celery': {'level': 'WARNING', 'handlers': ['console'], 'propagate': False},
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
+
|
|
119
|
+
# =============================================================================
|
|
120
|
+
# Client Certificate Authentication (mTLS) - Optional
|
|
121
|
+
# =============================================================================
|
|
122
|
+
# See INSTALL.md for full setup instructions
|
|
123
|
+
|
|
124
|
+
# Enable mTLS requirement for report endpoints
|
|
125
|
+
# REQUIRE_CLIENT_CERT = True
|
|
126
|
+
|
|
127
|
+
# Require client cert CN to match report hostname
|
|
128
|
+
# CLIENT_CERT_STRICT_HOSTNAME = True
|
|
129
|
+
|
|
130
|
+
# =============================================================================
|
|
131
|
+
# PKI Provider Configuration (for certificate enrollment)
|
|
132
|
+
# =============================================================================
|
|
133
|
+
# Configure step-ca for certificate enrollment:
|
|
134
|
+
# PKI_PROVIDER = 'util.pki.StepCAProvider'
|
|
135
|
+
# PKI_PROVIDER_CONFIG = {
|
|
136
|
+
# 'ca_url': 'https://ca.example.com:9000',
|
|
137
|
+
# 'provisioner': 'patchman',
|
|
138
|
+
# 'provisioner_password_file': '/etc/patchman/step-ca-password',
|
|
139
|
+
# 'root_cert': '/etc/patchman/ca.crt',
|
|
140
|
+
# }
|
|
141
|
+
|
|
142
|
+
# Or configure Vault PKI:
|
|
143
|
+
# PKI_PROVIDER = 'util.pki.VaultProvider'
|
|
144
|
+
# PKI_PROVIDER_CONFIG = {
|
|
145
|
+
# 'vault_addr': 'https://vault.example.com:8200',
|
|
146
|
+
# 'vault_token_file': '/etc/patchman/vault-token',
|
|
147
|
+
# 'pki_path': 'pki',
|
|
148
|
+
# 'pki_role': 'patchman-client',
|
|
149
|
+
# }
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
patchman/apps.py
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
patchman/arch/admin.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Copyright 2012 VPAC, http://www.vpac.org
|
|
2
|
+
# Copyright 2013-2021 Marcus Furlong <furlongm@gmail.com>
|
|
3
|
+
#
|
|
4
|
+
# This file is part of Patchman.
|
|
5
|
+
#
|
|
6
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU General Public License as published by
|
|
8
|
+
# the Free Software Foundation, version 3 only.
|
|
9
|
+
#
|
|
10
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
11
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
# GNU General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU General Public License
|
|
16
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
17
|
+
|
|
18
|
+
from django.contrib import admin
|
|
19
|
+
|
|
20
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
21
|
+
|
|
22
|
+
admin.site.register(PackageArchitecture)
|
|
23
|
+
admin.site.register(MachineArchitecture)
|
patchman/arch/apps.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2019-2021 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from django.apps import AppConfig
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ArchConfig(AppConfig):
|
|
21
|
+
name = 'patchman.arch'
|
|
22
|
+
label = 'arch'
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Copyright 2016-2021 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from rest_framework import serializers
|
|
18
|
+
|
|
19
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class PackageArchitectureSerializer(serializers.HyperlinkedModelSerializer):
|
|
23
|
+
class Meta:
|
|
24
|
+
model = PackageArchitecture
|
|
25
|
+
fields = ('id', 'name')
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class MachineArchitectureSerializer(serializers.HyperlinkedModelSerializer):
|
|
29
|
+
class Meta:
|
|
30
|
+
model = MachineArchitecture
|
|
31
|
+
fields = ('id', 'name')
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# Copyright 2025 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from django.contrib.auth.models import User
|
|
18
|
+
from django.test import TestCase, override_settings
|
|
19
|
+
from rest_framework import status
|
|
20
|
+
from rest_framework.test import APITestCase
|
|
21
|
+
|
|
22
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
@override_settings(
|
|
26
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
27
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
28
|
+
)
|
|
29
|
+
class ArchitectureAPITests(APITestCase):
|
|
30
|
+
"""Tests for the Architecture API endpoints."""
|
|
31
|
+
|
|
32
|
+
def setUp(self):
|
|
33
|
+
"""Set up test data."""
|
|
34
|
+
self.user = User.objects.create_user(
|
|
35
|
+
username='testuser', password='testpass'
|
|
36
|
+
)
|
|
37
|
+
self.client.force_authenticate(user=self.user)
|
|
38
|
+
|
|
39
|
+
self.machine_arch = MachineArchitecture.objects.create(name='x86_64')
|
|
40
|
+
self.pkg_arch = PackageArchitecture.objects.create(name='amd64')
|
|
41
|
+
|
|
42
|
+
def test_list_machine_architectures(self):
|
|
43
|
+
"""Test listing machine architectures."""
|
|
44
|
+
response = self.client.get('/api/machine-architecture/')
|
|
45
|
+
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
|
46
|
+
self.assertEqual(len(response.data['results']), 1)
|
|
47
|
+
|
|
48
|
+
def test_retrieve_machine_architecture(self):
|
|
49
|
+
"""Test retrieving a machine architecture."""
|
|
50
|
+
response = self.client.get(f'/api/machine-architecture/{self.machine_arch.id}/')
|
|
51
|
+
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
|
52
|
+
self.assertEqual(response.data['name'], 'x86_64')
|
|
53
|
+
|
|
54
|
+
def test_list_package_architectures(self):
|
|
55
|
+
"""Test listing package architectures."""
|
|
56
|
+
response = self.client.get('/api/package-architecture/')
|
|
57
|
+
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
|
58
|
+
self.assertEqual(len(response.data['results']), 1)
|
|
59
|
+
|
|
60
|
+
def test_retrieve_package_architecture(self):
|
|
61
|
+
"""Test retrieving a package architecture."""
|
|
62
|
+
response = self.client.get(f'/api/package-architecture/{self.pkg_arch.id}/')
|
|
63
|
+
self.assertEqual(response.status_code, status.HTTP_200_OK)
|
|
64
|
+
self.assertEqual(response.data['name'], 'amd64')
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
@override_settings(
|
|
68
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
69
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
70
|
+
)
|
|
71
|
+
class MachineArchitectureModelTests(TestCase):
|
|
72
|
+
"""Tests for the MachineArchitecture model."""
|
|
73
|
+
|
|
74
|
+
def test_machine_architecture_creation(self):
|
|
75
|
+
"""Test creating a machine architecture."""
|
|
76
|
+
arch = MachineArchitecture.objects.create(name='aarch64')
|
|
77
|
+
self.assertEqual(arch.name, 'aarch64')
|
|
78
|
+
|
|
79
|
+
def test_machine_architecture_string_representation(self):
|
|
80
|
+
"""Test MachineArchitecture __str__ method."""
|
|
81
|
+
arch = MachineArchitecture.objects.create(name='i686')
|
|
82
|
+
self.assertEqual(str(arch), 'i686')
|
|
83
|
+
|
|
84
|
+
def test_machine_architecture_unique_name(self):
|
|
85
|
+
"""Test that machine architecture names must be unique."""
|
|
86
|
+
MachineArchitecture.objects.create(name='unique-arch')
|
|
87
|
+
from django.db import IntegrityError
|
|
88
|
+
with self.assertRaises(IntegrityError):
|
|
89
|
+
MachineArchitecture.objects.create(name='unique-arch')
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
@override_settings(
|
|
93
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
94
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
95
|
+
)
|
|
96
|
+
class PackageArchitectureModelTests(TestCase):
|
|
97
|
+
"""Tests for the PackageArchitecture model."""
|
|
98
|
+
|
|
99
|
+
def test_package_architecture_creation(self):
|
|
100
|
+
"""Test creating a package architecture."""
|
|
101
|
+
arch = PackageArchitecture.objects.create(name='arm64')
|
|
102
|
+
self.assertEqual(arch.name, 'arm64')
|
|
103
|
+
|
|
104
|
+
def test_package_architecture_string_representation(self):
|
|
105
|
+
"""Test PackageArchitecture __str__ method."""
|
|
106
|
+
arch = PackageArchitecture.objects.create(name='noarch')
|
|
107
|
+
self.assertEqual(str(arch), 'noarch')
|
|
108
|
+
|
|
109
|
+
def test_package_architecture_unique_name(self):
|
|
110
|
+
"""Test that package architecture names must be unique."""
|
|
111
|
+
PackageArchitecture.objects.create(name='all')
|
|
112
|
+
from django.db import IntegrityError
|
|
113
|
+
with self.assertRaises(IntegrityError):
|
|
114
|
+
PackageArchitecture.objects.create(name='all')
|
|
115
|
+
|
|
116
|
+
def test_common_architectures(self):
|
|
117
|
+
"""Test creating common architecture types."""
|
|
118
|
+
archs = ['x86_64', 'amd64', 'i386', 'i686', 'noarch', 'all', 'arm64', 'aarch64']
|
|
119
|
+
for arch_name in archs:
|
|
120
|
+
arch = PackageArchitecture.objects.create(name=arch_name)
|
|
121
|
+
self.assertEqual(str(arch), arch_name)
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Copyright 2025 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from django.test import TestCase, override_settings
|
|
18
|
+
|
|
19
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@override_settings(
|
|
23
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
24
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
25
|
+
)
|
|
26
|
+
class MachineArchitectureMethodTests(TestCase):
|
|
27
|
+
"""Tests for MachineArchitecture model methods."""
|
|
28
|
+
|
|
29
|
+
def test_machine_arch_creation(self):
|
|
30
|
+
"""Test creating a MachineArchitecture."""
|
|
31
|
+
arch = MachineArchitecture.objects.create(name='x86_64')
|
|
32
|
+
self.assertEqual(arch.name, 'x86_64')
|
|
33
|
+
|
|
34
|
+
def test_machine_arch_str(self):
|
|
35
|
+
"""Test MachineArchitecture __str__ method."""
|
|
36
|
+
arch = MachineArchitecture.objects.create(name='x86_64')
|
|
37
|
+
self.assertEqual(str(arch), 'x86_64')
|
|
38
|
+
|
|
39
|
+
def test_machine_arch_unique_name(self):
|
|
40
|
+
"""Test MachineArchitecture name is unique."""
|
|
41
|
+
MachineArchitecture.objects.create(name='x86_64')
|
|
42
|
+
from django.db import IntegrityError
|
|
43
|
+
with self.assertRaises(IntegrityError):
|
|
44
|
+
MachineArchitecture.objects.create(name='x86_64')
|
|
45
|
+
|
|
46
|
+
def test_common_machine_architectures(self):
|
|
47
|
+
"""Test common machine architecture values."""
|
|
48
|
+
archs = ['x86_64', 'aarch64', 'i686', 'armv7l', 'ppc64le']
|
|
49
|
+
for name in archs:
|
|
50
|
+
arch = MachineArchitecture.objects.create(name=name)
|
|
51
|
+
self.assertEqual(str(arch), name)
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
@override_settings(
|
|
55
|
+
CELERY_TASK_ALWAYS_EAGER=True,
|
|
56
|
+
CACHES={'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}}
|
|
57
|
+
)
|
|
58
|
+
class PackageArchitectureMethodTests(TestCase):
|
|
59
|
+
"""Tests for PackageArchitecture model methods."""
|
|
60
|
+
|
|
61
|
+
def test_package_arch_creation(self):
|
|
62
|
+
"""Test creating a PackageArchitecture."""
|
|
63
|
+
arch = PackageArchitecture.objects.create(name='amd64')
|
|
64
|
+
self.assertEqual(arch.name, 'amd64')
|
|
65
|
+
|
|
66
|
+
def test_package_arch_str(self):
|
|
67
|
+
"""Test PackageArchitecture __str__ method."""
|
|
68
|
+
arch = PackageArchitecture.objects.create(name='amd64')
|
|
69
|
+
self.assertEqual(str(arch), 'amd64')
|
|
70
|
+
|
|
71
|
+
def test_package_arch_unique_name(self):
|
|
72
|
+
"""Test PackageArchitecture name is unique."""
|
|
73
|
+
PackageArchitecture.objects.create(name='amd64')
|
|
74
|
+
from django.db import IntegrityError
|
|
75
|
+
with self.assertRaises(IntegrityError):
|
|
76
|
+
PackageArchitecture.objects.create(name='amd64')
|
|
77
|
+
|
|
78
|
+
def test_common_package_architectures(self):
|
|
79
|
+
"""Test common package architecture values."""
|
|
80
|
+
archs = ['amd64', 'i386', 'all', 'noarch', 'x86_64', 'arm64']
|
|
81
|
+
for name in archs:
|
|
82
|
+
arch = PackageArchitecture.objects.create(name=name)
|
|
83
|
+
self.assertEqual(str(arch), name)
|
patchman/arch/utils.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Copyright 2025 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
18
|
+
from patchman.util.logging import info_message
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
def clean_package_architectures():
|
|
22
|
+
""" Remove package architectures that are no longer in use
|
|
23
|
+
"""
|
|
24
|
+
parches = PackageArchitecture.objects.filter(package__isnull=True)
|
|
25
|
+
plen = parches.count()
|
|
26
|
+
if plen == 0:
|
|
27
|
+
info_message(text='No orphaned PackageArchitectures found.')
|
|
28
|
+
else:
|
|
29
|
+
info_message(text=f'Removing {plen} orphaned PackageArchitectures')
|
|
30
|
+
parches.delete()
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
def clean_machine_architectures():
|
|
34
|
+
""" Remove machine architectures that are no longer in use
|
|
35
|
+
"""
|
|
36
|
+
marches = MachineArchitecture.objects.filter(
|
|
37
|
+
host__isnull=True,
|
|
38
|
+
repository__isnull=True,
|
|
39
|
+
)
|
|
40
|
+
mlen = marches.count()
|
|
41
|
+
if mlen == 0:
|
|
42
|
+
info_message(text='No orphaned MachineArchitectures found.')
|
|
43
|
+
else:
|
|
44
|
+
info_message(text=f'Removing {mlen} orphaned MachineArchitectures')
|
|
45
|
+
marches.delete()
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
def clean_architectures():
|
|
49
|
+
""" Remove architectures that are no longer in use
|
|
50
|
+
"""
|
|
51
|
+
clean_package_architectures()
|
|
52
|
+
clean_machine_architectures()
|
patchman/arch/views.py
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Copyright 2016-2021 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from rest_framework import viewsets
|
|
18
|
+
|
|
19
|
+
from patchman.arch.models import MachineArchitecture, PackageArchitecture
|
|
20
|
+
from patchman.arch.serializers import (
|
|
21
|
+
MachineArchitectureSerializer, PackageArchitectureSerializer,
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class PackageArchitectureViewSet(viewsets.ModelViewSet):
|
|
26
|
+
"""
|
|
27
|
+
API endpoint that allows package architectures to be viewed or edited.
|
|
28
|
+
"""
|
|
29
|
+
queryset = PackageArchitecture.objects.all()
|
|
30
|
+
serializer_class = PackageArchitectureSerializer
|
|
31
|
+
filterset_fields = ['name']
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
class MachineArchitectureViewSet(viewsets.ModelViewSet):
|
|
35
|
+
"""
|
|
36
|
+
API endpoint that allows machine architectures to be viewed or edited.
|
|
37
|
+
"""
|
|
38
|
+
queryset = MachineArchitecture.objects.all()
|
|
39
|
+
serializer_class = MachineArchitectureSerializer
|
|
40
|
+
filterset_fields = ['name']
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Copyright 2025 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from django.contrib import admin
|
|
18
|
+
|
|
19
|
+
from patchman.compliance.models import (
|
|
20
|
+
ComplianceProfile, ComplianceResult, ComplianceRule, ComplianceScan,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@admin.register(ComplianceProfile)
|
|
25
|
+
class ComplianceProfileAdmin(admin.ModelAdmin):
|
|
26
|
+
list_display = ('profile_id', 'title')
|
|
27
|
+
search_fields = ('profile_id', 'title', 'description')
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
@admin.register(ComplianceRule)
|
|
31
|
+
class ComplianceRuleAdmin(admin.ModelAdmin):
|
|
32
|
+
list_display = ('rule_id', 'title', 'severity')
|
|
33
|
+
list_filter = ('severity',)
|
|
34
|
+
search_fields = ('rule_id', 'title', 'description')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@admin.register(ComplianceScan)
|
|
38
|
+
class ComplianceScanAdmin(admin.ModelAdmin):
|
|
39
|
+
list_display = (
|
|
40
|
+
'host', 'profile', 'score', 'pass_count',
|
|
41
|
+
'fail_count', 'error_count', 'scanned_at',
|
|
42
|
+
)
|
|
43
|
+
list_filter = ('profile', 'scanned_at')
|
|
44
|
+
search_fields = ('host__hostname', 'profile__profile_id')
|
|
45
|
+
raw_id_fields = ('host', 'profile')
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
@admin.register(ComplianceResult)
|
|
49
|
+
class ComplianceResultAdmin(admin.ModelAdmin):
|
|
50
|
+
list_display = ('scan', 'rule', 'result')
|
|
51
|
+
list_filter = ('result',)
|
|
52
|
+
search_fields = ('rule__rule_id', 'scan__host__hostname')
|
|
53
|
+
raw_id_fields = ('scan', 'rule')
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# Copyright 2025 Marcus Furlong <furlongm@gmail.com>
|
|
2
|
+
#
|
|
3
|
+
# This file is part of Patchman.
|
|
4
|
+
#
|
|
5
|
+
# Patchman is free software: you can redistribute it and/or modify
|
|
6
|
+
# it under the terms of the GNU General Public License as published by
|
|
7
|
+
# the Free Software Foundation, version 3 only.
|
|
8
|
+
#
|
|
9
|
+
# Patchman is distributed in the hope that it will be useful,
|
|
10
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
# GNU General Public License for more details.
|
|
13
|
+
#
|
|
14
|
+
# You should have received a copy of the GNU General Public License
|
|
15
|
+
# along with Patchman. If not, see <http://www.gnu.org/licenses/>
|
|
16
|
+
|
|
17
|
+
from django.apps import AppConfig
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class ComplianceConfig(AppConfig):
|
|
21
|
+
name = 'patchman.compliance'
|
|
22
|
+
label = 'compliance'
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# Generated by Django 4.2.28 on 2026-05-12 21:30
|
|
2
|
+
|
|
3
|
+
from django.db import migrations, models
|
|
4
|
+
import django.db.models.deletion
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Migration(migrations.Migration):
|
|
8
|
+
|
|
9
|
+
initial = True
|
|
10
|
+
|
|
11
|
+
dependencies = [
|
|
12
|
+
('hosts', '0013_alter_hostrepo_unique_together_and_more'),
|
|
13
|
+
]
|
|
14
|
+
|
|
15
|
+
operations = [
|
|
16
|
+
migrations.CreateModel(
|
|
17
|
+
name='ComplianceProfile',
|
|
18
|
+
fields=[
|
|
19
|
+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
20
|
+
('profile_id', models.CharField(max_length=255, unique=True)),
|
|
21
|
+
('title', models.CharField(blank=True, default='', max_length=512)),
|
|
22
|
+
('description', models.TextField(blank=True, default='')),
|
|
23
|
+
],
|
|
24
|
+
options={
|
|
25
|
+
'ordering': ['profile_id'],
|
|
26
|
+
},
|
|
27
|
+
),
|
|
28
|
+
migrations.CreateModel(
|
|
29
|
+
name='ComplianceRule',
|
|
30
|
+
fields=[
|
|
31
|
+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
32
|
+
('rule_id', models.CharField(max_length=255, unique=True)),
|
|
33
|
+
('title', models.CharField(blank=True, default='', max_length=512)),
|
|
34
|
+
('severity', models.CharField(blank=True, default='', max_length=32)),
|
|
35
|
+
('description', models.TextField(blank=True, default='')),
|
|
36
|
+
],
|
|
37
|
+
options={
|
|
38
|
+
'ordering': ['rule_id'],
|
|
39
|
+
},
|
|
40
|
+
),
|
|
41
|
+
migrations.CreateModel(
|
|
42
|
+
name='ComplianceScan',
|
|
43
|
+
fields=[
|
|
44
|
+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
45
|
+
('datastream', models.CharField(blank=True, default='', max_length=255)),
|
|
46
|
+
('score', models.FloatField(default=0.0)),
|
|
47
|
+
('score_maximum', models.FloatField(default=100.0)),
|
|
48
|
+
('pass_count', models.IntegerField(default=0)),
|
|
49
|
+
('fail_count', models.IntegerField(default=0)),
|
|
50
|
+
('error_count', models.IntegerField(default=0)),
|
|
51
|
+
('notapplicable_count', models.IntegerField(default=0)),
|
|
52
|
+
('scanned_at', models.DateTimeField()),
|
|
53
|
+
('created', models.DateTimeField(auto_now_add=True)),
|
|
54
|
+
('host', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='compliance_scans', to='hosts.host')),
|
|
55
|
+
('profile', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='scans', to='compliance.complianceprofile')),
|
|
56
|
+
],
|
|
57
|
+
options={
|
|
58
|
+
'ordering': ['-scanned_at'],
|
|
59
|
+
},
|
|
60
|
+
),
|
|
61
|
+
migrations.CreateModel(
|
|
62
|
+
name='ComplianceResult',
|
|
63
|
+
fields=[
|
|
64
|
+
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
65
|
+
('result', models.CharField(choices=[('pass', 'Pass'), ('fail', 'Fail'), ('error', 'Error'), ('notapplicable', 'Not Applicable'), ('notchecked', 'Not Checked'), ('notselected', 'Not Selected'), ('informational', 'Informational'), ('fixed', 'Fixed')], max_length=32)),
|
|
66
|
+
('rule', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='results', to='compliance.compliancerule')),
|
|
67
|
+
('scan', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='results', to='compliance.compliancescan')),
|
|
68
|
+
],
|
|
69
|
+
),
|
|
70
|
+
migrations.AddConstraint(
|
|
71
|
+
model_name='compliancescan',
|
|
72
|
+
constraint=models.UniqueConstraint(fields=('host', 'profile', 'scanned_at'), name='unique_compliance_scan'),
|
|
73
|
+
),
|
|
74
|
+
migrations.AddIndex(
|
|
75
|
+
model_name='complianceresult',
|
|
76
|
+
index=models.Index(fields=['rule', 'result'], name='compliance__rule_id_3f1e07_idx'),
|
|
77
|
+
),
|
|
78
|
+
migrations.AddConstraint(
|
|
79
|
+
model_name='complianceresult',
|
|
80
|
+
constraint=models.UniqueConstraint(fields=('scan', 'rule'), name='unique_compliance_result'),
|
|
81
|
+
),
|
|
82
|
+
]
|