uyuni icon indicating copy to clipboard operation
uyuni copied to clipboard

Prevent XXE attacks in ScapManager

Open cbosdo opened this issue 1 year ago • 2 comments

What does this PR change?

Use Saxon10 to disable loading external DTDs and schemas.

Links

Issue(s): https://github.com/SUSE/spacewalk/issues/19448

  • [X] DONE

Changelogs

Make sure the changelogs entries you are adding are compliant with https://github.com/uyuni-project/uyuni/wiki/Contributing#changelogs and https://github.com/uyuni-project/uyuni/wiki/Contributing#uyuni-projectuyuni-repository

If you don't need a changelog check, please mark this checkbox:

  • [ ] No changelog needed

If you uncheck the checkbox after the PR is created, you will need to re-run changelog_test (see below)

Re-run a test

If you need to re-run a test, please mark the related checkbox, it will be unchecked automatically once it has re-run:

  • [ ] Re-run test "changelog_test"
  • [ ] Re-run test "backend_unittests_pgsql"
  • [ ] Re-run test "java_pgsql_tests"
  • [ ] Re-run test "schema_migration_test_pgsql"
  • [ ] Re-run test "susemanager_unittests"
  • [ ] Re-run test "javascript_lint"
  • [ ] Re-run test "spacecmd_unittests"

Before you merge

Check How to branch and merge properly!

cbosdo avatar Jan 12 '24 15:01 cbosdo

:wave: Hello! Thanks for contributing to our project. Acceptance tests will take some time (aprox. 1h), please be patient :coffee: You can see the progress at the end of this page and at https://github.com/uyuni-project/uyuni/pull/8159/checks Once tests finish, if they fail, you can check :eyes: the cucumber report. See the link at the output of the action. You can also check the artifacts section, which contains the logs at https://github.com/uyuni-project/uyuni/pull/8159/checks.

If you are unsure the failing tests are related to your code, you can check the "reference jobs". These are jobs that run on a scheduled time with code from master. If they fail for the same reason as your build, it means the tests or the infrastructure are broken. If they do not fail, but yours do, it means it is related to your code.

Reference tests:

  • https://github.com/uyuni-project/uyuni/actions/workflows/acceptance_tests_secondary_parallel.yml?query=event%3Aschedule

  • https://github.com/uyuni-project/uyuni/actions/workflows/acceptance_tests_secondary.yml?query=event%3Aschedule

KNOWN ISSUES

Sometimes the build can fail when pulling new jar files from download.opensuse.org . This is a known limitation. Given this happens rarely, when it does, all you need to do is rerun the test. Sorry for the inconvenience.

For more tips on troubleshooting, see the troubleshooting guide.

Happy hacking! :warning: You should not merge if acceptance tests fail to pass. :warning:

github-actions[bot] avatar Jan 12 '24 15:01 github-actions[bot]

Suggested tests to cover this Pull Request
  • srv_reportdb
  • proxy_as_pod_basic_tests
  • srv_scc_user_credentials
  • minkvm_guests
  • min_rhlike_monitoring
  • min_bootstrap_api
  • srv_advanced_search
  • minssh_move_from_and_to_proxy
  • min_salt_minion_details
  • min_salt_install_package
  • buildhost_bootstrap
  • srv_cobbler_profile
  • srv_add_rocky8_repositories
  • srv_custom_system_info
  • srv_handle_software_channels_with_ISS_v2
  • buildhost_docker_auth_registry
  • srv_check_reposync
  • min_rhlike_remote_command
  • srv_monitoring
  • srv_first_settings
  • srv_power_management_api
  • min_deblike_ssh
  • srv_push_package
  • srv_restart
  • min_ansible_control_node
  • srv_check_sync_source_packages
  • min_recurring_action
  • srv_patches_page
  • min_deblike_monitoring
  • srv_maintenance_windows
  • min_salt_lock_packages
  • minssh_action_chain
  • srv_change_password
  • srv_user_configuration_salt_states
  • srv_logfile
  • srv_payg_ssh_connection
  • srv_users
  • min_rhlike_openscap_audit
  • srv_sync_products
  • min_config_state_channel_subscriptions
  • srv_datepicker
  • srv_task_status_engine
  • srv_channels_add
  • min_salt_user_states
  • min_salt_mgrcompat_state
  • allcli_system_group
  • srv_organization_credentials
  • min_retracted_patches
  • min_docker_api
  • min_salt_migration
  • allcli_overview_systems_details
  • min_bootstrap_ssh_key
  • buildhost_osimage_build_image
  • allcli_software_channels
  • srv_manage_activationkey
  • srv_cobbler_sync
  • srv_menu_filter
  • srv_manage_channels_page
  • min_deblike_salt_install_package
  • minssh_ansible_control_node
  • srv_virtual_host_manager
  • srv_content_lifecycle
  • srv_power_management_redfish
  • srv_rename_hostname
  • srv_activationkey_api
  • srv_cobbler_buildiso
  • min_salt_formulas
  • allcli_sanity
  • min_deblike_openscap_audit
  • srv_create_activationkey
  • min_config_state_channel_api
  • srv_osimage
  • min_project_lotus
  • srv_delete_channel_with_tool
  • min_action_chain
  • min_salt_formulas_advanced
  • srv_change_task_schedule
  • min_check_patches_install
  • min_salt_openscap_audit
  • srv_channel_api
  • min_config_state_channel
  • min_bootstrap_negative
  • srv_cobbler_distro
  • min_salt_install_with_staging
  • min_cve_id_new_syntax
  • srv_salt_download_endpoint
  • srv_user_api
  • min_salt_software_states
  • proxy_branch_network
  • allcli_software_channels_dependencies
  • proxy_register_as_minion_with_script
  • srv_check_channels_page
  • proxy_cobbler_pxeboot
  • min_virthost
  • min_custom_pkg_download_endpoint
  • srv_clone_channel_npn
  • min_rhlike_salt
  • srv_docker_advanced_content_management
  • srv_notifications
  • srv_disable_local_repos_off
  • srv_power_management
  • min_rhlike_ssh
  • allcli_reboot
  • min_bootstrap_reactivation
  • srv_salt
  • min_cve_audit
  • min_salt_pkgset_beacon
  • min_change_software_channel
  • min_deblike_remote_command
  • min_ssh_tunnel
  • srv_user_preferences
  • min_deblike_salt
  • min_monitoring
  • srv_create_repository
  • min_rhlike_salt_install_package_and_patch
  • minssh_bootstrap_api
  • srv_menu
  • srv_delete_channel_from_ui
  • srv_docker_cve_audit
  • srv_mainpage
  • allcli_action_chain
  • allcli_update_activationkeys
  • min_activationkey
  • proxy_retail_pxeboot_and_mass_import
  • srv_handle_config_channels_with_ISS_v2
  • minssh_salt_install_package
  • srv_distro_cobbler
  • sle_ssh_minion
  • min_empty_system_profiles
  • min_salt_minions_page
  • min_deblike_salt_install_with_staging
  • allcli_config_channel
  • srv_group_union_intersection
  • srv_docker
  • buildhost_docker_build_image
  • srv_dist_channel_mapping
  • srv_sync_channels
  • sle_minion
  • min_bootstrap_script
  • min_timezone
  • min_move_from_and_to_proxy
  • srv_enable_sync_products
  • srv_wait_for_reposync

github-actions[bot] avatar Jan 12 '24 15:01 github-actions[bot]

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 10 days.

github-actions[bot] avatar Mar 24 '24 01:03 github-actions[bot]

This PR was closed because it has been stalled for 10 days with no activity.

github-actions[bot] avatar Apr 04 '24 01:04 github-actions[bot]