Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.x] Sustainable Kibana Architecture: Move modules owned by `@elasti…
…c/kibana-security` (#202748) (#205569) # Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-security` (#202748)](#202748) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-01-05T11:57:01Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-security` (#202748)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/encrypted-saved-objects-plugin` |\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n| `@kbn/interactive-setup-plugin` |\n`src/platform/plugins/private/interactive_setup` |\n| `@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n| `@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces` |\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/crypto` | `src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` | `src/platform/packages/private/kbn-handlebars` |\n| `@kbn/safer-lodash-set` |\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n| `@kbn/security-api-key-management` |\n`x-pack/platform/packages/shared/security/api_key_management` |\n| `@kbn/security-authorization-core` |\n`x-pack/platform/packages/private/security/authorization_core` |\n| `@kbn/security-authorization-core-common` |\n`x-pack/platform/packages/private/security/authorization_core_common` |\n| `@kbn/security-form-components` |\n`x-pack/platform/packages/shared/security/form_components` |\n| `@kbn/security-hardening` |\n`src/platform/packages/shared/kbn-security-hardening` |\n| `@kbn/security-plugin-types-common` |\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n| `@kbn/security-plugin-types-public` |\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n| `@kbn/security-plugin-types-server` |\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n| `@kbn/security-role-management-model` |\n`x-pack/platform/packages/private/security/role_management_model` |\n| `@kbn/security-ui-components` |\n`x-pack/platform/packages/private/security/ui_components` |\n| `@kbn/user-profile-components` |\n`src/platform/packages/shared/kbn-user-profile-components` |\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details >\n<summary>Updated references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Michael Dokolin <[email protected]>\nCo-authored-by: “jeramysoucy” <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","Team:Security","release_note:skip","v9.0.0","backport:version","v8.18.0","plugin groups"],"number":202748,"url":"https://github.com/elastic/kibana/pull/202748","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-security` (#202748)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/encrypted-saved-objects-plugin` |\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n| `@kbn/interactive-setup-plugin` |\n`src/platform/plugins/private/interactive_setup` |\n| `@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n| `@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces` |\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/crypto` | `src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` | `src/platform/packages/private/kbn-handlebars` |\n| `@kbn/safer-lodash-set` |\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n| `@kbn/security-api-key-management` |\n`x-pack/platform/packages/shared/security/api_key_management` |\n| `@kbn/security-authorization-core` |\n`x-pack/platform/packages/private/security/authorization_core` |\n| `@kbn/security-authorization-core-common` |\n`x-pack/platform/packages/private/security/authorization_core_common` |\n| `@kbn/security-form-components` |\n`x-pack/platform/packages/shared/security/form_components` |\n| `@kbn/security-hardening` |\n`src/platform/packages/shared/kbn-security-hardening` |\n| `@kbn/security-plugin-types-common` |\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n| `@kbn/security-plugin-types-public` |\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n| `@kbn/security-plugin-types-server` |\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n| `@kbn/security-role-management-model` |\n`x-pack/platform/packages/private/security/role_management_model` |\n| `@kbn/security-ui-components` |\n`x-pack/platform/packages/private/security/ui_components` |\n| `@kbn/user-profile-components` |\n`src/platform/packages/shared/kbn-user-profile-components` |\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details >\n<summary>Updated references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Michael Dokolin <[email protected]>\nCo-authored-by: “jeramysoucy” <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202748","number":202748,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-security` (#202748)\n\n## Summary\n\nThis PR aims at relocating some of the Kibana modules (plugins and\npackages) into a new folder structure, according to the _Sustainable\nKibana Architecture_ initiative.\n\n> [!IMPORTANT]\n> * We kindly ask you to:\n> * Manually fix the errors in the error section below (if there are\nany).\n> * Search for the `packages[\\/\\\\]` and `plugins[\\/\\\\]` patterns in the\nsource code (Babel and Eslint config files), and update them\nappropriately.\n> * Manually review\n`.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that\nany CI pipeline customizations continue to be correctly applied after\nthe changed path names\n> * Review all of the updated files, specially the `.ts` and `.js` files\nlisted in the sections below, as some of them contain relative paths\nthat have been updated.\n> * Think of potential impact of the move, including tooling and\nconfiguration files that can be pointing to the relocated modules. E.g.:\n> * customised eslint rules\n> * docs pointing to source code\n\n> [!NOTE]\n> * This PR has been auto-generated.\n> * Any manual contributions will be lost if the 'relocate' script is\nre-run.\n> * Try to obtain the missing reviews / approvals before applying manual\nfixes, and/or keep your changes in a .patch / git stash.\n> * Please use\n[#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E)\nSlack channel for feedback.\n\nAre you trying to rebase this PR to solve merge conflicts? Please follow\nthe steps describe\n[here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E).\n\n#### 4 plugin(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/encrypted-saved-objects-plugin` |\n`x-pack/platform/plugins/shared/encrypted_saved_objects` |\n| `@kbn/interactive-setup-plugin` |\n`src/platform/plugins/private/interactive_setup` |\n| `@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` |\n| `@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces` |\n\n\n\n\n#### 14 packages(s) are going to be relocated:\n\n| Id | Target folder |\n| -- | ------------- |\n| `@kbn/crypto` | `src/platform/packages/shared/kbn-crypto` |\n| `@kbn/handlebars` | `src/platform/packages/private/kbn-handlebars` |\n| `@kbn/safer-lodash-set` |\n`src/platform/packages/shared/kbn-safer-lodash-set` |\n| `@kbn/security-api-key-management` |\n`x-pack/platform/packages/shared/security/api_key_management` |\n| `@kbn/security-authorization-core` |\n`x-pack/platform/packages/private/security/authorization_core` |\n| `@kbn/security-authorization-core-common` |\n`x-pack/platform/packages/private/security/authorization_core_common` |\n| `@kbn/security-form-components` |\n`x-pack/platform/packages/shared/security/form_components` |\n| `@kbn/security-hardening` |\n`src/platform/packages/shared/kbn-security-hardening` |\n| `@kbn/security-plugin-types-common` |\n`x-pack/platform/packages/shared/security/plugin_types_common` |\n| `@kbn/security-plugin-types-public` |\n`x-pack/platform/packages/shared/security/plugin_types_public` |\n| `@kbn/security-plugin-types-server` |\n`x-pack/platform/packages/shared/security/plugin_types_server` |\n| `@kbn/security-role-management-model` |\n`x-pack/platform/packages/private/security/role_management_model` |\n| `@kbn/security-ui-components` |\n`x-pack/platform/packages/private/security/ui_components` |\n| `@kbn/user-profile-components` |\n`src/platform/packages/shared/kbn-user-profile-components` |\n\n\n<details open>\n<summary>Script errors</summary>\n\n```\nCannot replace multiple occurrences of \"../..\" in the same line, please fix manually:\t/Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6\n```\n\n</details><details >\n<summary>Updated references</summary>\n\n```\n./.buildkite/scripts/steps/test/kbn_handlebars.sh\n./.eslintrc.js\n./.i18nrc.json\n./docs/developer/advanced/sharing-saved-objects.asciidoc\n./docs/developer/plugin-list.asciidoc\n./legacy_rfcs/text/0007_lifecycle_unblocked.md\n./legacy_rfcs/text/0016_ols_phase_1.md\n./package.json\n./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts\n./packages/kbn-ts-projects/config-paths.json\n./packages/kbn-user-profile-components/src/user_profile.ts\n./src/core/packages/saved-objects/common/src/types.ts\n./src/core/packages/security/server/src/audit_logging/audit_logger.ts\n./src/core/packages/user-profile/common/src/user_profile.ts\n./src/dev/precommit_hook/casing_check_config.js\n./src/platform/packages/private/kbn-handlebars/README.md\n./src/platform/packages/private/kbn-handlebars/index.test.ts\n./src/platform/packages/private/kbn-handlebars/index.ts\n./src/platform/packages/private/kbn-handlebars/jest.config.js\n./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh\n./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js\n./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh\n./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts\n./src/platform/packages/private/kbn-handlebars/src/handlebars.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts\n./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts\n./src/platform/packages/private/kbn-handlebars/src/symbols.ts\n./src/platform/packages/private/kbn-handlebars/src/types.ts\n./src/platform/packages/private/kbn-handlebars/src/utils.ts\n./src/platform/packages/private/kbn-handlebars/src/visitor.ts\n./src/platform/packages/private/kbn-repo-packages/package-map.json\n./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel\n./src/platform/packages/shared/kbn-crypto/jest.config.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/index.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/package.json\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh\n./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/set.js\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js\n./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts\n./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts\n./src/platform/packages/shared/kbn-user-profile-components/jest.config.js\n./src/platform/plugins/private/interactive_setup/jest.config.js\n./tsconfig.base.json\n./x-pack/.i18nrc.json\n./x-pack/platform/packages/private/security/authorization_core/jest.config.js\n./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js\n./x-pack/platform/packages/private/security/role_management_model/jest.config.js\n./x-pack/platform/packages/private/security/ui_components/jest.config.js\n./x-pack/platform/packages/shared/security/api_key_management/jest.config.js\n./x-pack/platform/packages/shared/security/form_components/jest.config.js\n./x-pack/platform/plugins/shared/cases/server/authorization/index.ts\n./x-pack/platform/plugins/shared/cases/server/authorization/types.ts\n./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts\n./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts\n./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md\n./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js\n./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts\n./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts\n./x-pack/platform/plugins/shared/security/jest.config.js\n./x-pack/platform/plugins/shared/spaces/jest.config.js\n./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts\n./yarn.lock\n.github/CODEOWNERS\n```\n\n</details><details >\n<summary>Updated relative paths</summary>\n\n```\nsrc/platform/packages/private/kbn-handlebars/jest.config.js:8\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276\nsrc/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277\nsrc/platform/packages/private/kbn-handlebars/tsconfig.json:2\nsrc/platform/packages/shared/kbn-crypto/jest.config.js:12\nsrc/platform/packages/shared/kbn-crypto/tsconfig.json:2\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:6\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:7\nsrc/platform/packages/shared/kbn-safer-lodash-set/package.json:8\nsrc/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2\nsrc/platform/packages/shared/kbn-security-hardening/tsconfig.json:2\nsrc/platform/packages/shared/kbn-user-profile-components/jest.config.js:12\nsrc/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2\nsrc/platform/plugins/private/interactive_setup/jest.config.js:12\nsrc/platform/plugins/private/interactive_setup/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core/jest.config.js:13\nx-pack/platform/packages/private/security/authorization_core/tsconfig.json:2\nx-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15\nx-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2\nx-pack/platform/packages/private/security/role_management_model/jest.config.js:14\nx-pack/platform/packages/private/security/role_management_model/tsconfig.json:2\nx-pack/platform/packages/private/security/ui_components/jest.config.js:13\nx-pack/platform/packages/private/security/ui_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/api_key_management/jest.config.js:14\nx-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2\nx-pack/platform/packages/shared/security/form_components/jest.config.js:14\nx-pack/platform/packages/shared/security/form_components/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2\nx-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2\nx-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8\nx-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10\nx-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2\nx-pack/platform/plugins/shared/security/jest.config.js:10\nx-pack/platform/plugins/shared/security/tsconfig.json:2\nx-pack/platform/plugins/shared/spaces/jest.config.js:10\nx-pack/platform/plugins/shared/spaces/tsconfig.json:2\n```\n\n</details>\n\n---------\n\nCo-authored-by: Michael Dokolin <[email protected]>\nCo-authored-by: “jeramysoucy” <[email protected]>\nCo-authored-by: kibanamachine <[email protected]>","sha":"ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Gerard Soldevila <[email protected]>
- Loading branch information