kibana/x-pack/test
Tim Sullivan c5a46f4487
[9.0] [Canvas/PDF report] Allow canvas to generate PDF report (#224309) (#224338)
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Canvas/PDF report] Allow canvas to generate PDF report
(#224309)](https://github.com/elastic/kibana/pull/224309)

<!--- Backport version: 10.0.1 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Tim
Sullivan","email":"tsullivan@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-06-17T22:47:22Z","message":"[Canvas/PDF
report] Allow canvas to generate PDF report (#224309)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/224275\n\n**Context:** In
https://github.com/elastic/kibana/pull/222273, we added\nrestrictions to
the \"Reporting redirect app\" to make sure it could not\nbe abused by
using unexpected locator types (such as the short URL\nlocator or the
\"legacy\" locator type) when triggering redirects in the\nReporting
headless browser. The restrictions are on the basis of a list\nof
allowed locator types, which should be a list of every analytical
app\nthat supports Reporting.\n\n**Problem:** Unfortunately that added a
regression to Canvas PDF\nreporting, because the allow-list for locator
types neglected to include\nthe Canvas locator type.\n\nThis PR solves
the problem by adding the Canvas locator type to the set\nof allowed
locator types.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f5dee1347f019d4e98a45070eeb80356453a9827","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v8.15.6","v9.1.0","v8.19.0","v7.17.29","v9.0.3","v8.18.3","v8.17.8"],"title":"[Canvas/PDF
report] Allow canvas to generate PDF
report","number":224309,"url":"https://github.com/elastic/kibana/pull/224309","mergeCommit":{"message":"[Canvas/PDF
report] Allow canvas to generate PDF report (#224309)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/224275\n\n**Context:** In
https://github.com/elastic/kibana/pull/222273, we added\nrestrictions to
the \"Reporting redirect app\" to make sure it could not\nbe abused by
using unexpected locator types (such as the short URL\nlocator or the
\"legacy\" locator type) when triggering redirects in the\nReporting
headless browser. The restrictions are on the basis of a list\nof
allowed locator types, which should be a list of every analytical
app\nthat supports Reporting.\n\n**Problem:** Unfortunately that added a
regression to Canvas PDF\nreporting, because the allow-list for locator
types neglected to include\nthe Canvas locator type.\n\nThis PR solves
the problem by adding the Canvas locator type to the set\nof allowed
locator types.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f5dee1347f019d4e98a45070eeb80356453a9827"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","7.17","9.0","8.18","8.17"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.6","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/224309","number":224309,"mergeCommit":{"message":"[Canvas/PDF
report] Allow canvas to generate PDF report (#224309)\n\n##
Summary\n\nCloses
https://github.com/elastic/kibana/issues/224275\n\n**Context:** In
https://github.com/elastic/kibana/pull/222273, we added\nrestrictions to
the \"Reporting redirect app\" to make sure it could not\nbe abused by
using unexpected locator types (such as the short URL\nlocator or the
\"legacy\" locator type) when triggering redirects in the\nReporting
headless browser. The restrictions are on the basis of a list\nof
allowed locator types, which should be a list of every analytical
app\nthat supports Reporting.\n\n**Problem:** Unfortunately that added a
regression to Canvas PDF\nreporting, because the allow-list for locator
types neglected to include\nthe Canvas locator type.\n\nThis PR solves
the problem by adding the Canvas locator type to the set\nof allowed
locator types.\n\n---------\n\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"f5dee1347f019d4e98a45070eeb80356453a9827"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com/elastic/kibana/pull/224335","number":224335,"state":"OPEN"},{"branch":"7.17","label":"v7.17.29","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.17","label":"v8.17.8","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2025-06-18 17:47:16 +02:00
..
accessibility [9.0] [Scout] add painless lab (#219124) 2025-04-25 15:17:52 +02:00
alerting_api_integration [9.0] [ResponseOps][Alerting] assure grouping fields in alert match expected cardinality (#223409) (#224345) 2025-06-18 10:06:49 -04:00
api_integration [9.0] [Watcher] Revert back to using .watches system index (#223898) (#224080) 2025-06-16 18:19:28 +02:00
api_integration_basic [Cases] Cases assignees sub feature (#201654) 2025-01-30 17:04:38 +01:00
apm_api_integration [9.0] [APM] Skip failing test (#222185) (#222454) 2025-06-03 20:10:15 +01:00
apm_cypress [APM] Migrate APM Cypress tests to on_merge from on_merge_unsupported_ftrs (#203991) 2025-01-16 12:57:50 +01:00
automatic_import_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
banners_functional [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
cases_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
cloud_integration Clean up cloud_chat (#194571) 2024-10-03 13:37:47 +02:00
cloud_security_posture_api [9.0] [Cloud Security] fix integration and FTR tests (#218702) (#218992) 2025-04-23 19:06:30 +02:00
cloud_security_posture_functional [9.0] [Cloud Security] fix integration and FTR tests (#218702) (#218992) 2025-04-23 19:06:30 +02:00
common [9.0] [ftr] Increase timeout for loading package registry (#222620) (#223012) 2025-06-06 18:20:35 +02:00
custom_branding [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
dataset_quality_api_integration [9.0] [ftr] Increase timeout for loading package registry (#222620) (#223012) 2025-06-06 18:20:35 +02:00
defend_workflows_cypress [9.0] [EDR Workflows] Workflow Insights - Cypress (#204562) (#209111) 2025-01-31 17:08:02 +01:00
disable_ems
encrypted_saved_objects_api_integration [9.0] Revert "Removed switchToModelVersionAt from SO API definition (#219029)" (#220059) (#220259) 2025-05-06 18:10:09 +02:00
examples Disable search sessions by default (#203927) 2025-01-16 15:18:40 -07:00
fleet_api_integration [9.0] [ftr] Increase timeout for loading package registry (#222620) (#223012) 2025-06-06 18:20:35 +02:00
fleet_cypress [9.0] [Fleet] Fix elastic-agent docker image path (#210008) (#218740) 2025-04-21 22:11:21 +02:00
fleet_functional [Fleet] Fix failing/flaky tests (#189559) 2024-07-31 14:14:30 -04:00
fleet_packages [Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029) 2024-09-17 11:35:00 +02:00
ftr_apis [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
functional [9.0] [Canvas/PDF report] Allow canvas to generate PDF report (#224309) (#224338) 2025-06-18 17:47:16 +02:00
functional_basic [ML] Functional tests - cleanMlIndices without system index access (#199653) 2024-11-22 17:54:01 +01:00
functional_cloud [9.0] [CLOUD] fix defaultRoute for app/cloud/onboarding (#221029) (#221175) 2025-05-21 22:10:44 +02:00
functional_cors [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
functional_embedded [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
functional_enterprise_search Sustainable Kibana Architecture: Move modules owned by @elastic/search-kibana (#202837) 2024-12-27 10:55:21 -06:00
functional_execution_context [ResponseOps][Alerting] Decouple feature IDs from consumers (#183756) 2024-12-03 12:21:53 +02:00
functional_gen_ai/inference [inference] add support for temperature parameter (#206479) 2025-01-14 14:05:21 +01:00
functional_search [9.0] [Breadcrumbs] Hide "deployment" in breadcrumb when on-prem (#220110) (#220451) 2025-05-09 16:25:41 +02:00
functional_solution_sidenav [9.0] [Breadcrumbs] Hide "deployment" in breadcrumb when on-prem (#220110) (#220451) 2025-05-09 16:25:41 +02:00
functional_with_es_ssl skip flaky suite (#207704) 2025-05-27 18:56:52 +01:00
licensing_plugin [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
load [ON-WEEK][POC] Playwright (#190803) 2024-09-06 13:09:18 +02:00
localization [Lens] speed up functional test suite by setting the time picker via ui settings (#199479) 2024-11-12 17:40:47 +01:00
monitoring_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
observability_ai_assistant_api_integration [9.0] [Obs AI Assistant] Add test for get_dataset_info (#213231) (#213558) 2025-03-07 15:50:09 +01:00
observability_ai_assistant_functional [9.0] [Obs AI Assistant] Add API test for execute_query tool (#213517) (#214022) 2025-03-12 00:27:38 +01:00
observability_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
observability_functional [9.0] Attempt to fix AlertSummaryWidget flaky test (#212107) (#221769) 2025-05-28 16:31:28 +03:00
observability_onboarding_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
osquery_cypress [9.0] [Security Solution][Endpoint] Add &#x60;--version&#x60; to the run SentinelOne and Microsoft host scripts (#209769) (#210060) 2025-02-06 23:22:39 +01:00
plugin_api_integration [9.0] [Cloud Security] Add upgrade agentless deployment background task (#207143) (#218814) 2025-04-23 16:13:15 +03:00
plugin_api_perf [9.0] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212224) 2025-02-28 10:10:29 +01:00
plugin_functional [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
profiling_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
profiling_cypress [Profiling] Migrate Profiling Cypress tests to on_merge from on_merge_unsupported_ftrs (#206727) 2025-01-21 17:09:42 +01:00
reporting_api_integration [Reporting] Functional tests for privileges with built-in reporting_user (#205827) 2025-01-08 08:20:08 -07:00
reporting_functional [Reporting] Use Kibana feature privileges only to control access to reporting (#200834) 2024-12-04 09:51:29 -07:00
rule_registry [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
saved_object_api_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
saved_object_tagging skip failing test suite (#144057) 2025-04-10 22:31:33 +02:00
saved_objects_field_count [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
scalability [ON-WEEK][POC] Playwright (#190803) 2024-09-06 13:09:18 +02:00
screenshot_creation [Observability] add custom threshold functional test (#184602) 2024-09-18 09:56:58 +02:00
search_sessions_integration [9.0] Unskip discover async search test (#204827) (#213968) 2025-03-11 19:13:57 +01:00
security_api_integration [9.0] [Sessions] Check and allow session cookies if they are all the same (#220430) (#221062) 2025-05-21 01:04:13 +01:00
security_functional [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
security_solution_api_integration [9.0] Install event.ingested ingest pipeline in all spaces that the risk engine or asset criticality is installed, and add the pipeline to their indices (#221937) (#223905) 2025-06-16 14:21:59 +02:00
security_solution_cypress [9.0] [Detection Engine] Fix and unskip cypress suite related to ES|QL rule creation (#222467) (#223059) 2025-06-07 00:31:56 +02:00
security_solution_endpoint [9.0] [EDR Workflows] Remove matches optimization from endpoint artifacts (#216437) (#219036) 2025-04-24 10:53:55 +02:00
security_solution_ftr [SecuritySolution][Timeline] Refactor timeline HTTP API (#200633) 2024-11-22 07:54:45 +01:00
security_solution_playwright [9.0] SKA: Relocate "platform" packages that remain on /packages (#208704) (#212224) 2025-02-28 10:10:29 +01:00
session_view [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
spaces_api_integration [9.0] [FTR] unify custom role name with Scout (#217882) (#218152) 2025-04-14 21:23:01 +02:00
stack_functional_integration [QA]Change screenshot size for metricbeat dashboard test (#199378) 2024-11-07 17:22:34 -06:00
task_manager_claimer_update_by_query [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
ui_capabilities [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
upgrade Remove log stream and settings (#204115) 2025-01-10 11:51:12 +00:00
upgrade_assistant_integration [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00
usage_collection Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-core (#201653) 2025-01-04 11:47:24 -07:00
kibana.jsonc Sustainable Kibana Architecture: Categorise straightforward packages (#199630) 2024-11-22 10:33:25 +01:00
tsconfig.json [9.0] [kbn-scout] add test config category to reporting (#210167) (#217504) 2025-04-08 17:03:42 +02:00