From 92dd35e48650e1a940771e99cb7a2f22f0272714 Mon Sep 17 00:00:00 2001 From: Gerard Soldevila Date: Sun, 5 Jan 2025 12:57:01 +0100 Subject: [PATCH] Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-security` (#202748) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary This PR aims at relocating some of the Kibana modules (plugins and packages) into a new folder structure, according to the _Sustainable Kibana Architecture_ initiative. > [!IMPORTANT] > * We kindly ask you to: > * Manually fix the errors in the error section below (if there are any). > * Search for the `packages[\/\\]` and `plugins[\/\\]` patterns in the source code (Babel and Eslint config files), and update them appropriately. > * Manually review `.buildkite/scripts/pipelines/pull_request/pipeline.ts` to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names > * Review all of the updated files, specially the `.ts` and `.js` files listed in the sections below, as some of them contain relative paths that have been updated. > * Think of potential impact of the move, including tooling and configuration files that can be pointing to the relocated modules. E.g.: > * customised eslint rules > * docs pointing to source code > [!NOTE] > * This PR has been auto-generated. > * Any manual contributions will be lost if the 'relocate' script is re-run. > * Try to obtain the missing reviews / approvals before applying manual fixes, and/or keep your changes in a .patch / git stash. > * Please use [#sustainable_kibana_architecture](https://elastic.slack.com/archives/C07TCKTA22E) Slack channel for feedback. Are you trying to rebase this PR to solve merge conflicts? Please follow the steps describe [here](https://elastic.slack.com/archives/C07TCKTA22E/p1734019532879269?thread_ts=1734019339.935419&cid=C07TCKTA22E). #### 4 plugin(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/encrypted-saved-objects-plugin` | `x-pack/platform/plugins/shared/encrypted_saved_objects` | | `@kbn/interactive-setup-plugin` | `src/platform/plugins/private/interactive_setup` | | `@kbn/security-plugin` | `x-pack/platform/plugins/shared/security` | | `@kbn/spaces-plugin` | `x-pack/platform/plugins/shared/spaces` | #### 14 packages(s) are going to be relocated: | Id | Target folder | | -- | ------------- | | `@kbn/crypto` | `src/platform/packages/shared/kbn-crypto` | | `@kbn/handlebars` | `src/platform/packages/private/kbn-handlebars` | | `@kbn/safer-lodash-set` | `src/platform/packages/shared/kbn-safer-lodash-set` | | `@kbn/security-api-key-management` | `x-pack/platform/packages/shared/security/api_key_management` | | `@kbn/security-authorization-core` | `x-pack/platform/packages/private/security/authorization_core` | | `@kbn/security-authorization-core-common` | `x-pack/platform/packages/private/security/authorization_core_common` | | `@kbn/security-form-components` | `x-pack/platform/packages/shared/security/form_components` | | `@kbn/security-hardening` | `src/platform/packages/shared/kbn-security-hardening` | | `@kbn/security-plugin-types-common` | `x-pack/platform/packages/shared/security/plugin_types_common` | | `@kbn/security-plugin-types-public` | `x-pack/platform/packages/shared/security/plugin_types_public` | | `@kbn/security-plugin-types-server` | `x-pack/platform/packages/shared/security/plugin_types_server` | | `@kbn/security-role-management-model` | `x-pack/platform/packages/private/security/role_management_model` | | `@kbn/security-ui-components` | `x-pack/platform/packages/private/security/ui_components` | | `@kbn/user-profile-components` | `src/platform/packages/shared/kbn-user-profile-components` |
Script errors ``` Cannot replace multiple occurrences of "../.." in the same line, please fix manually: /Users/dokmic/work/elastic/kibana/src/platform/packages/shared/kbn-safer-lodash-set/package.json:6 ```
Updated references ``` ./.buildkite/scripts/steps/test/kbn_handlebars.sh ./.eslintrc.js ./.i18nrc.json ./docs/developer/advanced/sharing-saved-objects.asciidoc ./docs/developer/plugin-list.asciidoc ./legacy_rfcs/text/0007_lifecycle_unblocked.md ./legacy_rfcs/text/0016_ols_phase_1.md ./package.json ./packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts ./packages/kbn-ts-projects/config-paths.json ./packages/kbn-user-profile-components/src/user_profile.ts ./src/core/packages/saved-objects/common/src/types.ts ./src/core/packages/security/server/src/audit_logging/audit_logger.ts ./src/core/packages/user-profile/common/src/user_profile.ts ./src/dev/precommit_hook/casing_check_config.js ./src/platform/packages/private/kbn-handlebars/README.md ./src/platform/packages/private/kbn-handlebars/index.test.ts ./src/platform/packages/private/kbn-handlebars/index.ts ./src/platform/packages/private/kbn-handlebars/jest.config.js ./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh ./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js ./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh ./src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts ./src/platform/packages/private/kbn-handlebars/src/handlebars.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts ./src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts ./src/platform/packages/private/kbn-handlebars/src/symbols.ts ./src/platform/packages/private/kbn-handlebars/src/types.ts ./src/platform/packages/private/kbn-handlebars/src/utils.ts ./src/platform/packages/private/kbn-handlebars/src/visitor.ts ./src/platform/packages/private/kbn-repo-packages/package-map.json ./src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel ./src/platform/packages/shared/kbn-crypto/jest.config.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js ./src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/index.js ./src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js ./src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js ./src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js ./src/platform/packages/shared/kbn-safer-lodash-set/package.json ./src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh ./src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt ./src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh ./src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh ./src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/set.js ./src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts ./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js ./src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts ./src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts ./src/platform/packages/shared/kbn-user-profile-components/jest.config.js ./src/platform/plugins/private/interactive_setup/jest.config.js ./tsconfig.base.json ./x-pack/.i18nrc.json ./x-pack/platform/packages/private/security/authorization_core/jest.config.js ./x-pack/platform/packages/private/security/authorization_core_common/jest.config.js ./x-pack/platform/packages/private/security/role_management_model/jest.config.js ./x-pack/platform/packages/private/security/ui_components/jest.config.js ./x-pack/platform/packages/shared/security/api_key_management/jest.config.js ./x-pack/platform/packages/shared/security/form_components/jest.config.js ./x-pack/platform/plugins/shared/cases/server/authorization/index.ts ./x-pack/platform/plugins/shared/cases/server/authorization/types.ts ./x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts ./x-pack/platform/plugins/shared/cases/server/routes/api/utils.ts ./x-pack/platform/plugins/shared/encrypted_saved_objects/README.md ./x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js ./x-pack/platform/plugins/shared/fleet/common/http_authorization_header.ts ./x-pack/platform/plugins/shared/rule_registry/server/lib/get_is_kibana_request.ts ./x-pack/platform/plugins/shared/security/jest.config.js ./x-pack/platform/plugins/shared/spaces/jest.config.js ./x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts ./yarn.lock .github/CODEOWNERS ```
Updated relative paths ``` src/platform/packages/private/kbn-handlebars/jest.config.js:8 src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:276 src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts:277 src/platform/packages/private/kbn-handlebars/tsconfig.json:2 src/platform/packages/shared/kbn-crypto/jest.config.js:12 src/platform/packages/shared/kbn-crypto/tsconfig.json:2 src/platform/packages/shared/kbn-safer-lodash-set/package.json:6 src/platform/packages/shared/kbn-safer-lodash-set/package.json:7 src/platform/packages/shared/kbn-safer-lodash-set/package.json:8 src/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json:2 src/platform/packages/shared/kbn-security-hardening/tsconfig.json:2 src/platform/packages/shared/kbn-user-profile-components/jest.config.js:12 src/platform/packages/shared/kbn-user-profile-components/tsconfig.json:2 src/platform/plugins/private/interactive_setup/jest.config.js:12 src/platform/plugins/private/interactive_setup/tsconfig.json:2 x-pack/platform/packages/private/security/authorization_core/jest.config.js:13 x-pack/platform/packages/private/security/authorization_core/tsconfig.json:2 x-pack/platform/packages/private/security/authorization_core_common/jest.config.js:15 x-pack/platform/packages/private/security/authorization_core_common/tsconfig.json:2 x-pack/platform/packages/private/security/role_management_model/jest.config.js:14 x-pack/platform/packages/private/security/role_management_model/tsconfig.json:2 x-pack/platform/packages/private/security/ui_components/jest.config.js:13 x-pack/platform/packages/private/security/ui_components/tsconfig.json:2 x-pack/platform/packages/shared/security/api_key_management/jest.config.js:14 x-pack/platform/packages/shared/security/api_key_management/tsconfig.json:2 x-pack/platform/packages/shared/security/form_components/jest.config.js:14 x-pack/platform/packages/shared/security/form_components/tsconfig.json:2 x-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json:2 x-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json:2 x-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json:2 x-pack/platform/plugins/shared/encrypted_saved_objects/README.md:8 x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js:10 x-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json:2 x-pack/platform/plugins/shared/security/jest.config.js:10 x-pack/platform/plugins/shared/security/tsconfig.json:2 x-pack/platform/plugins/shared/spaces/jest.config.js:10 x-pack/platform/plugins/shared/spaces/tsconfig.json:2 ```
--------- Co-authored-by: Michael Dokolin Co-authored-by: “jeramysoucy” Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit ca5a08db0029d5b9e2cd5139b23a05c5ae09ddad) # Conflicts: # .github/CODEOWNERS # x-pack/.i18nrc.json --- .../pipelines/pull_request/pipeline.ts | 22 +- .../scripts/steps/test/kbn_handlebars.sh | 2 +- .eslintrc.js | 34 +- .github/CODEOWNERS | 39 +- .i18nrc.json | 4 +- .../advanced/sharing-saved-objects.asciidoc | 6 +- docs/developer/plugin-list.asciidoc | 8 +- legacy_rfcs/text/0007_lifecycle_unblocked.md | 2 +- package.json | 36 +- .../providers/cruiser.test.ts | 20 +- packages/kbn-handlebars/jest.config.js | 10 - .../saved-objects/common/src/types.ts | 1 - .../server/src/audit_logging/audit_logger.ts | 2 +- .../user-profile/common/src/user_profile.ts | 2 +- src/dev/precommit_hook/casing_check_config.js | 6 +- .../packages/private}/kbn-handlebars/LICENSE | 2 +- .../private}/kbn-handlebars/README.md | 14 +- .../__snapshots__/index.test.ts.snap | 0 .../private}/kbn-handlebars/index.test.ts | 2 +- .../packages/private}/kbn-handlebars/index.ts | 2 +- .../private/kbn-handlebars/jest.config.js | 10 + .../private}/kbn-handlebars/kibana.jsonc | 0 .../private}/kbn-handlebars/package.json | 0 .../scripts/check_for_upstream_updates.sh | 6 +- .../kbn-handlebars/scripts/print_ast.js | 2 +- .../scripts/update_upstream_git_hash.sh | 2 +- .../kbn-handlebars/src/__jest__/test_bench.ts | 2 +- .../private}/kbn-handlebars/src/handlebars.ts | 2 +- .../src/spec/.upstream_git_hash | 0 .../src/spec/index.basic.test.ts | 2 +- .../src/spec/index.blocks.test.ts | 2 +- .../src/spec/index.builtins.test.ts | 2 +- .../src/spec/index.compiler.test.ts | 2 +- .../src/spec/index.data.test.ts | 2 +- .../src/spec/index.helpers.test.ts | 2 +- .../src/spec/index.partials.test.ts | 2 +- .../src/spec/index.regressions.test.ts | 6 +- .../src/spec/index.security.test.ts | 2 +- .../src/spec/index.strict.test.ts | 2 +- .../src/spec/index.subexpressions.test.ts | 2 +- .../src/spec/index.utils.test.ts | 2 +- .../src/spec/index.whitespace_control.test.ts | 2 +- .../private}/kbn-handlebars/src/symbols.ts | 2 +- .../private}/kbn-handlebars/src/types.ts | 2 +- .../private}/kbn-handlebars/src/utils.ts | 2 +- .../private}/kbn-handlebars/src/visitor.ts | 2 +- .../private}/kbn-handlebars/tsconfig.json | 2 +- .../kbn-ui-shared-deps-src/BUILD.bazel | 2 +- .../packages/shared}/kbn-crypto/README.md | 0 .../packages/shared}/kbn-crypto/index.ts | 0 .../shared}/kbn-crypto/jest.config.js | 4 +- .../packages/shared}/kbn-crypto/kibana.jsonc | 0 .../packages/shared}/kbn-crypto/package.json | 0 .../kbn-crypto/src/__fixtures__/README.md | 0 .../kbn-crypto/src/__fixtures__/index.ts | 0 .../kbn-crypto/src/__fixtures__/no_ca.p12 | Bin .../kbn-crypto/src/__fixtures__/no_cert.p12 | Bin .../kbn-crypto/src/__fixtures__/no_key.p12 | Bin .../kbn-crypto/src/__fixtures__/two_cas.p12 | Bin .../kbn-crypto/src/__fixtures__/two_keys.p12 | Bin .../shared}/kbn-crypto/src/pkcs12.test.ts | 0 .../packages/shared}/kbn-crypto/src/pkcs12.ts | 0 .../shared}/kbn-crypto/src/sha256.test.ts | 0 .../packages/shared}/kbn-crypto/src/sha256.ts | 0 .../packages/shared}/kbn-crypto/tsconfig.json | 2 +- .../shared}/kbn-safer-lodash-set/.gitignore | 0 .../shared}/kbn-safer-lodash-set/.npmignore | 0 .../shared}/kbn-safer-lodash-set/BUILD.bazel | 0 .../shared}/kbn-safer-lodash-set/LICENSE | 0 .../shared}/kbn-safer-lodash-set/README.md | 0 .../kbn-safer-lodash-set/fp/assoc.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/fp/assoc.js | 2 +- .../kbn-safer-lodash-set/fp/assocPath.d.ts | 2 +- .../kbn-safer-lodash-set/fp/assocPath.js | 2 +- .../kbn-safer-lodash-set/fp/index.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/fp/index.js | 2 +- .../shared/kbn-safer-lodash-set/fp}/set.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/fp/set.js | 2 +- .../kbn-safer-lodash-set/fp/setWith.d.ts | 2 +- .../kbn-safer-lodash-set/fp/setWith.js | 2 +- .../shared}/kbn-safer-lodash-set/index.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/index.js | 2 +- .../shared}/kbn-safer-lodash-set/kibana.jsonc | 0 .../kbn-safer-lodash-set/lodash/_baseSet.js | 2 +- .../kbn-safer-lodash-set/lodash/set.js | 2 +- .../kbn-safer-lodash-set/lodash/setWith.js | 2 +- .../shared}/kbn-safer-lodash-set/package.json | 6 +- .../scripts/_get_lodash.sh | 2 +- .../scripts/license-header.txt | 2 +- .../scripts/patches/_baseSet.js.patch | 0 .../scripts/save_state.sh | 2 +- .../kbn-safer-lodash-set/scripts/update.sh | 2 +- .../shared/kbn-safer-lodash-set}/set.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/set.js | 2 +- .../shared}/kbn-safer-lodash-set/setWith.d.ts | 2 +- .../shared}/kbn-safer-lodash-set/setWith.js | 2 +- .../shared}/kbn-safer-lodash-set/test/fp.ts | 2 +- .../kbn-safer-lodash-set/test/fp_assoc.ts | 2 +- .../kbn-safer-lodash-set/test/fp_assocPath.ts | 2 +- .../test/fp_patch_test.js | 2 +- .../kbn-safer-lodash-set/test/fp_set.ts | 2 +- .../kbn-safer-lodash-set/test/fp_setWith.ts | 2 +- .../kbn-safer-lodash-set/test/index.ts | 2 +- .../kbn-safer-lodash-set/test/patch_test.js | 2 +- .../shared}/kbn-safer-lodash-set/test/set.ts | 2 +- .../kbn-safer-lodash-set/test/setWith.ts | 2 +- .../kbn-safer-lodash-set/tsconfig.json | 2 +- .../shared}/kbn-security-hardening/README.md | 0 .../shared}/kbn-security-hardening/console.ts | 0 .../shared}/kbn-security-hardening/index.ts | 0 .../kbn-security-hardening/kibana.jsonc | 0 .../kbn-security-hardening/package.json | 0 .../kbn-security-hardening/tsconfig.json | 2 +- .../kbn-user-profile-components/index.ts | 0 .../jest.config.js | 4 +- .../kbn-user-profile-components/kibana.jsonc | 0 .../kbn-user-profile-components/package.json | 0 .../src/hooks/index.ts | 0 .../hooks/use_update_user_profile.test.tsx | 0 .../src/hooks/use_update_user_profile.tsx | 0 .../src/services.tsx | 0 .../kbn-user-profile-components/src/types.ts | 0 .../src/user_avatar.test.tsx | 0 .../src/user_avatar.tsx | 0 .../src/user_avatar_tip.test.tsx | 0 .../src/user_avatar_tip.tsx | 0 .../src/user_profile.ts | 2 +- .../src/user_profiles_popover.test.tsx | 0 .../src/user_profiles_popover.tsx | 0 .../src/user_profiles_selectable.test.tsx | 0 .../src/user_profiles_selectable.tsx | 0 .../src/user_tooltip.test.tsx | 0 .../src/user_tooltip.tsx | 0 .../kbn-user-profile-components/tsconfig.json | 2 +- .../private}/interactive_setup/README.md | 0 .../interactive_setup/common/constants.ts | 0 .../common/elasticsearch_connection_status.ts | 0 .../interactive_setup/common/index.ts | 0 .../interactive_setup/common/types.ts | 0 .../private}/interactive_setup/jest.config.js | 9 +- .../private}/interactive_setup/kibana.jsonc | 0 .../interactive_setup/public/app.scss | 0 .../private}/interactive_setup/public/app.tsx | 0 .../public/cluster_address_form.test.tsx | 0 .../public/cluster_address_form.tsx | 0 .../cluster_configuration_form.test.tsx | 0 .../public/cluster_configuration_form.tsx | 0 .../interactive_setup/public/doc_link.tsx | 0 .../public/enrollment_token_form.test.tsx | 0 .../public/enrollment_token_form.tsx | 0 .../public/get_command_line_snippet.test.ts | 0 .../public/get_command_line_snippet.ts | 0 .../interactive_setup/public/index.ts | 0 .../interactive_setup/public/plugin.tsx | 0 .../public/progress_indicator.tsx | 0 .../public/single_chars_field.tsx | 0 .../public/submit_error_callout.test.tsx | 0 .../public/submit_error_callout.tsx | 0 .../public/text_truncate.tsx | 0 .../interactive_setup/public/use_form.ts | 0 .../interactive_setup/public/use_html_id.ts | 0 .../interactive_setup/public/use_kibana.ts | 0 .../public/use_verification.tsx | 0 .../public/use_visibility.ts | 0 .../public/verification_code_form.test.tsx | 0 .../public/verification_code_form.tsx | 0 .../server/compatibility_error.ts | 0 .../interactive_setup/server/config.test.ts | 0 .../interactive_setup/server/config.ts | 0 .../server/elasticsearch_service.mock.ts | 0 .../server/elasticsearch_service.test.ts | 0 .../server/elasticsearch_service.ts | 0 .../interactive_setup/server/errors.test.ts | 0 .../interactive_setup/server/errors.ts | 0 .../interactive_setup/server/index.ts | 0 .../server/kibana_config_writer.mock.ts | 0 .../server/kibana_config_writer.test.ts | 0 .../server/kibana_config_writer.ts | 0 .../interactive_setup/server/mocks.ts | 0 .../interactive_setup/server/plugin.ts | 0 .../server/routes/configure.test.ts | 0 .../server/routes/configure.ts | 0 .../server/routes/enroll.test.ts | 0 .../interactive_setup/server/routes/enroll.ts | 0 .../server/routes/index.mock.ts | 0 .../interactive_setup/server/routes/index.ts | 0 .../server/routes/ping.test.ts | 0 .../interactive_setup/server/routes/ping.ts | 0 .../server/routes/status.test.ts | 0 .../interactive_setup/server/routes/status.ts | 0 .../server/routes/verify.test.ts | 0 .../interactive_setup/server/routes/verify.ts | 0 .../server/verification_code.mock.ts | 0 .../server/verification_code.test.ts | 0 .../server/verification_code.ts | 0 .../server/verification_service.test.ts | 0 .../server/verification_service.ts | 0 .../private}/interactive_setup/tsconfig.json | 2 +- tsconfig.base.json | 72 ++-- x-pack/.i18nrc.json | 8 +- .../security/authorization_core/README.md | 0 .../security/authorization_core/index.ts | 0 .../authorization_core/jest.config.js | 10 +- .../security/authorization_core/kibana.jsonc | 0 .../security/authorization_core/package.json | 0 .../src/__fixtures__/licensing.mock.ts | 0 .../__snapshots__/alerting.test.ts.snap | 0 .../actions/__snapshots__/api.test.ts.snap | 0 .../actions/__snapshots__/app.test.ts.snap | 0 .../actions/__snapshots__/cases.test.ts.snap | 0 .../src/actions/__snapshots__/ui.test.ts.snap | 0 .../src/actions/actions.mock.ts | 0 .../src/actions/actions.test.ts | 0 .../authorization_core/src/actions/actions.ts | 0 .../src/actions/alerting.test.ts | 0 .../src/actions/alerting.ts | 0 .../src/actions/api.test.ts | 0 .../authorization_core/src/actions/api.ts | 0 .../src/actions/app.test.ts | 0 .../authorization_core/src/actions/app.ts | 0 .../src/actions/cases.test.ts | 0 .../authorization_core/src/actions/cases.ts | 0 .../authorization_core/src/actions/index.ts | 0 .../src/actions/saved_object.test.ts | 0 .../src/actions/saved_object.ts | 0 .../src/actions/space.test.ts | 0 .../authorization_core/src/actions/space.ts | 0 .../authorization_core/src/actions/ui.test.ts | 0 .../authorization_core/src/actions/ui.ts | 0 .../__snapshots__/cases.test.ts.snap | 0 .../alerting.test.ts | 0 .../feature_privilege_builder/alerting.ts | 0 .../feature_privilege_builder/api.ts | 0 .../feature_privilege_builder/app.ts | 0 .../feature_privilege_builder/cases.test.ts | 0 .../feature_privilege_builder/cases.ts | 0 .../feature_privilege_builder/catalogue.ts | 0 .../feature_privilege_builder.ts | 0 .../feature_privilege_builder/index.ts | 0 .../feature_privilege_builder/management.ts | 0 .../feature_privilege_builder/navlink.ts | 0 .../feature_privilege_builder/saved_object.ts | 0 .../feature_privilege_builder/ui.ts | 0 .../src/privileges/index.ts | 0 .../src/privileges/privileges.test.ts | 0 .../src/privileges/privileges.ts | 0 .../security/authorization_core/tsconfig.json | 2 +- .../authorization_core_common/README.md | 0 .../authorization_core_common/index.ts | 0 .../authorization_core_common/jest.config.js | 9 +- .../authorization_core_common/kibana.jsonc | 0 .../authorization_core_common/package.json | 0 .../src/privileges/index.ts | 0 .../src/privileges/minimal_privileges.test.ts | 0 .../src/privileges/minimal_privileges.ts | 0 .../authorization_core_common/tsconfig.json | 2 +- .../security/role_management_model/README.md | 0 .../security/role_management_model/index.ts | 0 .../role_management_model/jest.config.js | 18 + .../role_management_model/kibana.jsonc | 0 .../role_management_model/package.json | 0 .../src/__fixtures__/index.ts | 0 .../src/__fixtures__/kibana_features.ts | 0 .../src/__fixtures__/kibana_privileges.ts | 0 .../src/kibana_privilege.ts | 0 .../src/kibana_privileges.test.ts | 0 .../src/kibana_privileges.ts | 0 .../src/primary_feature_privilege.ts | 0 .../src/privilege_collection.test.ts | 0 .../src/privilege_collection.ts | 0 .../src/secured_feature.ts | 0 .../src/secured_sub_feature.ts | 0 .../src/sub_feature_privilege.ts | 0 .../src/sub_feature_privilege_group.ts | 0 .../role_management_model/tsconfig.json | 2 +- .../private}/security/ui_components/README.md | 0 .../private}/security/ui_components/index.ts | 0 .../security/ui_components}/jest.config.js | 10 +- .../security/ui_components/kibana.jsonc | 0 .../security/ui_components/package.json | 0 .../security/ui_components/src/constants.ts | 0 .../__fixtures__/index.ts | 0 .../change_all_privileges.scss | 0 .../change_all_privileges.tsx | 0 .../components/feature_table_cell.scss | 0 .../components/feature_table_cell.test.tsx | 0 .../components/feature_table_cell.tsx | 0 .../components/index.ts | 0 .../kibana_privilege_table/feature_table.scss | 0 .../feature_table.test.tsx | 0 .../kibana_privilege_table/feature_table.tsx | 0 .../feature_table_expanded_row.test.tsx | 0 .../feature_table_expanded_row.tsx | 0 .../src/kibana_privilege_table/index.ts | 0 .../sub_feature_form.test.tsx | 0 .../sub_feature_form.tsx | 0 .../src/privilege_form_calculator/index.ts | 0 .../privilege_form_calculator.test.ts | 0 .../privilege_form_calculator.ts | 0 .../security/ui_components/tsconfig.json | 2 +- .../security/api_key_management/README.md | 0 .../security/api_key_management/index.ts | 0 .../api_key_management/jest.config.js | 18 + .../security/api_key_management/kibana.jsonc | 0 .../security/api_key_management/package.json | 0 .../src/components/api_key_badge.tsx | 0 .../components/api_key_created_callout.tsx | 0 .../src/components/api_key_flyout.tsx | 0 .../src/components/api_key_status.tsx | 0 .../components/api_keys_api_client.test.ts | 0 .../src/components/api_keys_api_client.ts | 0 .../src/components/doc_link.tsx | 0 .../src/components/index.ts | 0 .../src/components/time_tool_tip.tsx | 0 .../src/components/token_field.tsx | 0 .../security/api_key_management/tsconfig.json | 2 +- .../security/form_components/README.md | 0 .../shared}/security/form_components/index.ts | 0 .../security/form_components/jest.config.js | 18 + .../security/form_components/kibana.jsonc | 0 .../security/form_components/package.json | 0 .../form_components/src/form_changes.test.tsx | 0 .../form_components/src/form_changes.tsx | 0 .../form_components/src/form_field.test.tsx | 0 .../form_components/src/form_field.tsx | 0 .../form_components/src/form_label.test.tsx | 0 .../form_components/src/form_label.tsx | 0 .../form_components/src/form_row.test.tsx | 0 .../security/form_components/src/form_row.tsx | 0 .../security/form_components/src/index.ts | 0 .../security/form_components/tsconfig.json | 2 +- .../security/plugin_types_common/README.md | 0 .../security/plugin_types_common/index.ts | 0 .../security/plugin_types_common/kibana.jsonc | 0 .../security/plugin_types_common/package.json | 0 .../src/api_keys/api_key.ts | 0 .../src/authentication/index.ts | 0 .../src/authorization/features_privileges.ts | 0 .../src/authorization/index.ts | 0 .../authorization/raw_kibana_privileges.ts | 0 .../src/authorization/role.ts | 0 .../src/licensing/index.ts | 0 .../src/licensing/license.ts | 0 .../src/licensing/license_features.ts | 0 .../src/user_profile/index.ts | 0 .../plugin_types_common/tsconfig.json | 2 +- .../security/plugin_types_public/README.md | 0 .../security/plugin_types_public/index.ts | 0 .../security/plugin_types_public/kibana.jsonc | 0 .../security/plugin_types_public/package.json | 0 .../authentication/authentication_service.ts | 0 .../src/authentication/index.ts | 0 .../authorization/authorization_service.ts | 0 .../src/authorization/index.ts | 0 .../plugin_types_public/src/license/index.ts | 0 .../src/nav_control/index.ts | 0 .../src/nav_control/nav_control_service.ts | 0 .../plugin_types_public/src/plugin.ts | 0 .../src/privileges/index.ts | 0 .../src/privileges/privileges_api_client.ts | 0 .../plugin_types_public/src/roles/index.ts | 0 .../src/roles/roles_api_client.ts | 0 .../src/user_profile/index.ts | 0 .../user_profile/user_profile_api_client.ts | 0 .../plugin_types_public/tsconfig.json | 2 +- .../security/plugin_types_server/README.md | 0 .../security/plugin_types_server/index.ts | 0 .../security/plugin_types_server/kibana.jsonc | 0 .../security/plugin_types_server/package.json | 0 .../src/audit/audit_service.ts | 0 .../plugin_types_server/src/audit/index.ts | 0 .../src/authentication/api_keys/api_keys.ts | 0 .../src/authentication/api_keys/index.ts | 0 .../authentication/authentication_service.ts | 0 .../src/authentication/index.ts | 0 .../src/authorization/actions/actions.ts | 0 .../src/authorization/actions/alerting.ts | 0 .../src/authorization/actions/api.ts | 0 .../src/authorization/actions/app.ts | 0 .../src/authorization/actions/cases.ts | 0 .../src/authorization/actions/index.ts | 0 .../src/authorization/actions/saved_object.ts | 0 .../src/authorization/actions/space.ts | 0 .../src/authorization/actions/ui.ts | 0 .../authorization/authorization_service.ts | 0 .../src/authorization/check_privileges.ts | 0 .../check_privileges_dynamically.ts | 0 .../check_saved_objects_privileges.ts | 0 .../src/authorization/constants.ts | 0 .../src/authorization/deprecations.ts | 0 .../src/authorization/es_security_config.ts | 0 .../src/authorization/index.ts | 0 .../src/authorization/mode.ts | 0 .../src/authorization/role_schema.ts | 0 .../plugin_types_server/src/plugin.ts | 0 .../src/user_profile/index.ts | 0 .../plugin_types_server/tsconfig.json | 2 +- .../schema/xpack_platform.json | 388 ++++++++++++++++++ .../cases/server/authorization/index.ts | 2 +- .../cases/server/authorization/types.ts | 2 +- .../cases/server/connectors/cases/utils.ts | 2 +- .../shared}/encrypted_saved_objects/README.md | 4 +- .../encrypted_saved_objects}/jest.config.js | 12 +- .../encrypted_saved_objects/kibana.jsonc | 0 .../server/config.test.ts | 0 .../encrypted_saved_objects/server/config.ts | 0 .../server/create_migration.test.ts | 0 .../server/create_migration.ts | 0 .../server/create_model_version.test.ts | 0 .../server/create_model_version.ts | 0 ...ypted_saved_object_type_definition.test.ts | 0 .../encrypted_saved_object_type_definition.ts | 0 .../encrypted_saved_objects_service.mocks.ts | 0 .../encrypted_saved_objects_service.test.ts | 0 .../crypto/encrypted_saved_objects_service.ts | 0 .../server/crypto/encryption_error.test.ts | 0 .../server/crypto/encryption_error.ts | 0 .../encryption_key_rotation_service.mocks.ts | 0 .../encryption_key_rotation_service.test.ts | 0 .../crypto/encryption_key_rotation_service.ts | 0 .../server/crypto/index.mock.ts | 0 .../server/crypto/index.ts | 0 .../encrypted_saved_objects/server/index.ts | 0 .../encrypted_saved_objects/server/mocks.ts | 0 .../server/plugin.test.ts | 0 .../encrypted_saved_objects/server/plugin.ts | 0 .../server/routes/index.mock.ts | 0 .../server/routes/index.ts | 0 .../server/routes/key_rotation.test.ts | 0 .../server/routes/key_rotation.ts | 0 .../get_descriptor_namespace.test.ts | 0 .../saved_objects/get_descriptor_namespace.ts | 0 .../server/saved_objects/index.test.ts | 0 .../server/saved_objects/index.ts | 0 .../server/saved_objects/map_attributes.ts | 0 ...objects_encryption_extension.test.mocks.ts | 0 ...saved_objects_encryption_extension.test.ts | 0 .../saved_objects_encryption_extension.ts | 0 .../encrypted_saved_objects/tsconfig.json | 2 +- .../plugins/shared}/security/README.md | 0 .../shared}/security/common/constants.ts | 0 .../plugins/shared}/security/common/index.ts | 0 .../security/common/licensing/index.mock.ts | 0 .../security/common/licensing/index.ts | 0 .../common/licensing/license_service.test.ts | 0 .../common/licensing/license_service.ts | 0 .../shared}/security/common/login_state.ts | 0 .../common/model/authenticated_user.mock.ts | 0 .../common/model/authenticated_user.test.ts | 0 .../common/model/authenticated_user.ts | 0 .../model/authentication_provider.test.ts | 0 .../common/model/authentication_provider.ts | 0 .../common/model/builtin_es_privileges.ts | 0 .../shared}/security/common/model/index.ts | 0 .../security/common/model/role.test.ts | 0 .../shared}/security/common/model/role.ts | 0 .../security/common/model/role_mapping.ts | 0 .../security/common/model/user.test.ts | 0 .../shared}/security/common/model/user.ts | 0 .../common/model/user_profile.mock.ts | 0 .../security/common/model/user_profile.ts | 0 .../plugins/shared}/security/common/types.ts | 0 .../plugins/shared/security}/jest.config.js | 12 +- .../plugins/shared}/security/kibana.jsonc | 0 .../account_management_app.test.tsx | 0 .../account_management_app.tsx | 0 .../account_management_page.test.tsx | 0 .../account_management_page.tsx | 0 .../public/account_management/index.ts | 0 .../account_management/user_profile/index.ts | 0 .../user_profile/user_profile.test.tsx | 0 .../user_profile/user_profile.tsx | 0 .../user_profile_api_client.test.ts | 0 .../user_profile/user_profile_api_client.ts | 0 .../account_management/user_profile/utils.ts | 0 .../analytics/analytics_service.test.ts | 0 .../public/analytics/analytics_service.ts | 0 .../security/public/analytics/index.ts | 0 .../analytics/register_user_context.test.ts | 0 .../public/analytics/register_user_context.ts | 0 .../anonymous_access_service.ts | 0 .../security/public/anonymous_access/index.ts | 0 .../access_agreement_page.test.tsx.snap | 0 .../access_agreement_app.test.ts | 0 .../access_agreement/access_agreement_app.ts | 0 .../access_agreement_page.scss | 0 .../access_agreement_page.test.tsx | 0 .../access_agreement_page.tsx | 0 .../authentication/access_agreement/index.ts | 0 .../authentication/authentication_service.ts | 0 .../capture_url/capture_url_app.test.ts | 0 .../capture_url/capture_url_app.ts | 0 .../authentication/capture_url/index.ts | 0 .../authentication_state_page.test.tsx.snap | 0 .../authentication_state_page.scss | 0 .../authentication_state_page.test.tsx | 0 .../authentication_state_page.tsx | 0 .../authentication_state_page/index.tsx | 0 .../public/authentication/components/index.ts | 0 .../public/authentication/index.mock.ts | 0 .../security/public/authentication/index.ts | 0 .../public/authentication/logged_out/index.ts | 0 .../logged_out/logged_out_app.test.ts | 0 .../logged_out/logged_out_app.ts | 0 .../logged_out/logged_out_page.test.tsx | 0 .../logged_out/logged_out_page.tsx | 0 .../__snapshots__/login_page.test.tsx.snap | 0 .../disabled_login_form.test.tsx.snap | 0 .../disabled_login_form.test.tsx | 0 .../disabled_login_form.tsx | 0 .../components/disabled_login_form/index.ts | 0 .../authentication/login/components/index.ts | 0 .../__snapshots__/login_form.test.tsx.snap | 0 .../login/components/login_form/index.ts | 0 .../components/login_form/login_form.scss | 0 .../components/login_form/login_form.test.tsx | 0 .../components/login_form/login_form.tsx | 0 .../login_form/validate_login.test.ts | 0 .../components/login_form/validate_login.ts | 0 .../public/authentication/login/index.ts | 0 .../authentication/login/login_app.test.ts | 0 .../public/authentication/login/login_app.ts | 0 .../authentication/login/login_page.scss | 0 .../authentication/login/login_page.test.tsx | 0 .../authentication/login/login_page.tsx | 0 .../public/authentication/logout/index.ts | 0 .../authentication/logout/logout_app.test.ts | 0 .../authentication/logout/logout_app.ts | 0 .../overwritten_session_page.test.tsx.snap | 0 .../overwritten_session/index.ts | 0 .../overwritten_session_app.test.ts | 0 .../overwritten_session_app.ts | 0 .../overwritten_session_page.test.tsx | 0 .../overwritten_session_page.tsx | 0 .../authorization/authorization_service.ts | 0 .../security/public/authorization/index.ts | 0 .../public/build_delegate_api.test.ts | 0 .../security/public/build_delegate_api.ts | 0 .../public/components/breadcrumb.test.tsx | 0 .../security/public/components/breadcrumb.tsx | 0 .../security/public/components/doc_link.tsx | 0 .../security/public/components/index.ts | 0 .../security_api_clients_provider.ts | 0 .../public/components/use_badge.test.tsx | 0 .../security/public/components/use_badge.ts | 0 .../components/use_capabilities.test.tsx | 0 .../public/components/use_capabilities.ts | 0 .../public/components/use_current_user.ts | 0 .../security/public/components/use_form.ts | 0 .../security/public/components/use_html_id.ts | 0 .../public/components/use_initial_focus.ts | 0 .../plugins/shared}/security/public/config.ts | 0 .../plugins/shared}/security/public/index.ts | 0 .../api_keys/api_keys_api_client.mock.ts | 0 .../api_keys_grid/api_keys_empty_prompt.tsx | 0 .../api_keys_grid/api_keys_grid_page.test.tsx | 0 .../api_keys_grid/api_keys_grid_page.tsx | 0 .../api_keys/api_keys_grid/api_keys_table.tsx | 0 .../api_keys/api_keys_grid/index.ts | 0 .../invalidate_provider/index.ts | 0 .../invalidate_provider.tsx | 0 .../api_keys_grid/not_enabled/index.ts | 0 .../api_keys_grid/not_enabled/not_enabled.tsx | 0 .../api_keys_grid/permission_denied/index.ts | 0 .../permission_denied/permission_denied.tsx | 0 .../api_keys/api_keys_management_app.test.tsx | 0 .../api_keys/api_keys_management_app.tsx | 0 .../public/management/api_keys/index.mock.ts | 0 .../public/management/api_keys/index.ts | 0 .../management/badges/deprecated_badge.tsx | 0 .../management/badges/disabled_badge.tsx | 0 .../management/badges/enabled_badge.tsx | 0 .../public/management/badges/index.ts | 0 .../management/badges/optional_tooltip.tsx | 0 .../management/badges/readonly_badge.tsx | 0 .../management/badges/reserved_badge.tsx | 0 .../security/public/management/index.ts | 0 .../management/management_service.test.ts | 0 .../public/management/management_service.ts | 0 .../public/management/management_urls.ts | 0 .../public/management/role_combo_box/index.ts | 0 .../role_combo_box/role_combo_box.test.tsx | 0 .../role_combo_box/role_combo_box.tsx | 0 .../delete_provider/delete_provider.test.tsx | 0 .../delete_provider/delete_provider.tsx | 0 .../components/delete_provider/index.ts | 0 .../role_mappings/components/index.ts | 0 .../components/no_compatible_realms/index.ts | 0 .../no_compatible_realms.tsx | 0 .../components/permission_denied/index.ts | 0 .../permission_denied/permission_denied.tsx | 0 .../components/section_loading/index.ts | 0 .../section_loading/section_loading.test.tsx | 0 .../section_loading/section_loading.tsx | 0 .../edit_role_mapping_page.test.tsx | 0 .../edit_role_mapping_page.tsx | 0 .../role_mappings/edit_role_mapping/index.ts | 0 .../mapping_info_panel/index.ts | 0 .../mapping_info_panel.test.tsx | 0 .../mapping_info_panel/mapping_info_panel.tsx | 0 .../add_role_template_button.test.tsx | 0 .../add_role_template_button.tsx | 0 .../edit_role_mapping/role_selector/index.tsx | 0 .../role_selector/role_selector.test.tsx | 0 .../role_selector/role_selector.tsx | 0 .../role_template_editor.test.tsx | 0 .../role_selector/role_template_editor.tsx | 0 .../role_template_type_select.tsx | 0 .../add_rule_button.test.tsx | 0 .../rule_editor_panel/add_rule_button.tsx | 0 .../field_rule_editor.test.tsx | 0 .../rule_editor_panel/field_rule_editor.tsx | 0 .../rule_editor_panel/index.tsx | 0 .../json_rule_editor.test.tsx | 0 .../rule_editor_panel/json_rule_editor.tsx | 0 .../rule_editor_panel.test.tsx | 0 .../rule_editor_panel/rule_editor_panel.tsx | 0 .../rule_editor_panel/rule_group_editor.scss | 0 .../rule_group_editor.test.tsx | 0 .../rule_editor_panel/rule_group_editor.tsx | 0 .../rule_editor_panel/rule_group_title.tsx | 0 .../visual_rule_editor.test.tsx | 0 .../rule_editor_panel/visual_rule_editor.tsx | 0 .../services/is_rule_group.ts | 0 .../services/role_mapping_constants.ts | 0 .../services/role_mapping_validation.test.ts | 0 .../services/role_mapping_validation.ts | 0 .../services/role_template_type.test.ts | 0 .../services/role_template_type.ts | 0 .../management/role_mappings/index.mock.ts | 0 .../public/management/role_mappings/index.ts | 0 .../__snapshots__/rule_builder.test.ts.snap | 0 .../role_mappings/model/all_rule.test.ts | 0 .../role_mappings/model/all_rule.ts | 0 .../role_mappings/model/any_rule.test.ts | 0 .../role_mappings/model/any_rule.ts | 0 .../model/except_all_rule.test.ts | 0 .../role_mappings/model/except_all_rule.ts | 0 .../model/except_any_rule.test.ts | 0 .../role_mappings/model/except_any_rule.ts | 0 .../role_mappings/model/field_rule.test.ts | 0 .../role_mappings/model/field_rule.ts | 0 .../management/role_mappings/model/index.ts | 0 .../management/role_mappings/model/rule.ts | 0 .../role_mappings/model/rule_builder.test.ts | 0 .../role_mappings/model/rule_builder.ts | 0 .../role_mappings/model/rule_builder_error.ts | 0 .../role_mappings/model/rule_group.ts | 0 .../role_mappings_api_client.mock.ts | 0 .../role_mappings/role_mappings_api_client.ts | 0 .../create_role_mapping_button.tsx | 0 .../create_role_mapping_button/index.ts | 0 .../empty_prompt/empty_prompt.tsx | 0 .../role_mappings_grid/empty_prompt/index.ts | 0 .../role_mappings/role_mappings_grid/index.ts | 0 .../role_mappings_grid_page.test.tsx | 0 .../role_mappings_grid_page.tsx | 0 .../role_mappings_management_app.test.tsx | 0 .../role_mappings_management_app.tsx | 0 .../management/role_table_display/index.ts | 0 .../role_table_display/role_table_display.tsx | 0 .../__snapshots__/validate_role.test.ts.snap | 0 .../collapsible_panel.test.tsx.snap | 0 .../collapsible_panel/collapsible_panel.scss | 0 .../collapsible_panel.test.tsx | 0 .../collapsible_panel/collapsible_panel.tsx | 0 .../edit_role/collapsible_panel/index.ts | 0 .../edit_role/delete_role_button.test.tsx | 0 .../roles/edit_role/delete_role_button.tsx | 0 .../roles/edit_role/edit_role_page.test.tsx | 0 .../roles/edit_role/edit_role_page.tsx | 0 .../management/roles/edit_role/index.ts | 0 .../cluster_privileges.test.tsx.snap | 0 .../elasticsearch_privileges.test.tsx.snap | 0 .../index_privilege_form.test.tsx.snap | 0 .../index_privileges.test.tsx.snap | 0 .../remote_cluster_privileges.test.tsx.snap | 0 ...mote_cluster_privileges_form.test.tsx.snap | 0 .../remote_clusters_combo_box.test.tsx.snap | 0 .../privileges/es/cluster_privileges.test.tsx | 0 .../privileges/es/cluster_privileges.tsx | 0 .../es/elasticsearch_privileges.test.tsx | 0 .../es/elasticsearch_privileges.tsx | 0 .../es/index_privilege_form.test.tsx | 0 .../privileges/es/index_privilege_form.tsx | 0 .../privileges/es/index_privileges.test.tsx | 0 .../privileges/es/index_privileges.tsx | 0 .../es/remote_cluster_privileges.test.tsx | 0 .../es/remote_cluster_privileges.tsx | 0 .../remote_cluster_privileges_form.test.tsx | 0 .../es/remote_cluster_privileges_form.tsx | 0 .../es/remote_clusters_combo_box.test.tsx | 0 .../es/remote_clusters_combo_box.tsx | 0 .../roles/edit_role/privileges/index.ts | 0 .../kibana_privileges_region.test.tsx.snap | 0 .../kibana/kibana_privileges_region.test.tsx | 0 .../kibana/kibana_privileges_region.tsx | 0 .../privilege_summary/__fixtures__/index.ts | 0 .../kibana/privilege_summary/index.ts | 0 .../privilege_summary.test.tsx | 0 .../privilege_summary/privilege_summary.tsx | 0 .../privilege_summary_calculator.test.ts | 0 .../privilege_summary_calculator.ts | 0 .../privilege_summary_expanded_row.tsx | 0 .../privilege_summary_table.test.tsx | 0 .../privilege_summary_table.tsx | 0 .../space_column_header.test.tsx | 0 .../privilege_summary/space_column_header.tsx | 0 .../simple_privilege_section.test.tsx.snap | 0 .../kibana/simple_privilege_section/index.ts | 0 .../privilege_selector.tsx | 0 .../simple_privilege_section.test.tsx | 0 .../simple_privilege_section.tsx | 0 .../unsupported_space_privileges_warning.tsx | 0 ...pace_aware_privilege_section.test.tsx.snap | 0 .../space_aware_privilege_section/index.ts | 0 .../privilege_display.test.tsx | 0 .../privilege_display.tsx | 0 .../privilege_space_form.test.tsx | 0 .../privilege_space_form.tsx | 0 .../privilege_space_table.scss | 0 .../privilege_space_table.test.tsx | 0 .../privilege_space_table.tsx | 0 .../space_aware_privilege_section.test.tsx | 0 .../space_aware_privilege_section.tsx | 0 .../space_selector.tsx | 0 .../kibana/transform_error_section/index.ts | 0 .../transform_error_section.tsx | 0 .../edit_role/reserved_role_badge.test.tsx | 0 .../roles/edit_role/reserved_role_badge.tsx | 0 .../edit_role/spaces_popover_list/index.ts | 0 .../spaces_popover_list.scss | 0 .../spaces_popover_list.test.tsx | 0 .../spaces_popover_list.tsx | 0 .../roles/edit_role/validate_role.test.ts | 0 .../roles/edit_role/validate_role.ts | 0 .../public/management/roles/index.mock.ts | 0 .../security/public/management/roles/index.ts | 0 .../roles/indices_api_client.mock.ts | 0 .../roles/indices_api_client.test.ts | 0 .../management/roles/indices_api_client.ts | 0 .../roles/privileges_api_client.mock.ts | 0 .../management/roles/privileges_api_client.ts | 0 .../management/roles/roles_api_client.mock.ts | 0 .../management/roles/roles_api_client.test.ts | 0 .../management/roles/roles_api_client.ts | 0 .../roles_grid_page.test.tsx.snap | 0 .../confirm_delete/confirm_delete.tsx | 0 .../roles/roles_grid/confirm_delete/index.ts | 0 .../management/roles/roles_grid/index.ts | 0 .../roles_grid/permission_denied/index.ts | 0 .../permission_denied/permission_denied.tsx | 0 .../roles/roles_grid/roles_grid_page.test.tsx | 0 .../roles/roles_grid/roles_grid_page.tsx | 0 .../roles/roles_management_app.test.tsx | 0 .../management/roles/roles_management_app.tsx | 0 .../management/security_features/index.ts | 0 .../security_features_api_client.mock.ts | 0 .../security_features_api_client.ts | 0 .../public/management/uri_utils.test.ts | 0 .../security/public/management/url_utils.ts | 0 .../change_password_form.test.tsx | 0 .../change_password_form.tsx | 0 .../components/change_password_form/index.ts | 0 .../confirm_delete_users.test.tsx | 0 .../confirm_delete_users.tsx | 0 .../components/confirm_delete_users/index.ts | 0 .../management/users/components/index.ts | 0 .../users/edit_user/change_password_modal.tsx | 0 .../edit_user/change_password_model.test.tsx | 0 .../users/edit_user/confirm_delete_users.tsx | 0 .../users/edit_user/confirm_disable_users.tsx | 0 .../users/edit_user/confirm_enable_users.tsx | 0 .../users/edit_user/create_user_page.test.tsx | 0 .../users/edit_user/create_user_page.tsx | 0 .../users/edit_user/edit_user_page.test.tsx | 0 .../users/edit_user/edit_user_page.tsx | 0 .../management/users/edit_user/index.ts | 0 .../management/users/edit_user/user_form.tsx | 0 .../public/management/users/index.mock.ts | 0 .../security/public/management/users/index.ts | 0 .../management/users/user_api_client.mock.ts | 0 .../management/users/user_api_client.ts | 0 .../management/users/user_utils.test.ts | 0 .../public/management/users/user_utils.ts | 0 .../management/users/users_grid/index.ts | 0 .../users/users_grid/users_grid_page.test.tsx | 0 .../users/users_grid/users_grid_page.tsx | 0 .../users/users_management_app.test.tsx | 0 .../management/users/users_management_app.tsx | 0 .../plugins/shared}/security/public/mocks.ts | 0 .../security/public/nav_control/index.mock.ts | 0 .../security/public/nav_control/index.ts | 0 .../nav_control_component.test.tsx | 0 .../nav_control/nav_control_component.tsx | 0 .../nav_control/nav_control_service.test.ts | 0 .../nav_control/nav_control_service.tsx | 0 .../shared}/security/public/plugin.test.tsx | 0 .../shared}/security/public/plugin.tsx | 0 .../security_checkup/components/index.ts | 0 .../components/insecure_cluster_alert.tsx | 0 .../security/public/security_checkup/index.ts | 0 .../security_checkup_service.test.ts | 0 .../security_checkup_service.tsx | 0 .../shared}/security/public/session/index.ts | 0 .../session/session_expiration_toast.test.tsx | 0 .../session/session_expiration_toast.tsx | 0 .../public/session/session_expired.mock.ts | 0 .../public/session/session_expired.test.ts | 0 .../public/session/session_expired.ts | 0 .../public/session/session_timeout.test.ts | 0 .../public/session/session_timeout.ts | 0 ...thorized_response_http_interceptor.test.ts | 0 .../unauthorized_response_http_interceptor.ts | 0 .../public/suspense_error_boundary/index.ts | 0 .../suspense_error_boundary.tsx | 0 .../change_password/change_password.tsx | 0 .../change_password/change_password_async.tsx | 0 .../public/ui_api/change_password/index.ts | 0 .../security/public/ui_api/components.tsx | 0 .../security/public/ui_api/index.mock.ts | 0 .../shared}/security/public/ui_api/index.ts | 0 .../security/public/ui_api/lazy_wrapper.tsx | 0 .../public/ui_api/personal_info/index.ts | 0 .../ui_api/personal_info/personal_info.tsx | 0 .../personal_info/personal_info_async.tsx | 0 .../__snapshots__/prompt_page.test.tsx.snap | 0 .../analytics/analytics_service.mock.ts | 0 .../analytics/analytics_service.test.ts | 0 .../server/analytics/analytics_service.ts | 0 .../security/server/analytics/index.ts | 0 .../anonymous_access_service.mock.ts | 0 .../anonymous_access_service.test.ts | 0 .../anonymous_access_service.ts | 0 .../security/server/anonymous_access/index.ts | 0 .../server/audit/audit_events.test.ts | 0 .../security/server/audit/audit_events.ts | 0 .../server/audit/audit_service.test.ts | 0 .../security/server/audit/audit_service.ts | 0 .../shared}/security/server/audit/index.ts | 0 .../shared}/security/server/audit/mocks.ts | 0 .../unauthenticated_page.test.tsx.snap | 0 .../api_keys/api_keys.test.mock.ts | 0 .../authentication/api_keys/api_keys.test.ts | 0 .../authentication/api_keys/api_keys.ts | 0 .../api_keys/fake_kibana_request.ts | 0 .../server/authentication/api_keys/index.ts | 0 .../authentication_result.test.ts | 0 .../authentication/authentication_result.ts | 0 .../authentication_service.mock.ts | 0 .../authentication_service.test.mocks.ts | 0 .../authentication_service.test.ts | 0 .../authentication/authentication_service.ts | 0 .../authentication/authenticator.test.ts | 0 .../server/authentication/authenticator.ts | 0 .../can_redirect_request.test.ts | 0 .../authentication/can_redirect_request.ts | 0 .../deauthentication_result.test.ts | 0 .../authentication/deauthentication_result.ts | 0 ...p_authorization_header_credentials.test.ts | 0 ...c_http_authorization_header_credentials.ts | 0 .../http_authorization_header.test.ts | 0 .../http_authorization_header.ts | 0 .../http_authentication/index.ts | 0 .../security/server/authentication/index.ts | 0 .../providers/anonymous.test.ts | 0 .../authentication/providers/anonymous.ts | 0 .../authentication/providers/base.mock.ts | 0 .../server/authentication/providers/base.ts | 0 .../authentication/providers/basic.test.ts | 0 .../server/authentication/providers/basic.ts | 0 .../authentication/providers/http.test.ts | 0 .../server/authentication/providers/http.ts | 0 .../server/authentication/providers/index.ts | 0 .../authentication/providers/kerberos.test.ts | 0 .../authentication/providers/kerberos.ts | 0 .../authentication/providers/oidc.test.ts | 0 .../server/authentication/providers/oidc.ts | 0 .../authentication/providers/pki.test.ts | 0 .../server/authentication/providers/pki.ts | 0 .../authentication/providers/saml.test.ts | 0 .../server/authentication/providers/saml.ts | 0 .../authentication/providers/token.test.ts | 0 .../server/authentication/providers/token.ts | 0 .../server/authentication/tokens.test.ts | 0 .../security/server/authentication/tokens.ts | 0 .../unauthenticated_page.test.tsx | 0 .../authentication/unauthenticated_page.tsx | 0 .../disable_ui_capabilities.test.ts.snap | 0 .../privilege_serializer.test.ts.snap | 0 .../privileges_serializer.test.ts.snap | 0 .../reset_session_page.test.tsx.snap | 0 .../resource_serializer.test.ts.snap | 0 .../validate_es_response.test.ts.snap | 0 .../authorization/api_authorization.test.ts | 0 .../server/authorization/api_authorization.ts | 0 .../authorization/app_authorization.test.ts | 0 .../server/authorization/app_authorization.ts | 0 .../authorization_service.test.ts | 0 .../authorization/authorization_service.tsx | 0 .../authorization/check_privileges.test.ts | 0 .../server/authorization/check_privileges.ts | 0 .../check_privileges_dynamically.test.ts | 0 .../check_privileges_dynamically.ts | 0 .../check_saved_objects_privileges.test.ts | 0 .../check_saved_objects_privileges.ts | 0 .../disable_ui_capabilities.test.ts | 0 .../authorization/disable_ui_capabilities.ts | 0 .../server/authorization/index.mock.ts | 0 .../security/server/authorization/index.ts | 0 .../server/authorization/mode.test.ts | 0 .../security/server/authorization/mode.ts | 0 .../privilege_serializer.test.ts | 0 .../authorization/privilege_serializer.ts | 0 .../privileges_serializer.test.ts | 0 .../authorization/privileges_serializer.ts | 0 .../register_privileges_with_cluster.test.ts | 0 .../register_privileges_with_cluster.ts | 0 .../authorization/reset_session_page.test.tsx | 0 .../authorization/reset_session_page.tsx | 0 .../authorization/resource_serializer.test.ts | 0 .../authorization/resource_serializer.ts | 0 .../roles/elasticsearch_role.test.ts | 0 .../authorization/roles/elasticsearch_role.ts | 0 .../server/authorization/roles/index.ts | 0 .../authorization/service.test.mocks.ts | 0 .../validate_es_response.test.ts | 0 .../authorization/validate_es_response.ts | 0 .../validate_feature_privileges.test.ts | 0 .../validate_feature_privileges.ts | 0 .../validate_reserved_privileges.test.ts | 0 .../validate_reserved_privileges.ts | 0 .../server/build_delegate_apis.test.ts | 0 .../security/server/build_delegate_apis.ts | 0 .../shared}/security/server/config.test.ts | 0 .../plugins/shared}/security/server/config.ts | 0 .../server/config_deprecations.test.ts | 0 .../security/server/config_deprecations.ts | 0 .../security/server/deprecations/index.ts | 0 .../deprecations/kibana_user_role.test.ts | 0 .../server/deprecations/kibana_user_role.ts | 0 .../privilege_deprecations.test.ts | 0 .../deprecations/privilege_deprecations.ts | 0 .../elasticsearch_service.test.ts | 0 .../elasticsearch/elasticsearch_service.ts | 0 .../security/server/elasticsearch/index.ts | 0 .../shared}/security/server/errors.test.ts | 0 .../plugins/shared}/security/server/errors.ts | 0 .../feature_usage_service.test.ts | 0 .../feature_usage/feature_usage_service.ts | 0 .../server/feature_usage/index.mock.ts | 0 .../security/server/feature_usage/index.ts | 0 .../shared}/security/server/features/index.ts | 0 .../server/features/security_features.ts | 0 .../security/server/fips/fips_service.test.ts | 0 .../security/server/fips/fips_service.ts | 0 .../shared}/security/server/fips/index.ts | 0 .../plugins/shared}/security/server/index.ts | 0 .../server/lib/flatten_object.test.ts | 0 .../security/server/lib/flatten_object.ts | 0 .../shared}/security/server/lib/index.ts | 0 .../security/server/lib/role_utils.test.ts | 0 .../shared}/security/server/lib/role_utils.ts | 0 .../plugins/shared}/security/server/mocks.ts | 0 .../shared}/security/server/plugin.test.ts | 0 .../plugins/shared}/security/server/plugin.ts | 0 .../security/server/prompt_page.test.tsx | 0 .../shared}/security/server/prompt_page.tsx | 0 .../analytics/authentication_type.test.ts | 0 .../routes/analytics/authentication_type.ts | 0 .../security/server/routes/analytics/index.ts | 0 .../analytics/record_violations.test.ts | 0 .../routes/analytics/record_violations.ts | 0 .../anonymous_access/get_capabilities.test.ts | 0 .../anonymous_access/get_capabilities.ts | 0 .../routes/anonymous_access/get_state.test.ts | 0 .../routes/anonymous_access/get_state.ts | 0 .../server/routes/anonymous_access/index.ts | 0 .../server/routes/api_keys/create.test.ts | 0 .../security/server/routes/api_keys/create.ts | 0 .../server/routes/api_keys/enabled.test.ts | 0 .../server/routes/api_keys/enabled.ts | 0 .../server/routes/api_keys/has_active.test.ts | 0 .../server/routes/api_keys/has_active.ts | 0 .../security/server/routes/api_keys/index.ts | 0 .../server/routes/api_keys/invalidate.test.ts | 0 .../server/routes/api_keys/invalidate.ts | 0 .../server/routes/api_keys/query.test.ts | 0 .../security/server/routes/api_keys/query.ts | 0 .../server/routes/api_keys/update.test.ts | 0 .../security/server/routes/api_keys/update.ts | 0 .../routes/authentication/common.test.ts | 0 .../server/routes/authentication/common.ts | 0 .../routes/authentication/index.test.ts | 0 .../server/routes/authentication/index.ts | 0 .../server/routes/authentication/oidc.ts | 0 .../server/routes/authentication/saml.test.ts | 0 .../server/routes/authentication/saml.ts | 0 .../server/routes/authorization/index.ts | 0 .../authorization/privileges/get.test.ts | 0 .../routes/authorization/privileges/get.ts | 0 .../authorization/privileges/get_builtin.ts | 0 .../routes/authorization/privileges/index.ts | 0 .../authorization/reset_session_page.ts | 0 .../routes/authorization/roles/delete.test.ts | 0 .../routes/authorization/roles/delete.ts | 0 .../routes/authorization/roles/get.test.ts | 0 .../server/routes/authorization/roles/get.ts | 0 .../authorization/roles/get_all.test.ts | 0 .../routes/authorization/roles/get_all.ts | 0 .../roles/get_all_by_space.test.ts | 0 .../authorization/roles/get_all_by_space.ts | 0 .../routes/authorization/roles/index.ts | 0 .../routes/authorization/roles/lib/index.ts | 0 .../roles/lib/role_privileges.ts | 0 .../bulk_create_or_update_payload.test.ts | 0 .../model/bulk_create_or_update_payload.ts | 0 .../routes/authorization/roles/model/index.ts | 0 .../roles/model/put_payload.test.ts | 0 .../authorization/roles/model/put_payload.ts | 0 .../routes/authorization/roles/post.test.ts | 0 .../server/routes/authorization/roles/post.ts | 0 .../routes/authorization/roles/put.test.ts | 0 .../server/routes/authorization/roles/put.ts | 0 .../routes/authorization/spaces/index.ts | 0 .../share_saved_object_permissions.test.ts | 0 .../spaces/share_saved_object_permissions.ts | 0 .../server/routes/deprecations/index.ts | 0 .../deprecations/kibana_user_role.test.ts | 0 .../routes/deprecations/kibana_user_role.ts | 0 .../feature_check/feature_check.test.ts | 0 .../routes/feature_check/feature_check.ts | 0 .../server/routes/feature_check/index.ts | 0 .../security/server/routes/index.mock.ts | 0 .../shared}/security/server/routes/index.ts | 0 .../server/routes/indices/get_fields.test.ts | 0 .../server/routes/indices/get_fields.ts | 0 .../security/server/routes/indices/index.ts | 0 .../server/routes/licensed_route_handler.ts | 0 .../server/routes/role_mapping/delete.test.ts | 0 .../server/routes/role_mapping/delete.ts | 0 .../server/routes/role_mapping/get.test.ts | 0 .../server/routes/role_mapping/get.ts | 0 .../server/routes/role_mapping/index.ts | 0 .../server/routes/role_mapping/post.test.ts | 0 .../server/routes/role_mapping/post.ts | 0 .../security_checkup/get_state.test.mock.ts | 0 .../routes/security_checkup/get_state.test.ts | 0 .../routes/security_checkup/get_state.ts | 0 .../server/routes/security_checkup/index.ts | 0 .../routes/session_management/extend.test.ts | 0 .../routes/session_management/extend.ts | 0 .../server/routes/session_management/index.ts | 0 .../routes/session_management/info.test.ts | 0 .../server/routes/session_management/info.ts | 0 .../session_management/invalidate.test.ts | 0 .../routes/session_management/invalidate.ts | 0 .../shared}/security/server/routes/tags.ts | 0 .../routes/user_profile/bulk_get.test.ts | 0 .../server/routes/user_profile/bulk_get.ts | 0 .../routes/user_profile/get_current.test.ts | 0 .../server/routes/user_profile/get_current.ts | 0 .../server/routes/user_profile/index.ts | 0 .../server/routes/user_profile/update.test.ts | 0 .../server/routes/user_profile/update.ts | 0 .../routes/users/change_password.test.ts | 0 .../server/routes/users/change_password.ts | 0 .../server/routes/users/create_or_update.ts | 0 .../security/server/routes/users/delete.ts | 0 .../security/server/routes/users/disable.ts | 0 .../security/server/routes/users/enable.ts | 0 .../security/server/routes/users/get.ts | 0 .../security/server/routes/users/get_all.ts | 0 .../security/server/routes/users/index.ts | 0 .../routes/views/access_agreement.test.ts | 0 .../server/routes/views/access_agreement.ts | 0 .../server/routes/views/account_management.ts | 0 .../server/routes/views/capture_url.test.ts | 0 .../server/routes/views/capture_url.ts | 0 .../server/routes/views/index.test.ts | 0 .../security/server/routes/views/index.ts | 0 .../server/routes/views/logged_out.test.ts | 0 .../server/routes/views/logged_out.ts | 0 .../server/routes/views/login.test.ts | 0 .../security/server/routes/views/login.ts | 0 .../security/server/routes/views/logout.ts | 0 .../routes/views/overwritten_session.ts | 0 .../saved_objects/authorization_utils.test.ts | 0 .../saved_objects/authorization_utils.ts | 0 .../saved_objects/ensure_authorized.test.ts | 0 .../server/saved_objects/ensure_authorized.ts | 0 .../security/server/saved_objects/index.ts | 0 .../saved_objects_security_extension.test.ts | 0 .../saved_objects_security_extension.ts | 0 .../check_cluster_data.test.ts | 0 .../security_checkup/check_cluster_data.ts | 0 .../security/server/security_checkup/index.ts | 0 .../server/session_management/index.mock.ts | 0 .../server/session_management/index.ts | 0 .../server/session_management/session.mock.ts | 0 .../server/session_management/session.test.ts | 0 .../server/session_management/session.ts | 0 .../session_management/session_cookie.mock.ts | 0 .../session_management/session_cookie.test.ts | 0 .../session_management/session_cookie.ts | 0 .../session_errors/index.ts | 0 .../session_concurrency_limit_error.ts | 0 .../session_errors/session_error.ts | 0 .../session_errors/session_expired_error.ts | 0 .../session_errors/session_missing_error.ts | 0 .../session_unexpected_error.ts | 0 .../session_management/session_index.mock.ts | 0 .../session_management/session_index.test.ts | 0 .../session_management/session_index.ts | 0 .../session_management_service.test.ts | 0 .../session_management_service.ts | 0 .../shared}/security/server/spaces/index.ts | 0 .../secure_spaces_client_wrapper.test.ts | 0 .../spaces/secure_spaces_client_wrapper.ts | 0 .../server/spaces/setup_spaces_client.test.ts | 0 .../server/spaces/setup_spaces_client.ts | 0 .../plugins/shared}/security/server/types.ts | 0 .../security/server/usage_collector/index.ts | 0 .../security_usage_collector.test.ts | 0 .../security_usage_collector.ts | 0 .../security/server/user_profile/index.ts | 0 .../server/user_profile/user_profile_grant.ts | 0 .../user_profile/user_profile_service.mock.ts | 0 .../user_profile/user_profile_service.test.ts | 0 .../user_profile/user_profile_service.ts | 0 .../plugins/shared}/security/tsconfig.json | 2 +- .../plugins/shared}/spaces/README.md | 0 .../shared}/spaces/common/constants.ts | 0 .../plugins/shared}/spaces/common/index.ts | 0 .../spaces/common/is_reserved_space.test.ts | 0 .../spaces/common/is_reserved_space.ts | 0 .../shared}/spaces/common/lib/dataurl.ts | 0 .../common/lib/spaces_url_parser.test.ts | 0 .../spaces/common/lib/spaces_url_parser.ts | 0 .../spaces/common/licensing/index.mock.ts | 0 .../shared}/spaces/common/licensing/index.ts | 0 .../common/licensing/license_service.test.ts | 0 .../common/licensing/license_service.ts | 0 .../shared}/spaces/common/types/index.ts | 0 .../shared}/spaces/common/types/latest.ts | 0 .../shared}/spaces/common/types/space/v1.ts | 0 .../plugins/shared/spaces}/jest.config.js | 12 +- .../plugins/shared}/spaces/kibana.jsonc | 0 .../spaces/public/analytics/event_tracker.ts | 0 .../shared}/spaces/public/analytics/index.ts | 0 .../analytics/register_analytics_context.ts | 0 .../public/analytics/register_event_types.ts | 0 .../plugins/shared}/spaces/public/config.ts | 0 .../shared}/spaces/public/constants.ts | 0 .../components/copy_mode_control.test.tsx | 0 .../components/copy_mode_control.tsx | 0 .../components/copy_status_indicator.tsx | 0 .../copy_status_summary_indicator.scss | 0 .../copy_status_summary_indicator.tsx | 0 .../components/copy_to_space_flyout.tsx | 0 .../copy_to_space_flyout_footer.tsx | 0 .../copy_to_space_flyout_internal.test.tsx | 0 .../copy_to_space_flyout_internal.tsx | 0 .../components/copy_to_space_form.tsx | 0 .../components/index.ts | 0 .../components/processing_copy_to_space.tsx | 0 .../components/resolve_all_conflicts.scss | 0 .../components/resolve_all_conflicts.test.tsx | 0 .../components/resolve_all_conflicts.tsx | 0 .../components/selectable_spaces_control.scss | 0 .../components/selectable_spaces_control.tsx | 0 .../components/space_result.scss | 0 .../components/space_result.tsx | 0 .../components/space_result_details.scss | 0 .../components/space_result_details.tsx | 0 .../copy_saved_objects_to_space/index.ts | 0 .../copy_saved_objects_to_space/lib/index.ts | 0 .../lib/process_import_response.ts | 0 .../lib/summarize_copy_result.test.ts | 0 .../lib/summarize_copy_result.ts | 0 .../copy_saved_objects_to_space/types.ts | 0 .../public/create_feature_catalogue_entry.ts | 0 .../plugins/shared}/spaces/public/index.ts | 0 .../embeddable_legacy_url_conflict.tsx | 0 ...mbeddable_legacy_url_conflict_internal.tsx | 0 .../public/legacy_urls/components/index.ts | 0 .../components/legacy_url_conflict.tsx | 0 .../legacy_url_conflict_internal.test.tsx | 0 .../legacy_url_conflict_internal.tsx | 0 .../spaces/public/legacy_urls/index.ts | 0 .../legacy_urls/redirect_legacy_url.test.ts | 0 .../public/legacy_urls/redirect_legacy_url.ts | 0 .../spaces/public/legacy_urls/types.ts | 0 .../delete_spaces_button.test.tsx.snap | 0 ...irm_alter_active_space_modal.test.tsx.snap | 0 .../confirm_alter_active_space_modal.test.tsx | 0 .../confirm_alter_active_space_modal.tsx | 0 .../confirm_alter_active_space_modal/index.ts | 0 .../confirm_delete_modal.test.tsx | 0 .../confirm_delete_modal.tsx | 0 .../components/confirm_delete_modal/index.ts | 0 .../customize_space_avatar.test.tsx.snap | 0 .../customize_avatar/customize_avatar.tsx | 0 .../customize_space_avatar.test.tsx | 0 .../customize_space_avatar.tsx | 0 .../components/customize_avatar/index.ts | 0 .../customize_space.test.tsx.snap | 0 .../customize_space/customize_space.test.tsx | 0 .../customize_space/customize_space.tsx | 0 .../components/customize_space/index.ts | 0 .../components/delete_spaces_button.test.tsx | 0 .../components/delete_spaces_button.tsx | 0 .../enabled_features.test.tsx.snap | 0 .../enabled_features.test.tsx | 0 .../enabled_features/enabled_features.tsx | 0 .../enabled_features/feature_table.tsx | 0 .../components/enabled_features/index.ts | 0 .../enabled_features/toggle_all_features.scss | 0 .../enabled_features/toggle_all_features.tsx | 0 .../public/management/components/index.ts | 0 .../__snapshots__/section_panel.test.tsx.snap | 0 .../components/section_panel/index.ts | 0 .../section_panel/section_panel.scss | 0 .../section_panel/section_panel.test.tsx | 0 .../section_panel/section_panel.tsx | 0 .../components/solution_view/index.ts | 0 .../solution_view/solution_view.tsx | 0 .../unauthorized_prompt.test.tsx.snap | 0 .../components/unauthorized_prompt/index.ts | 0 .../unauthorized_prompt.test.tsx | 0 .../unauthorized_prompt.tsx | 0 .../create_space/create_space_page.test.tsx | 0 .../create_space/create_space_page.tsx | 0 .../public/management/create_space/index.ts | 0 .../public/management/edit_space/constants.ts | 0 .../management/edit_space/edit_space.tsx | 0 .../edit_space_content_tab.test.tsx | 0 .../edit_space/edit_space_content_tab.tsx | 0 .../edit_space_general_tab.test.tsx | 0 .../edit_space/edit_space_general_tab.tsx | 0 .../management/edit_space/edit_space_page.tsx | 0 .../edit_space/edit_space_roles_tab.test.tsx | 0 .../edit_space/edit_space_roles_tab.tsx | 0 .../edit_space/edit_space_tabs.test.ts | 0 .../management/edit_space/edit_space_tabs.tsx | 0 .../public/management/edit_space/footer.tsx | 0 .../management/edit_space/handle_api_error.ts | 0 .../management/edit_space/hooks/use_tabs.ts | 0 .../public/management/edit_space/index.ts | 0 .../provider/edit_space_provider.test.tsx | 0 .../provider/edit_space_provider.tsx | 0 .../management/edit_space/provider/index.ts | 0 .../edit_space/provider/reducers/index.ts | 0 .../edit_space/reserved_space_badge.test.tsx | 0 .../edit_space/reserved_space_badge.tsx | 0 .../space_assign_role_privilege_form.test.tsx | 0 .../space_assign_role_privilege_form.tsx | 0 .../space_assigned_roles_table.test.tsx | 0 .../component/space_assigned_roles_table.tsx | 0 .../shared}/spaces/public/management/index.ts | 0 .../management/lib/feature_utils.test.ts | 0 .../public/management/lib/feature_utils.ts | 0 .../spaces/public/management/lib/index.ts | 0 .../public/management/lib/sort_roles.test.ts | 0 .../public/management/lib/sort_roles.ts | 0 .../lib/space_identifier_utils.test.ts | 0 .../management/lib/space_identifier_utils.ts | 0 .../management/lib/validate_space.test.ts | 0 .../public/management/lib/validate_space.ts | 0 .../management/management_service.test.ts | 0 .../public/management/management_service.tsx | 0 .../management/privilege_api_client.mock.ts | 0 .../management/roles_api_client.mock.ts | 0 .../management/security_license.mock.ts | 0 .../public/management/spaces_grid/index.ts | 0 .../spaces_grid/spaces_grid_page.test.tsx | 0 .../spaces_grid/spaces_grid_page.tsx | 0 .../management/spaces_management_app.test.tsx | 0 .../management/spaces_management_app.tsx | 0 .../shared}/spaces/public/management/types.ts | 0 .../plugins/shared}/spaces/public/mocks.ts | 0 .../nav_control_popover.test.tsx.snap | 0 .../manage_spaces_button.test.tsx.snap | 0 .../components/manage_spaces_button.test.tsx | 0 .../components/manage_spaces_button.tsx | 0 .../components/spaces_description.scss | 0 .../components/spaces_description.tsx | 0 .../nav_control/components/spaces_menu.scss | 0 .../nav_control/components/spaces_menu.tsx | 0 .../spaces/public/nav_control/index.ts | 0 .../spaces/public/nav_control/nav_control.tsx | 0 .../nav_control/nav_control_popover.test.tsx | 0 .../nav_control/nav_control_popover.tsx | 0 .../nav_control/solution_view_tour/index.ts | 0 .../nav_control/solution_view_tour/lib.ts | 0 .../solution_view_tour/solution_view_tour.tsx | 0 .../spaces/public/nav_control/types.tsx | 0 .../shared}/spaces/public/plugin.test.ts | 0 .../plugins/shared}/spaces/public/plugin.tsx | 0 .../components/alias_table.tsx | 0 .../components/index.ts | 0 .../components/no_spaces_available.tsx | 0 .../components/relatives_footer.tsx | 0 .../components/selectable_spaces_control.scss | 0 .../components/selectable_spaces_control.tsx | 0 .../components/share_mode_control.tsx | 0 .../components/share_to_space_flyout.tsx | 0 .../share_to_space_flyout_internal.scss | 0 .../share_to_space_flyout_internal.test.tsx | 0 .../share_to_space_flyout_internal.tsx | 0 .../components/share_to_space_form.tsx | 0 .../components/types.ts | 0 .../share_saved_objects_to_space/index.ts | 0 .../share_saved_objects_to_space/types.ts | 0 .../spaces/public/space_avatar/index.ts | 0 .../space_avatar/space_attributes.test.ts | 0 .../public/space_avatar/space_attributes.ts | 0 .../public/space_avatar/space_avatar.tsx | 0 .../space_avatar_internal.test.tsx | 0 .../space_avatar/space_avatar_internal.tsx | 0 .../spaces/public/space_avatar/types.ts | 0 .../shared}/spaces/public/space_list/index.ts | 0 .../spaces/public/space_list/space_list.tsx | 0 .../space_list/space_list_internal.test.tsx | 0 .../public/space_list/space_list_internal.tsx | 0 .../shared}/spaces/public/space_list/types.ts | 0 .../space_selector.test.tsx.snap | 0 .../public/space_selector/components/index.ts | 0 .../space_selector/components/space_card.scss | 0 .../components/space_card.test.tsx | 0 .../space_selector/components/space_card.tsx | 0 .../components/space_cards.scss | 0 .../components/space_cards.test.tsx | 0 .../space_selector/components/space_cards.tsx | 0 .../spaces/public/space_selector/index.tsx | 0 .../public/space_selector/space_selector.scss | 0 .../space_selector/space_selector.test.tsx | 0 .../public/space_selector/space_selector.tsx | 0 .../space_selector/space_selector_app.tsx | 0 .../__snapshots__/badge.test.tsx.snap | 0 .../space_solution_badge/badge.test.tsx | 0 .../public/space_solution_badge/badge.tsx | 0 .../public/space_solution_badge/index.ts | 0 .../spaces/public/spaces_context/context.tsx | 0 .../spaces/public/spaces_context/index.ts | 0 .../spaces/public/spaces_context/types.ts | 0 .../spaces/public/spaces_context/wrapper.tsx | 0 .../spaces_context/wrapper_internal.tsx | 0 .../spaces/public/spaces_manager/index.ts | 0 .../spaces/public/spaces_manager/mocks.ts | 0 .../spaces_manager/spaces_manager.mock.ts | 0 .../spaces_manager/spaces_manager.test.ts | 0 .../public/spaces_manager/spaces_manager.ts | 0 .../public/suspense_error_boundary/index.ts | 0 .../suspense_error_boundary.tsx | 0 .../plugins/shared}/spaces/public/types.ts | 0 .../spaces/public/ui_api/components.tsx | 0 .../shared}/spaces/public/ui_api/index.ts | 0 .../spaces/public/ui_api/lazy_wrapper.tsx | 0 .../shared}/spaces/public/ui_api/types.ts | 0 .../capabilities_provider.test.ts | 0 .../capabilities/capabilities_provider.ts | 0 .../capabilities_switcher.test.ts | 0 .../capabilities/capabilities_switcher.ts | 0 .../spaces/server/capabilities/index.ts | 0 .../shared}/spaces/server/config.test.ts | 0 .../plugins/shared}/spaces/server/config.ts | 0 .../create_default_space.test.ts | 0 .../default_space/create_default_space.ts | 0 .../default_space_service.test.ts | 0 .../default_space/default_space_service.ts | 0 .../spaces/server/default_space/index.ts | 0 .../plugins/shared}/spaces/server/index.ts | 0 .../spaces/server/lib/__fixtures__/index.ts | 0 .../server/lib/__fixtures__/spaces_config.ts | 0 .../lib/copy_to_spaces/copy_to_spaces.test.ts | 0 .../lib/copy_to_spaces/copy_to_spaces.ts | 0 .../spaces/server/lib/copy_to_spaces/index.ts | 0 .../lib/create_empty_failure_response.ts | 0 .../lib/get_ineligible_types.ts | 0 .../lib/read_stream_to_completion.ts | 0 .../lib/readable_stream_from_array.ts | 0 .../lib/saved_objects_client_opts.ts | 0 .../resolve_copy_conflicts.test.ts | 0 .../copy_to_spaces/resolve_copy_conflicts.ts | 0 .../spaces/server/lib/copy_to_spaces/types.ts | 0 .../shared}/spaces/server/lib/errors.ts | 0 .../server/lib/get_space_selector_url.test.ts | 0 .../server/lib/get_space_selector_url.ts | 0 .../server/lib/request_interceptors/index.ts | 0 .../on_post_auth_interceptor.test.ts | 0 .../on_post_auth_interceptor.ts | 0 .../on_request_interceptor.test.ts | 0 .../on_request_interceptor.ts | 0 .../spaces/server/lib/space_schema.test.ts | 0 .../shared}/spaces/server/lib/space_schema.ts | 0 .../spaces_tutorial_context_factory.test.ts | 0 .../lib/spaces_tutorial_context_factory.ts | 0 .../server/lib/utils/__mocks__/index.ts | 0 .../spaces/server/lib/utils/namespace.test.ts | 0 .../spaces/server/lib/utils/namespace.ts | 0 .../space_solution_disabled_features.test.ts | 0 .../utils/space_solution_disabled_features.ts | 0 .../spaces/server/lib/utils/url.test.ts | 0 .../shared}/spaces/server/lib/utils/url.ts | 0 .../plugins/shared}/spaces/server/mocks.ts | 0 .../shared}/spaces/server/plugin.test.ts | 0 .../plugins/shared}/spaces/server/plugin.ts | 0 .../create_copy_to_space_mocks.ts | 0 .../__fixtures__/create_mock_so_repository.ts | 0 .../__fixtures__/create_mock_so_service.ts | 0 .../routes/api/__fixtures__/create_spaces.ts | 0 .../server/routes/api/__fixtures__/index.ts | 0 .../routes/api/__fixtures__/route_contexts.ts | 0 .../routes/api/external/copy_to_space.test.ts | 0 .../routes/api/external/copy_to_space.ts | 0 .../server/routes/api/external/delete.test.ts | 0 .../server/routes/api/external/delete.ts | 0 .../disable_legacy_url_aliases.test.ts | 0 .../external/disable_legacy_url_aliases.ts | 0 .../server/routes/api/external/get.test.ts | 0 .../spaces/server/routes/api/external/get.ts | 0 .../routes/api/external/get_all.test.ts | 0 .../server/routes/api/external/get_all.ts | 0 .../external/get_shareable_references.test.ts | 0 .../api/external/get_shareable_references.ts | 0 .../server/routes/api/external/index.ts | 0 .../server/routes/api/external/post.test.ts | 0 .../spaces/server/routes/api/external/post.ts | 0 .../server/routes/api/external/put.test.ts | 0 .../spaces/server/routes/api/external/put.ts | 0 .../external/update_objects_spaces.test.ts | 0 .../api/external/update_objects_spaces.ts | 0 .../api/internal/get_active_space.test.ts | 0 .../routes/api/internal/get_active_space.ts | 0 .../api/internal/get_content_summary.test.ts | 0 .../api/internal/get_content_summary.ts | 0 .../server/routes/api/internal/index.ts | 0 .../api/internal/set_solution_space.test.ts | 0 .../routes/api/internal/set_solution_space.ts | 0 .../lib/convert_saved_object_to_space.test.ts | 0 .../lib/convert_saved_object_to_space.ts | 0 .../shared}/spaces/server/routes/lib/index.ts | 0 .../routes/lib/licensed_route_handler.ts | 0 .../routes/lib/parse_cloud_solution.test.ts | 0 .../server/routes/lib/parse_cloud_solution.ts | 0 .../spaces/server/routes/views/index.test.ts | 0 .../spaces/server/routes/views/index.ts | 0 .../spaces/server/saved_objects/index.ts | 0 .../spaces/server/saved_objects/mappings.ts | 0 .../server/saved_objects/migrations/index.ts | 0 .../migrations/space_migrations.test.ts | 0 .../migrations/space_migrations.ts | 0 .../migrations/usage_stats_migrations.test.ts | 0 .../migrations/usage_stats_migrations.ts | 0 .../saved_objects_service.test.ts | 0 .../saved_objects/saved_objects_service.ts | 0 ...ved_objects_spaces_extension.test.mocks.ts | 0 .../saved_objects_spaces_extension.test.ts | 0 .../saved_objects_spaces_extension.ts | 0 .../server/saved_objects/schemas.test.ts | 0 .../spaces/server/saved_objects/schemas.ts | 0 .../spaces/server/spaces_client/index.ts | 0 .../spaces_client/spaces_client.mock.ts | 0 .../spaces_client/spaces_client.test.ts | 0 .../server/spaces_client/spaces_client.ts | 0 .../spaces_client_service.mock.ts | 0 .../spaces_client_service.test.ts | 0 .../spaces_client/spaces_client_service.ts | 0 .../spaces/server/spaces_service/index.ts | 0 .../spaces_service/spaces_service.mock.ts | 0 .../spaces_service/spaces_service.test.ts | 0 .../server/spaces_service/spaces_service.ts | 0 .../plugins/shared}/spaces/server/types.ts | 0 .../shared}/spaces/server/ui_settings.ts | 0 .../spaces/server/usage_collection/index.ts | 0 .../spaces_usage_collector.test.ts | 0 .../spaces_usage_collector.ts | 0 .../spaces/server/usage_stats/constants.ts | 0 .../spaces/server/usage_stats/index.ts | 0 .../spaces/server/usage_stats/types.ts | 0 .../usage_stats/usage_stats_client.mock.ts | 0 .../usage_stats/usage_stats_client.test.ts | 0 .../server/usage_stats/usage_stats_client.ts | 0 .../usage_stats/usage_stats_service.mock.ts | 0 .../usage_stats/usage_stats_service.test.ts | 0 .../server/usage_stats/usage_stats_service.ts | 0 .../plugins/shared}/spaces/tsconfig.json | 2 +- .../encrypted_saved_objects/jest.config.js | 15 - x-pack/plugins/security/jest.config.js | 15 - x-pack/plugins/spaces/jest.config.js | 15 - .../lib/timeline/routes/notes/get_notes.ts | 2 +- yarn.lock | 36 +- 1493 files changed, 748 insertions(+), 337 deletions(-) delete mode 100644 packages/kbn-handlebars/jest.config.js rename {packages => src/platform/packages/private}/kbn-handlebars/LICENSE (93%) rename {packages => src/platform/packages/private}/kbn-handlebars/README.md (90%) rename {packages => src/platform/packages/private}/kbn-handlebars/__snapshots__/index.test.ts.snap (100%) rename {packages => src/platform/packages/private}/kbn-handlebars/index.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/index.ts (92%) create mode 100644 src/platform/packages/private/kbn-handlebars/jest.config.js rename {packages => src/platform/packages/private}/kbn-handlebars/kibana.jsonc (100%) rename {packages => src/platform/packages/private}/kbn-handlebars/package.json (100%) rename {packages => src/platform/packages/private}/kbn-handlebars/scripts/check_for_upstream_updates.sh (81%) rename {packages => src/platform/packages/private}/kbn-handlebars/scripts/print_ast.js (95%) rename {packages => src/platform/packages/private}/kbn-handlebars/scripts/update_upstream_git_hash.sh (83%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/__jest__/test_bench.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/handlebars.ts (95%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/.upstream_git_hash (100%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.basic.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.blocks.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.builtins.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.compiler.test.ts (97%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.data.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.helpers.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.partials.test.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.regressions.test.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.security.test.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.strict.test.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.subexpressions.test.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.utils.test.ts (91%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/spec/index.whitespace_control.test.ts (98%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/symbols.ts (71%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/types.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/utils.ts (96%) rename {packages => src/platform/packages/private}/kbn-handlebars/src/visitor.ts (99%) rename {packages => src/platform/packages/private}/kbn-handlebars/tsconfig.json (78%) rename {packages => src/platform/packages/shared}/kbn-crypto/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/jest.config.js (84%) rename {packages => src/platform/packages/shared}/kbn-crypto/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/no_ca.p12 (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/no_cert.p12 (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/no_key.p12 (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/two_cas.p12 (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/__fixtures__/two_keys.p12 (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/pkcs12.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/pkcs12.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/sha256.test.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/src/sha256.ts (100%) rename {packages => src/platform/packages/shared}/kbn-crypto/tsconfig.json (81%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/.gitignore (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/.npmignore (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/BUILD.bazel (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/LICENSE (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/assoc.d.ts (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/assoc.js (73%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/assocPath.d.ts (77%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/assocPath.js (73%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/index.d.ts (99%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/index.js (78%) rename {packages/kbn-safer-lodash-set => src/platform/packages/shared/kbn-safer-lodash-set/fp}/set.d.ts (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/set.js (81%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/setWith.d.ts (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/fp/setWith.js (81%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/index.d.ts (96%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/index.js (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/lodash/_baseSet.js (95%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/lodash/set.js (93%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/lodash/setWith.js (93%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/package.json (62%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/scripts/_get_lodash.sh (79%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/scripts/license-header.txt (70%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/scripts/patches/_baseSet.js.patch (100%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/scripts/save_state.sh (81%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/scripts/update.sh (93%) rename {packages/kbn-safer-lodash-set/fp => src/platform/packages/shared/kbn-safer-lodash-set}/set.d.ts (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/set.js (73%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/setWith.d.ts (76%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/setWith.js (74%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp.ts (97%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp_assoc.ts (91%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp_assocPath.ts (91%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp_patch_test.js (99%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp_set.ts (91%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/fp_setWith.ts (95%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/index.ts (91%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/patch_test.js (98%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/set.ts (81%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/test/setWith.ts (89%) rename {packages => src/platform/packages/shared}/kbn-safer-lodash-set/tsconfig.json (72%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/README.md (100%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/console.ts (100%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-security-hardening/tsconfig.json (79%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/jest.config.js (82%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/kibana.jsonc (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/package.json (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/hooks/index.ts (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/hooks/use_update_user_profile.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/hooks/use_update_user_profile.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/services.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/types.ts (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_avatar.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_avatar.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_avatar_tip.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_avatar_tip.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_profile.ts (98%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_profiles_popover.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_profiles_popover.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_profiles_selectable.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_profiles_selectable.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_tooltip.test.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/src/user_tooltip.tsx (100%) rename {packages => src/platform/packages/shared}/kbn-user-profile-components/tsconfig.json (91%) rename src/{plugins => platform/plugins/private}/interactive_setup/README.md (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/common/constants.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/common/elasticsearch_connection_status.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/common/index.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/common/types.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/jest.config.js (64%) rename src/{plugins => platform/plugins/private}/interactive_setup/kibana.jsonc (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/app.scss (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/app.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/cluster_address_form.test.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/cluster_address_form.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/cluster_configuration_form.test.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/cluster_configuration_form.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/doc_link.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/enrollment_token_form.test.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/enrollment_token_form.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/get_command_line_snippet.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/get_command_line_snippet.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/index.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/plugin.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/progress_indicator.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/single_chars_field.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/submit_error_callout.test.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/submit_error_callout.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/text_truncate.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/use_form.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/use_html_id.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/use_kibana.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/use_verification.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/use_visibility.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/verification_code_form.test.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/public/verification_code_form.tsx (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/compatibility_error.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/config.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/config.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/elasticsearch_service.mock.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/elasticsearch_service.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/elasticsearch_service.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/errors.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/errors.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/index.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/kibana_config_writer.mock.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/kibana_config_writer.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/kibana_config_writer.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/mocks.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/plugin.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/configure.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/configure.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/enroll.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/enroll.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/index.mock.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/index.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/ping.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/ping.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/status.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/status.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/verify.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/routes/verify.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/verification_code.mock.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/verification_code.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/verification_code.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/verification_service.test.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/server/verification_service.ts (100%) rename src/{plugins => platform/plugins/private}/interactive_setup/tsconfig.json (92%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/README.md (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/jest.config.js (50%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/package.json (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/__fixtures__/licensing.mock.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/__snapshots__/alerting.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/__snapshots__/api.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/__snapshots__/app.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/__snapshots__/cases.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/__snapshots__/ui.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/actions.mock.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/actions.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/actions.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/alerting.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/alerting.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/api.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/api.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/app.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/app.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/cases.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/cases.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/saved_object.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/saved_object.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/space.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/space.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/ui.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/actions/ui.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/__snapshots__/cases.test.ts.snap (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/alerting.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/alerting.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/api.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/app.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/cases.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/catalogue.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/feature_privilege_builder.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/management.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/navlink.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/saved_object.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/feature_privilege_builder/ui.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/privileges.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/src/privileges/privileges.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core/tsconfig.json (88%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/README.md (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/jest.config.js (55%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/package.json (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/src/privileges/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/src/privileges/minimal_privileges.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/src/privileges/minimal_privileges.ts (100%) rename x-pack/{packages => platform/packages/private}/security/authorization_core_common/tsconfig.json (78%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/README.md (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/index.ts (100%) create mode 100644 x-pack/platform/packages/private/security/role_management_model/jest.config.js rename x-pack/{packages => platform/packages/private}/security/role_management_model/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/package.json (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/__fixtures__/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/__fixtures__/kibana_features.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/__fixtures__/kibana_privileges.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/kibana_privilege.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/kibana_privileges.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/kibana_privileges.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/primary_feature_privilege.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/privilege_collection.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/privilege_collection.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/secured_feature.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/secured_sub_feature.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/sub_feature_privilege.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/src/sub_feature_privilege_group.ts (100%) rename x-pack/{packages => platform/packages/private}/security/role_management_model/tsconfig.json (87%) rename x-pack/{packages => platform/packages/private}/security/ui_components/README.md (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/index.ts (100%) rename x-pack/{packages/security/form_components => platform/packages/private/security/ui_components}/jest.config.js (52%) rename x-pack/{packages => platform/packages/private}/security/ui_components/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/package.json (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/constants.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/__fixtures__/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/change_all_privileges.scss (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/change_all_privileges.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.scss (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.test.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/components/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/feature_table.scss (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/feature_table.test.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/feature_table.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.test.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/sub_feature_form.test.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/kibana_privilege_table/sub_feature_form.tsx (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/privilege_form_calculator/index.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.test.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.ts (100%) rename x-pack/{packages => platform/packages/private}/security/ui_components/tsconfig.json (88%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/README.md (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/index.ts (100%) create mode 100644 x-pack/platform/packages/shared/security/api_key_management/jest.config.js rename x-pack/{packages => platform/packages/shared}/security/api_key_management/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/package.json (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_key_badge.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_key_created_callout.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_key_flyout.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_key_status.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_keys_api_client.test.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/api_keys_api_client.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/doc_link.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/time_tool_tip.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/src/components/token_field.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/api_key_management/tsconfig.json (90%) rename x-pack/{packages => platform/packages/shared}/security/form_components/README.md (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/index.ts (100%) create mode 100644 x-pack/platform/packages/shared/security/form_components/jest.config.js rename x-pack/{packages => platform/packages/shared}/security/form_components/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/package.json (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_changes.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_changes.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_field.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_field.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_label.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_label.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_row.test.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/form_row.tsx (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/src/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/form_components/tsconfig.json (83%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/README.md (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/package.json (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/api_keys/api_key.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/authentication/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/authorization/features_privileges.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/authorization/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/authorization/raw_kibana_privileges.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/authorization/role.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/licensing/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/licensing/license.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/licensing/license_features.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/src/user_profile/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_common/tsconfig.json (82%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/README.md (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/package.json (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/authentication/authentication_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/authentication/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/authorization/authorization_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/authorization/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/license/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/nav_control/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/nav_control/nav_control_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/plugin.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/privileges/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/privileges/privileges_api_client.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/roles/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/roles/roles_api_client.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/user_profile/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/src/user_profile/user_profile_api_client.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_public/tsconfig.json (83%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/README.md (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/kibana.jsonc (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/package.json (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/audit/audit_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/audit/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authentication/api_keys/api_keys.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authentication/api_keys/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authentication/authentication_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authentication/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/actions.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/alerting.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/api.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/app.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/cases.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/saved_object.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/space.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/actions/ui.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/authorization_service.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/check_privileges.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/check_privileges_dynamically.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/check_saved_objects_privileges.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/constants.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/deprecations.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/es_security_config.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/mode.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/authorization/role_schema.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/plugin.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/src/user_profile/index.ts (100%) rename x-pack/{packages => platform/packages/shared}/security/plugin_types_server/tsconfig.json (85%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/README.md (98%) rename x-pack/{packages/security/api_key_management => platform/plugins/shared/encrypted_saved_objects}/jest.config.js (52%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/create_migration.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/create_migration.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/create_model_version.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/create_model_version.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encryption_error.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encryption_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/crypto/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/routes/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/routes/key_rotation.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/routes/key_rotation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/map_attributes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/encrypted_saved_objects/tsconfig.json (90%) rename x-pack/{plugins => platform/plugins/shared}/security/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/licensing/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/licensing/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/licensing/license_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/licensing/license_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/login_state.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/authenticated_user.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/authenticated_user.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/authenticated_user.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/authentication_provider.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/authentication_provider.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/builtin_es_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/role.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/role.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/role_mapping.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/user.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/user.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/user_profile.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/model/user_profile.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/common/types.ts (100%) rename x-pack/{packages/security/role_management_model => platform/plugins/shared/security}/jest.config.js (54%) rename x-pack/{plugins => platform/plugins/shared}/security/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/account_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/account_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/account_management_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/account_management_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/user_profile.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/user_profile.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/user_profile_api_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/user_profile_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/account_management/user_profile/utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/analytics/analytics_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/analytics/analytics_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/analytics/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/analytics/register_user_context.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/analytics/register_user_context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/anonymous_access/anonymous_access_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/anonymous_access/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/__snapshots__/access_agreement_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/access_agreement_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/access_agreement_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/access_agreement_page.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/access_agreement_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/access_agreement_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/access_agreement/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/authentication_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/capture_url/capture_url_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/capture_url/capture_url_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/capture_url/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/authentication_state_page/__snapshots__/authentication_state_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/authentication_state_page/authentication_state_page.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/authentication_state_page/authentication_state_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/authentication_state_page/authentication_state_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/authentication_state_page/index.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logged_out/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logged_out/logged_out_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logged_out/logged_out_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logged_out/logged_out_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logged_out/logged_out_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/__snapshots__/login_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/disabled_login_form/__snapshots__/disabled_login_form.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/disabled_login_form/disabled_login_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/disabled_login_form/disabled_login_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/disabled_login_form/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/__snapshots__/login_form.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/login_form.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/login_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/login_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/validate_login.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/components/login_form/validate_login.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/login_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/login_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/login_page.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/login_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/login/login_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logout/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logout/logout_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/logout/logout_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/__snapshots__/overwritten_session_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/overwritten_session_app.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/overwritten_session_app.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/overwritten_session_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authentication/overwritten_session/overwritten_session_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authorization/authorization_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/authorization/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/build_delegate_api.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/build_delegate_api.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/breadcrumb.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/breadcrumb.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/doc_link.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/security_api_clients_provider.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_badge.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_badge.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_capabilities.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_capabilities.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_current_user.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_form.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_html_id.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/components/use_initial_focus.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/api_keys_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/invalidate_provider/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/invalidate_provider/invalidate_provider.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/not_enabled/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/not_enabled/not_enabled.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/permission_denied/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_grid/permission_denied/permission_denied.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/api_keys_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/api_keys/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/deprecated_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/disabled_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/enabled_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/optional_tooltip.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/readonly_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/badges/reserved_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/management_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/management_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/management_urls.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_combo_box/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_combo_box/role_combo_box.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_combo_box/role_combo_box.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/delete_provider/delete_provider.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/delete_provider/delete_provider.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/delete_provider/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/no_compatible_realms/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/no_compatible_realms/no_compatible_realms.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/permission_denied/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/permission_denied/permission_denied.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/section_loading/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/section_loading/section_loading.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/components/section_loading/section_loading.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/index.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_type_select.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/index.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_title.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/is_rule_group.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/__snapshots__/rule_builder.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/all_rule.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/all_rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/any_rule.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/any_rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/except_all_rule.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/except_all_rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/except_any_rule.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/except_any_rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/field_rule.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/field_rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/rule.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/rule_builder.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/rule_builder.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/rule_builder_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/model/rule_group.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/empty_prompt/empty_prompt.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/empty_prompt/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_mappings/role_mappings_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_table_display/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/role_table_display/role_table_display.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/__snapshots__/validate_role.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/collapsible_panel/__snapshots__/collapsible_panel.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/collapsible_panel/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/delete_role_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/delete_role_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/edit_role_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/edit_role_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privilege_form.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges_form.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_clusters_combo_box.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/cluster_privileges.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/cluster_privileges.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/index_privilege_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/index_privilege_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/index_privileges.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/index_privileges.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/__snapshots__/kibana_privileges_region.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/__fixtures__/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_expanded_row.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/__snapshots__/simple_privilege_section.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/privilege_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/unsupported_space_privileges_warning.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/__snapshots__/space_aware_privilege_section.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/transform_error_section.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/reserved_role_badge.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/reserved_role_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/spaces_popover_list/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/validate_role.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/edit_role/validate_role.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/indices_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/indices_api_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/indices_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/privileges_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/privileges_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_api_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/__snapshots__/roles_grid_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/confirm_delete/confirm_delete.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/confirm_delete/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/permission_denied/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/permission_denied/permission_denied.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/roles_grid_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_grid/roles_grid_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/roles/roles_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/security_features/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/security_features/security_features_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/security_features/security_features_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/uri_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/url_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/change_password_form/change_password_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/change_password_form/change_password_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/change_password_form/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/confirm_delete_users/confirm_delete_users.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/confirm_delete_users/confirm_delete_users.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/confirm_delete_users/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/change_password_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/change_password_model.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/confirm_delete_users.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/confirm_disable_users.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/confirm_enable_users.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/create_user_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/create_user_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/edit_user_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/edit_user_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/edit_user/user_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/user_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/user_api_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/user_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/user_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/users_grid/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/users_grid/users_grid_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/users_grid/users_grid_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/users_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/management/users/users_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/nav_control_component.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/nav_control_component.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/nav_control_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/nav_control/nav_control_service.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/plugin.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/security_checkup/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/security_checkup/components/insecure_cluster_alert.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/security_checkup/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/security_checkup/security_checkup_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/security_checkup/security_checkup_service.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_expiration_toast.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_expiration_toast.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_expired.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_expired.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_expired.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_timeout.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/session_timeout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/unauthorized_response_http_interceptor.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/session/unauthorized_response_http_interceptor.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/suspense_error_boundary/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/suspense_error_boundary/suspense_error_boundary.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/change_password/change_password.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/change_password/change_password_async.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/change_password/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/components.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/lazy_wrapper.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/personal_info/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/personal_info/personal_info.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/public/ui_api/personal_info/personal_info_async.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/__snapshots__/prompt_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/analytics/analytics_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/analytics/analytics_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/analytics/analytics_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/analytics/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/anonymous_access/anonymous_access_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/anonymous_access/anonymous_access_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/anonymous_access/anonymous_access_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/anonymous_access/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/audit_events.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/audit_events.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/audit_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/audit_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/audit/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/__snapshots__/unauthenticated_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/api_keys/api_keys.test.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/api_keys/api_keys.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/api_keys/api_keys.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/api_keys/fake_kibana_request.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/api_keys/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_result.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_service.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authentication_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authenticator.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/authenticator.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/can_redirect_request.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/can_redirect_request.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/deauthentication_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/deauthentication_result.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/http_authentication/http_authorization_header.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/http_authentication/http_authorization_header.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/http_authentication/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/anonymous.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/anonymous.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/base.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/base.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/basic.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/basic.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/http.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/http.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/kerberos.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/kerberos.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/oidc.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/oidc.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/pki.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/pki.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/saml.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/saml.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/token.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/providers/token.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/tokens.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/tokens.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/unauthenticated_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authentication/unauthenticated_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/disable_ui_capabilities.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/privilege_serializer.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/privileges_serializer.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/reset_session_page.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/resource_serializer.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/__snapshots__/validate_es_response.test.ts.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/api_authorization.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/api_authorization.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/app_authorization.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/app_authorization.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/authorization_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/authorization_service.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_privileges.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_privileges_dynamically.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_privileges_dynamically.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_saved_objects_privileges.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/check_saved_objects_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/disable_ui_capabilities.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/disable_ui_capabilities.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/mode.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/mode.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/privilege_serializer.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/privilege_serializer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/privileges_serializer.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/privileges_serializer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/register_privileges_with_cluster.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/register_privileges_with_cluster.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/reset_session_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/reset_session_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/resource_serializer.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/resource_serializer.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/roles/elasticsearch_role.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/roles/elasticsearch_role.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/roles/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/service.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_es_response.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_es_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_feature_privileges.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_feature_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_reserved_privileges.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/authorization/validate_reserved_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/build_delegate_apis.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/build_delegate_apis.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/config_deprecations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/config_deprecations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/deprecations/kibana_user_role.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/deprecations/kibana_user_role.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/deprecations/privilege_deprecations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/deprecations/privilege_deprecations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/elasticsearch/elasticsearch_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/elasticsearch/elasticsearch_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/elasticsearch/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/errors.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/feature_usage/feature_usage_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/feature_usage/feature_usage_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/feature_usage/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/feature_usage/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/features/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/features/security_features.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/fips/fips_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/fips/fips_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/fips/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/lib/flatten_object.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/lib/flatten_object.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/lib/role_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/lib/role_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/prompt_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/prompt_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/analytics/authentication_type.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/analytics/authentication_type.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/analytics/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/analytics/record_violations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/analytics/record_violations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/anonymous_access/get_capabilities.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/anonymous_access/get_capabilities.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/anonymous_access/get_state.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/anonymous_access/get_state.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/anonymous_access/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/create.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/create.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/enabled.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/enabled.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/has_active.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/has_active.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/invalidate.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/invalidate.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/query.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/query.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/update.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/api_keys/update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/common.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/common.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/oidc.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/saml.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authentication/saml.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/privileges/get.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/privileges/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/privileges/get_builtin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/privileges/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/reset_session_page.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/delete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/delete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get_all.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get_all.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get_all_by_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/get_all_by_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/lib/role_privileges.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/model/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/model/put_payload.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/model/put_payload.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/post.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/post.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/put.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/roles/put.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/spaces/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/authorization/spaces/share_saved_object_permissions.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/deprecations/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/deprecations/kibana_user_role.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/deprecations/kibana_user_role.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/feature_check/feature_check.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/feature_check/feature_check.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/feature_check/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/indices/get_fields.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/indices/get_fields.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/indices/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/licensed_route_handler.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/delete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/delete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/get.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/post.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/role_mapping/post.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/security_checkup/get_state.test.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/security_checkup/get_state.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/security_checkup/get_state.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/security_checkup/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/extend.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/extend.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/info.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/info.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/invalidate.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/session_management/invalidate.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/tags.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/bulk_get.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/bulk_get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/get_current.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/get_current.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/update.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/user_profile/update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/change_password.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/change_password.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/create_or_update.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/delete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/disable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/enable.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/get_all.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/users/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/access_agreement.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/access_agreement.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/account_management.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/capture_url.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/capture_url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/logged_out.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/logged_out.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/login.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/login.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/logout.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/routes/views/overwritten_session.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/authorization_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/authorization_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/ensure_authorized.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/ensure_authorized.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/saved_objects_security_extension.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/saved_objects/saved_objects_security_extension.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/security_checkup/check_cluster_data.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/security_checkup/check_cluster_data.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/security_checkup/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_cookie.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_cookie.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_cookie.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/session_concurrency_limit_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/session_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/session_expired_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/session_missing_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_errors/session_unexpected_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_management_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/session_management/session_management_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/spaces/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/spaces/secure_spaces_client_wrapper.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/spaces/secure_spaces_client_wrapper.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/spaces/setup_spaces_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/spaces/setup_spaces_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/usage_collector/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/usage_collector/security_usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/usage_collector/security_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/user_profile/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/user_profile/user_profile_grant.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/user_profile/user_profile_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/user_profile/user_profile_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/server/user_profile/user_profile_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/security/tsconfig.json (98%) rename x-pack/{plugins => platform/plugins/shared}/spaces/README.md (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/is_reserved_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/is_reserved_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/lib/dataurl.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/lib/spaces_url_parser.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/lib/spaces_url_parser.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/licensing/index.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/licensing/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/licensing/license_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/licensing/license_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/types/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/types/latest.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/common/types/space/v1.ts (100%) rename x-pack/{packages/security/ui_components => platform/plugins/shared/spaces}/jest.config.js (61%) rename x-pack/{plugins => platform/plugins/shared}/spaces/kibana.jsonc (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/analytics/event_tracker.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/analytics/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/analytics/register_analytics_context.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/analytics/register_event_types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_status_indicator.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_footer.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/copy_to_space_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/processing_copy_to_space.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/space_result.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/space_result.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/space_result_details.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/components/space_result_details.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/lib/process_import_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/copy_saved_objects_to_space/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/create_feature_catalogue_entry.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/legacy_url_conflict.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/legacy_url_conflict_internal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/components/legacy_url_conflict_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/redirect_legacy_url.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/redirect_legacy_url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/legacy_urls/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/__snapshots__/delete_spaces_button.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_alter_active_space_modal/__snapshots__/confirm_alter_active_space_modal.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_alter_active_space_modal/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/confirm_delete_modal/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_avatar/__snapshots__/customize_space_avatar.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_avatar/customize_avatar.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_avatar/customize_space_avatar.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_avatar/customize_space_avatar.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_avatar/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_space/__snapshots__/customize_space.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_space/customize_space.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_space/customize_space.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/customize_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/delete_spaces_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/delete_spaces_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/__snapshots__/enabled_features.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/enabled_features.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/enabled_features.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/feature_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/toggle_all_features.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/enabled_features/toggle_all_features.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/section_panel/__snapshots__/section_panel.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/section_panel/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/section_panel/section_panel.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/section_panel/section_panel.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/section_panel/section_panel.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/solution_view/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/solution_view/solution_view.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/unauthorized_prompt/__snapshots__/unauthorized_prompt.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/unauthorized_prompt/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/create_space/create_space_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/create_space/create_space_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/create_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_content_tab.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_content_tab.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_general_tab.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_general_tab.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_roles_tab.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_roles_tab.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_tabs.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/edit_space_tabs.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/footer.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/handle_api_error.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/hooks/use_tabs.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/provider/edit_space_provider.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/provider/edit_space_provider.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/provider/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/provider/reducers/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/reserved_space_badge.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/reserved_space_badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/feature_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/feature_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/sort_roles.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/sort_roles.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/space_identifier_utils.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/space_identifier_utils.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/validate_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/lib/validate_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/management_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/management_service.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/privilege_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/roles_api_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/security_license.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/spaces_grid/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/spaces_grid/spaces_grid_page.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/spaces_management_app.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/spaces_management_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/management/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/__snapshots__/manage_spaces_button.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/manage_spaces_button.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/manage_spaces_button.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/spaces_description.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/spaces_description.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/spaces_menu.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/components/spaces_menu.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/nav_control.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/nav_control_popover.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/nav_control_popover.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/solution_view_tour/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/solution_view_tour/lib.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/solution_view_tour/solution_view_tour.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/nav_control/types.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/plugin.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/alias_table.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/no_spaces_available.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/relatives_footer.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/components/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/share_saved_objects_to_space/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/space_attributes.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/space_attributes.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/space_avatar.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/space_avatar_internal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/space_avatar_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_avatar/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_list/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_list/space_list.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_list/space_list_internal.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_list/space_list_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_list/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_card.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_card.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_card.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_cards.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_cards.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/components/space_cards.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/index.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/space_selector.scss (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/space_selector.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/space_selector.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_selector/space_selector_app.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_solution_badge/__snapshots__/badge.test.tsx.snap (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_solution_badge/badge.test.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_solution_badge/badge.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/space_solution_badge/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_context/context.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_context/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_context/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_context/wrapper.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_context/wrapper_internal.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_manager/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_manager/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_manager/spaces_manager.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_manager/spaces_manager.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/spaces_manager/spaces_manager.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/suspense_error_boundary/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/suspense_error_boundary/suspense_error_boundary.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/ui_api/components.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/ui_api/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/ui_api/lazy_wrapper.tsx (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/public/ui_api/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/capabilities/capabilities_provider.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/capabilities/capabilities_provider.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/capabilities/capabilities_switcher.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/capabilities/capabilities_switcher.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/capabilities/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/config.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/default_space/create_default_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/default_space/create_default_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/default_space/default_space_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/default_space/default_space_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/default_space/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/__fixtures__/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/__fixtures__/spaces_config.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/copy_to_spaces.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/copy_to_spaces.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/lib/create_empty_failure_response.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/lib/get_ineligible_types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/lib/read_stream_to_completion.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/lib/readable_stream_from_array.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/lib/saved_objects_client_opts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/copy_to_spaces/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/errors.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/get_space_selector_url.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/get_space_selector_url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/request_interceptors/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/request_interceptors/on_post_auth_interceptor.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/request_interceptors/on_post_auth_interceptor.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/request_interceptors/on_request_interceptor.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/request_interceptors/on_request_interceptor.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/space_schema.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/space_schema.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/spaces_tutorial_context_factory.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/spaces_tutorial_context_factory.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/__mocks__/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/namespace.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/namespace.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/space_solution_disabled_features.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/space_solution_disabled_features.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/url.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/lib/utils/url.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/plugin.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/plugin.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/create_copy_to_space_mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/create_mock_so_repository.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/create_mock_so_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/create_spaces.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/__fixtures__/route_contexts.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/copy_to_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/copy_to_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/delete.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/delete.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/disable_legacy_url_aliases.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/disable_legacy_url_aliases.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get_all.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get_all.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get_shareable_references.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/get_shareable_references.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/post.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/post.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/put.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/put.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/update_objects_spaces.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/external/update_objects_spaces.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/get_active_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/get_active_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/get_content_summary.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/get_content_summary.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/set_solution_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/api/internal/set_solution_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/convert_saved_object_to_space.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/convert_saved_object_to_space.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/licensed_route_handler.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/parse_cloud_solution.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/lib/parse_cloud_solution.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/views/index.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/routes/views/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/mappings.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/migrations/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/migrations/space_migrations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/migrations/space_migrations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/migrations/usage_stats_migrations.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/migrations/usage_stats_migrations.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/saved_objects_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/saved_objects_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/saved_objects_spaces_extension.test.mocks.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/saved_objects_spaces_extension.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/saved_objects_spaces_extension.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/schemas.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/saved_objects/schemas.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_client/spaces_client_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_service/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_service/spaces_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_service/spaces_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/spaces_service/spaces_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/ui_settings.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_collection/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_collection/spaces_usage_collector.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_collection/spaces_usage_collector.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/constants.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/index.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/types.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_client.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_client.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_client.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_service.mock.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_service.test.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/server/usage_stats/usage_stats_service.ts (100%) rename x-pack/{plugins => platform/plugins/shared}/spaces/tsconfig.json (97%) delete mode 100644 x-pack/plugins/encrypted_saved_objects/jest.config.js delete mode 100644 x-pack/plugins/security/jest.config.js delete mode 100644 x-pack/plugins/spaces/jest.config.js diff --git a/.buildkite/scripts/pipelines/pull_request/pipeline.ts b/.buildkite/scripts/pipelines/pull_request/pipeline.ts index 866634d082d9a..7c240ca5e5da2 100644 --- a/.buildkite/scripts/pipelines/pull_request/pipeline.ts +++ b/.buildkite/scripts/pipelines/pull_request/pipeline.ts @@ -51,7 +51,7 @@ const getPipeline = (filename: string, removeSteps = true) => { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/base.yml', false)); - if (await doAnyChangesMatch([/^packages\/kbn-handlebars/])) { + if (await doAnyChangesMatch([/^src\/platform\/packages\/private\/kbn-handlebars/])) { pipeline.push(getPipeline('.buildkite/pipelines/pull_request/kbn_handlebars.yml')); } @@ -236,7 +236,7 @@ const getPipeline = (filename: string, removeSteps = true) => { if ( (await doAnyChangesMatch([ /^packages\/kbn-securitysolution-.*/, - /^x-pack\/solutions\/security\/plugins\/security_solution/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/, /^x-pack\/test\/defend_workflows_cypress/, /^x-pack\/test\/security_solution_cypress/, /^fleet_packages\.json/, @@ -256,9 +256,9 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/platform\/plugins\/shared\/data_views\/common/, /^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, - /^x-pack\/solutions\/security\/plugins\/security_solution/, - /^x-pack\/solutions\/security\/plugins\/security_solution_ess/, - /^x-pack\/solutions\/security\/plugins\/security_solution_serverless/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_ess/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_serverless/, /^x-pack\/platform\/plugins\/shared\/task_manager/, /^x-pack\/solutions\/security\/plugins\/timelines/, /^x-pack\/platform\/plugins\/shared\/triggers_actions_ui\/public\/application\/sections\/action_connector_form/, @@ -306,7 +306,7 @@ const getPipeline = (filename: string, removeSteps = true) => { /^src\/platform\/packages\/shared\/kbn-resizable-layout/, /^src\/platform\/packages\/shared\/kbn-rison/, /^src\/platform\/packages\/shared\/kbn-rule-data-utils/, - /^packages\/kbn-safer-lodash-set/, + /^src\/platform\/packages\/shared\/kbn-safer-lodash-set/, /^src\/platform\/packages\/shared\/kbn-search-types/, /^packages\/kbn-securitysolution-.*/, /^src\/platform\/packages\/shared\/kbn-securitysolution-ecs/, @@ -341,9 +341,9 @@ const getPipeline = (filename: string, removeSteps = true) => { /^x-pack\/solutions\/security\/plugins\/elastic_assistant/, /^x-pack\/solutions\/security\/plugins\/lists/, /^x-pack\/platform\/plugins\/shared\/rule_registry\/common/, - /^x-pack\/solutions\/security\/plugins\/security_solution/, - /^x-pack\/solutions\/security\/plugins\/security_solution_ess/, - /^x-pack\/solutions\/security\/plugins\/security_solution_serverless/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_ess/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution_serverless/, /^x-pack\/platform\/plugins\/shared\/task_manager/, /^x-pack\/solutions\/security\/plugins\/threat_intelligence/, /^x-pack\/solutions\/security\/plugins\/timelines/, @@ -363,7 +363,7 @@ const getPipeline = (filename: string, removeSteps = true) => { ((await doAnyChangesMatch([ /^x-pack\/platform\/plugins\/shared\/osquery/, /^x-pack\/test\/osquery_cypress/, - /^x-pack\/solutions\/security\/plugins\/security_solution/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/, ])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites')) && !GITHUB_PR_LABELS.includes('ci:skip-cypress-osquery') @@ -377,7 +377,7 @@ const getPipeline = (filename: string, removeSteps = true) => { (await doAnyChangesMatch([ /^x-pack\/packages\/kbn-cloud-security-posture/, /^x-pack\/solutions\/security\/platform\/plugins\/shared\/cloud_security_posture/, - /^x-pack\/solutions\/security\/plugins\/security_solution/, + /^x-pack\/solutions\/security\/platform\/plugins\/shared\/security_solution/, /^x-pack\/test\/security_solution_cypress/, ])) || GITHUB_PR_LABELS.includes('ci:all-cypress-suites') diff --git a/.buildkite/scripts/steps/test/kbn_handlebars.sh b/.buildkite/scripts/steps/test/kbn_handlebars.sh index b66bc75679211..50180d27c3712 100755 --- a/.buildkite/scripts/steps/test/kbn_handlebars.sh +++ b/.buildkite/scripts/steps/test/kbn_handlebars.sh @@ -5,4 +5,4 @@ set -euo pipefail source .buildkite/scripts/common/util.sh echo '--- Checking for @kbn/handlebars upstream updates' -packages/kbn-handlebars/scripts/check_for_upstream_updates.sh +src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh diff --git a/.eslintrc.js b/.eslintrc.js index 874a47c9d6650..43f81e3da862a 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -84,7 +84,7 @@ const ELV2_LICENSE_HEADER = ` const SAFER_LODASH_SET_HEADER = ` /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. + * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information. */ `; @@ -93,7 +93,7 @@ const SAFER_LODASH_SET_LODASH_HEADER = ` * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. + * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information. */ `; @@ -102,14 +102,14 @@ const SAFER_LODASH_SET_DEFINITELYTYPED_HEADER = ` * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See \`packages/kbn-safer-lodash-set/LICENSE\` for more information. + * See \`src/platform/packages/shared/kbn-safer-lodash-set/LICENSE\` for more information. */ `; const KBN_HANDLEBARS_HEADER = ` /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See \`packages/kbn-handlebars/LICENSE\` for more information. + * See \`src/platform/packages/private/kbn-handlebars/LICENSE\` for more information. */ `; @@ -118,7 +118,7 @@ const KBN_HANDLEBARS_HANDLEBARS_HEADER = ` * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See \`packages/kbn-handlebars/LICENSE\` for more information. + * See \`src/platform/packages/private/kbn-handlebars/LICENSE\` for more information. */ `; @@ -441,7 +441,7 @@ module.exports = { * safer-lodash-set package requires special license headers */ { - files: ['packages/kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/packages/shared/kbn-safer-lodash-set/**/*.{js,mjs,ts,tsx}'], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -471,7 +471,7 @@ module.exports = { }, { - files: ['packages/kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}'], + files: ['src/platform/packages/shared/kbn-safer-lodash-set/test/*.{js,mjs,ts,tsx}'], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -500,7 +500,7 @@ module.exports = { }, }, { - files: ['packages/kbn-safer-lodash-set/**/*.d.ts'], + files: ['src/platform/packages/shared/kbn-safer-lodash-set/**/*.d.ts'], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -533,7 +533,7 @@ module.exports = { * @kbn/handlebars package requires special license headers */ { - files: ['packages/kbn-handlebars/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/packages/private/kbn-handlebars/**/*.{js,mjs,ts,tsx}'], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -562,7 +562,7 @@ module.exports = { }, }, { - files: ['packages/kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}'], + files: ['src/platform/packages/private/kbn-handlebars/src/spec/**/*.{js,mjs,ts,tsx}'], rules: { '@kbn/eslint/require-license-header': [ 'error', @@ -778,7 +778,7 @@ module.exports = { * Harden specific rules */ { - files: ['test/harden/*.js', 'packages/kbn-safer-lodash-set/test/*.js'], + files: ['test/harden/*.js', 'src/platform/packages/shared/kbn-safer-lodash-set/test/*.js'], rules: { 'mocha/handle-done-callback': 'off', }, @@ -1840,24 +1840,24 @@ module.exports = { */ { files: [ - 'src/plugins/interactive_setup/**/*.{js,mjs,ts,tsx}', + 'src/platform/plugins/private/interactive_setup/**/*.{js,mjs,ts,tsx}', 'test/interactive_setup_api_integration/**/*.{js,mjs,ts,tsx}', 'test/interactive_setup_functional/**/*.{js,mjs,ts,tsx}', 'packages/kbn-mock-idp-plugin/**/*.{js,mjs,ts,tsx}', 'packages/kbn-mock-idp-utils/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-security-hardening/**/*.{js,mjs,ts,tsx}', - 'packages/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-security-hardening/**/*.{js,mjs,ts,tsx}', + 'src/platform/packages/shared/kbn-user-profile-components/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/plugins/shared/encrypted_saved_objects/**/*.{js,mjs,ts,tsx}', 'x-pack/test/encrypted_saved_objects_api_integration/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/security/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/plugins/shared/security/**/*.{js,mjs,ts,tsx}', 'x-pack/packages/security/**/*.{js,mjs,ts,tsx}', 'x-pack/test/security_api_integration/**/*.{js,mjs,ts,tsx}', 'x-pack/test/security_functional/**/*.{js,mjs,ts,tsx}', - 'x-pack/plugins/spaces/**/*.{js,mjs,ts,tsx}', + 'x-pack/platform/plugins/shared/spaces/**/*.{js,mjs,ts,tsx}', 'x-pack/test/spaces_api_integration/**/*.{js,mjs,ts,tsx}', ], rules: { diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 15a2209ad0440..ff34e407e3b11 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -344,7 +344,7 @@ packages/core/user-settings/core-user-settings-server @elastic/kibana-security packages/core/user-settings/core-user-settings-server-internal @elastic/kibana-security packages/core/user-settings/core-user-settings-server-mocks @elastic/kibana-security x-pack/platform/plugins/private/cross_cluster_replication @elastic/kibana-management -packages/kbn-crypto @elastic/kibana-security +src/platform/packages/shared/kbn-crypto @elastic/kibana-security src/platform/packages/shared/kbn-crypto-browser @elastic/kibana-core x-pack/platform/plugins/private/custom_branding @elastic/appex-sharedux src/platform/packages/shared/kbn-custom-icons @elastic/obs-ux-logs-team @@ -411,7 +411,7 @@ x-pack/platform/plugins/shared/embeddable_enhanced @elastic/kibana-presentation examples/embeddable_examples @elastic/kibana-presentation src/platform/plugins/shared/embeddable @elastic/kibana-presentation x-pack/examples/embedded_lens_example @elastic/kibana-visualizations -x-pack/plugins/encrypted_saved_objects @elastic/kibana-security +x-pack/platform/plugins/shared/encrypted_saved_objects @elastic/kibana-security x-pack/solutions/search/plugins/enterprise_search @elastic/search-kibana x-pack/solutions/observability/plugins/observability_solution/entities_data_access @elastic/obs-entities x-pack/platform/packages/shared/kbn-entities-schema @elastic/obs-entities @@ -512,7 +512,7 @@ src/platform/packages/shared/kbn-grouping @elastic/response-ops packages/kbn-guided-onboarding @elastic/appex-sharedux examples/guided_onboarding_example @elastic/appex-sharedux src/platform/plugins/shared/guided_onboarding @elastic/appex-sharedux -packages/kbn-handlebars @elastic/kibana-security +src/platform/packages/private/kbn-handlebars @elastic/kibana-security src/platform/packages/private/kbn-hapi-mocks @elastic/kibana-core test/plugin_functional/plugins/hardening @elastic/kibana-security src/platform/packages/private/kbn-health-gateway-server @elastic/kibana-core @@ -543,7 +543,7 @@ x-pack/platform/plugins/shared/ingest_pipelines @elastic/kibana-management src/platform/plugins/private/input_control_vis @elastic/kibana-presentation src/platform/plugins/shared/inspector @elastic/kibana-presentation x-pack/platform/plugins/shared/integration_assistant @elastic/security-scalability -src/plugins/interactive_setup @elastic/kibana-security +src/platform/plugins/private/interactive_setup @elastic/kibana-security test/interactive_setup_api_integration/plugins/test_endpoints @elastic/kibana-security packages/kbn-interpreter @elastic/kibana-visualizations x-pack/solutions/observability/plugins/inventory/e2e @elastic/obs-ux-infra_services-team @@ -762,7 +762,7 @@ src/platform/packages/shared/kbn-rrule @elastic/response-ops src/platform/packages/shared/kbn-rule-data-utils @elastic/security-detections-response @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/shared/rule_registry @elastic/response-ops @elastic/obs-ux-management-team x-pack/platform/plugins/private/runtime_fields @elastic/kibana-management -packages/kbn-safer-lodash-set @elastic/kibana-security +src/platform/packages/shared/kbn-safer-lodash-set @elastic/kibana-security x-pack/test/security_api_integration/plugins/saml_provider @elastic/kibana-security x-pack/test/plugin_api_integration/plugins/sample_task_plugin @elastic/response-ops x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget @elastic/response-ops @@ -807,16 +807,16 @@ x-pack/solutions/search/packages/search/shared_ui @elastic/search-kibana src/platform/packages/shared/kbn-search-types @elastic/kibana-data-discovery x-pack/platform/plugins/shared/searchprofiler @elastic/kibana-management x-pack/test/security_api_integration/packages/helpers @elastic/kibana-security -x-pack/packages/security/api_key_management @elastic/kibana-security -x-pack/packages/security/authorization_core @elastic/kibana-security -x-pack/packages/security/authorization_core_common @elastic/kibana-security -x-pack/packages/security/form_components @elastic/kibana-security -packages/kbn-security-hardening @elastic/kibana-security -x-pack/plugins/security @elastic/kibana-security -x-pack/packages/security/plugin_types_common @elastic/kibana-security -x-pack/packages/security/plugin_types_public @elastic/kibana-security -x-pack/packages/security/plugin_types_server @elastic/kibana-security -x-pack/packages/security/role_management_model @elastic/kibana-security +x-pack/platform/packages/shared/security/api_key_management @elastic/kibana-security +x-pack/platform/packages/private/security/authorization_core @elastic/kibana-security +x-pack/platform/packages/private/security/authorization_core_common @elastic/kibana-security +x-pack/platform/packages/shared/security/form_components @elastic/kibana-security +src/platform/packages/shared/kbn-security-hardening @elastic/kibana-security +x-pack/platform/plugins/shared/security @elastic/kibana-security +x-pack/platform/packages/shared/security/plugin_types_common @elastic/kibana-security +x-pack/platform/packages/shared/security/plugin_types_public @elastic/kibana-security +x-pack/platform/packages/shared/security/plugin_types_server @elastic/kibana-security +x-pack/platform/packages/private/security/role_management_model @elastic/kibana-security x-pack/solutions/security/packages/distribution_bar @elastic/kibana-cloud-security-posture x-pack/solutions/security/plugins/security_solution_ess @elastic/security-solution x-pack/solutions/security/packages/features @elastic/security-threat-hunting-explore @@ -828,7 +828,7 @@ x-pack/solutions/security/packages/side_nav @elastic/security-threat-hunting-exp x-pack/solutions/security/packages/storybook/config @elastic/security-threat-hunting-explore x-pack/solutions/security/packages/upselling @elastic/security-threat-hunting-explore x-pack/test/security_functional/plugins/test_endpoints @elastic/kibana-security -x-pack/packages/security/ui_components @elastic/kibana-security +x-pack/platform/packages/private/security/ui_components @elastic/kibana-security x-pack/solutions/security/packages/kbn-securitysolution-autocomplete @elastic/security-detection-engine x-pack/solutions/security/packages/data_table @elastic/security-threat-hunting-investigations src/platform/packages/shared/kbn-securitysolution-ecs @elastic/security-threat-hunting-explore @@ -925,7 +925,7 @@ x-pack/platform/plugins/private/snapshot_restore @elastic/kibana-management packages/kbn-some-dev-log @elastic/kibana-operations packages/kbn-sort-package-json @elastic/kibana-operations packages/kbn-sort-predicates @elastic/kibana-visualizations -x-pack/plugins/spaces @elastic/kibana-security +x-pack/platform/plugins/shared/spaces @elastic/kibana-security x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin @elastic/kibana-security packages/kbn-spec-to-console @elastic/kibana-management src/platform/packages/shared/kbn-sse-utils @elastic/obs-knowledge-team @@ -1010,7 +1010,7 @@ src/plugins/url_forwarding @elastic/kibana-visualizations src/platform/plugins/shared/usage_collection @elastic/kibana-core test/plugin_functional/plugins/usage_collection @elastic/kibana-core packages/kbn-use-tracked-promise @elastic/obs-ux-logs-team -packages/kbn-user-profile-components @elastic/kibana-security +src/platform/packages/shared/kbn-user-profile-components @elastic/kibana-security examples/user_profile_examples @elastic/kibana-security x-pack/test/security_api_integration/plugins/user_profiles_consumer @elastic/kibana-security src/platform/packages/shared/kbn-utility-types @elastic/kibana-core @@ -1482,7 +1482,7 @@ x-pack/platform/plugins/private/cloud_integrations/cloud_full_story/server/confi /x-pack/test_serverless/**/test_suites/security/platform_security/ @elastic/kibana-security /x-pack/test_serverless/**/test_suites/observability/platform_security/ @elastic/kibana-security /src/core/packages/http/server-internal/src/cdn_config/ @elastic/kibana-security @elastic/kibana-core -#CC# /x-pack/plugins/security/ @elastic/kibana-security +#CC# /x-pack/platform/plugins/shared/security/ @elastic/kibana-security # Response Ops team /x-pack/test/functional/es_archives/cases/default @elastic/response-ops @@ -1894,7 +1894,6 @@ x-pack/plugins/osquery @elastic/security-defend-workflows /x-pack/solutions/security/plugins/security_solution/public/cloud_defend @elastic/kibana-cloud-security-posture # Cloud Security Posture -x-pack/solutions/security/packages/distribution_bar @elastic/kibana-cloud-security-posture x-pack/packages/kbn-cloud-security-posture @elastic/kibana-cloud-security-posture /x-pack/test_serverless/functional/test_suites/security/config.cloud_security_posture.* @elastic/kibana-cloud-security-posture /x-pack/solutions/security/plugins/security_solution/public/cloud_security_posture @elastic/kibana-cloud-security-posture diff --git a/.i18nrc.json b/.i18nrc.json index ed8e90e6117bc..b45d3737fd07b 100644 --- a/.i18nrc.json +++ b/.i18nrc.json @@ -76,7 +76,7 @@ "inputControl": "src/platform/plugins/private/input_control_vis", "inspector": "src/platform/plugins/shared/inspector", "inspectorViews": "src/legacy/core_plugins/inspector_views", - "interactiveSetup": "src/plugins/interactive_setup", + "interactiveSetup": "src/platform/plugins/private/interactive_setup", "interpreter": "src/legacy/core_plugins/interpreter", "imageEmbeddable": "src/platform/plugins/private/image_embeddable", "kbn": "src/legacy/core_plugins/kibana", @@ -143,7 +143,7 @@ "uiActionsEnhanced": "src/platform/plugins/shared/ui_actions_enhanced", "uiActionsExamples": "examples/ui_action_examples", "usageCollection": "src/platform/plugins/shared/usage_collection", - "userProfileComponents": "packages/kbn-user-profile-components", + "userProfileComponents": "src/platform/packages/shared/kbn-user-profile-components", "utils": "x-pack/solutions/security/packages/kbn-securitysolution-utils/src", "visDefaultEditor": "src/plugins/vis_default_editor", "visTypeGauge": "src/plugins/vis_types/gauge", diff --git a/docs/developer/advanced/sharing-saved-objects.asciidoc b/docs/developer/advanced/sharing-saved-objects.asciidoc index 3ac4370d46dae..2baae57b7e7da 100644 --- a/docs/developer/advanced/sharing-saved-objects.asciidoc +++ b/docs/developer/advanced/sharing-saved-objects.asciidoc @@ -407,7 +407,7 @@ this in two ways, and many consumers will want to implement both: the spaces plugin, and you can use them in your own application. + First, make sure your page contents are wrapped in a -https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/spaces_context/types.ts[spaces context provider]: +https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/spaces_context/types.ts[spaces context provider]: + ```tsx const ContextWrapper = useMemo( @@ -425,9 +425,9 @@ return ( ); ``` + -Second, display a https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/space_list/types.ts[list of spaces] for an +Second, display a https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/space_list/types.ts[list of spaces] for an object, and third, show a -https://github.com/elastic/kibana/blob/{branch}/x-pack/plugins/spaces/public/share_saved_objects_to_space/types.ts[flyout] for the user to +https://github.com/elastic/kibana/blob/{branch}/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/types.ts[flyout] for the user to edit the object's assigned spaces. You may want to follow the example of the <> and https://github.com/elastic/kibana/blob/{branch}/src/platform/plugins/shared/data_view_management/public/components/index_pattern_table/spaces_list.tsx[combine these into a single component] so that the space list can be clicked to show the flyout: diff --git a/docs/developer/plugin-list.asciidoc b/docs/developer/plugin-list.asciidoc index 448450a8ed6a1..05cb3bef037bf 100644 --- a/docs/developer/plugin-list.asciidoc +++ b/docs/developer/plugin-list.asciidoc @@ -234,7 +234,7 @@ Images can be added either by URL or by uploading the image file via file servic in Kibana, e.g. visualizations. It has the form of a flyout panel. -|{kib-repo}blob/{branch}/src/plugins/interactive_setup/README.md[interactiveSetup] +|{kib-repo}blob/{branch}/src/platform/plugins/private/interactive_setup/README.md[interactiveSetup] |This plugin provides UI and APIs for interactive setup mode a.k.a "enrollment flow". @@ -563,7 +563,7 @@ Plugin server-side only. Plugin has three main functions: adds dynamic actions to every embeddables state, in order to support drilldowns. -|{kib-repo}blob/{branch}/x-pack/plugins/encrypted_saved_objects/README.md[encryptedSavedObjects] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/encrypted_saved_objects/README.md[encryptedSavedObjects] |The purpose of this plugin is to provide a way to encrypt/decrypt attributes on the custom Saved Objects that works with security and spaces filtering. @@ -856,7 +856,7 @@ detailed information on how Elasticsearch executed the search request. People us to understand why a search request might be slow. -|{kib-repo}blob/{branch}/x-pack/plugins/security/README.md[security] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/security/README.md[security] |See Configuring security in Kibana. @@ -899,7 +899,7 @@ This plugin is only enabled when the application is built for serverless project |or -|{kib-repo}blob/{branch}/x-pack/plugins/spaces/README.md[spaces] +|{kib-repo}blob/{branch}/x-pack/platform/plugins/shared/spaces/README.md[spaces] |See Configuring Kibana Spaces. diff --git a/legacy_rfcs/text/0007_lifecycle_unblocked.md b/legacy_rfcs/text/0007_lifecycle_unblocked.md index 5b507233dd0b6..3f347891b2ba8 100644 --- a/legacy_rfcs/text/0007_lifecycle_unblocked.md +++ b/legacy_rfcs/text/0007_lifecycle_unblocked.md @@ -344,7 +344,7 @@ functions and will be impacted: 4. [vis_type_vega](https://github.com/elastic/kibana/blob/6039709929caf0090a4130b8235f3a53bd04ed84/src/legacy/core_plugins/vis_type_vega/public/plugin.ts#L59) 6. [code](https://github.com/elastic/kibana/blob/5049b460b47d4ae3432e1d9219263bb4be441392/x-pack/legacy/plugins/code/server/plugin.ts#L129-L149) 7. [spaces](https://github.com/elastic/kibana/blob/096c7ee51136327f778845c636d7c4f1188e5db2/x-pack/legacy/plugins/spaces/server/new_platform/plugin.ts#L95) -8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/platform/plugins/shared/licensing/server/plugin.ts) +8. [licensing](https://github.com/elastic/kibana/blob/4667c46caef26f8f47714504879197708debae32/x-pack/plugins/licensing/server/plugin.ts) 9. [security](https://github.com/elastic/kibana/blob/0f2324e44566ce2cf083d89082841e57d2db6ef6/x-pack/plugins/security/server/plugin.ts#L96) # How we teach this diff --git a/package.json b/package.json index cb819373114a8..d0ba5f6c38a9b 100644 --- a/package.json +++ b/package.json @@ -414,7 +414,7 @@ "@kbn/core-user-settings-server-internal": "link:packages/core/user-settings/core-user-settings-server-internal", "@kbn/core-user-settings-server-mocks": "link:packages/core/user-settings/core-user-settings-server-mocks", "@kbn/cross-cluster-replication-plugin": "link:x-pack/platform/plugins/private/cross_cluster_replication", - "@kbn/crypto": "link:packages/kbn-crypto", + "@kbn/crypto": "link:src/platform/packages/shared/kbn-crypto", "@kbn/crypto-browser": "link:src/platform/packages/shared/kbn-crypto-browser", "@kbn/custom-branding-plugin": "link:x-pack/platform/plugins/private/custom_branding", "@kbn/custom-icons": "link:src/platform/packages/shared/kbn-custom-icons", @@ -474,7 +474,7 @@ "@kbn/embeddable-examples-plugin": "link:examples/embeddable_examples", "@kbn/embeddable-plugin": "link:src/platform/plugins/shared/embeddable", "@kbn/embedded-lens-example-plugin": "link:x-pack/examples/embedded_lens_example", - "@kbn/encrypted-saved-objects-plugin": "link:x-pack/plugins/encrypted_saved_objects", + "@kbn/encrypted-saved-objects-plugin": "link:x-pack/platform/plugins/shared/encrypted_saved_objects", "@kbn/enterprise-search-plugin": "link:x-pack/solutions/search/plugins/enterprise_search", "@kbn/entities-data-access-plugin": "link:x-pack/solutions/observability/plugins/observability_solution/entities_data_access", "@kbn/entities-schema": "link:x-pack/platform/packages/shared/kbn-entities-schema", @@ -557,7 +557,7 @@ "@kbn/guided-onboarding": "link:packages/kbn-guided-onboarding", "@kbn/guided-onboarding-example-plugin": "link:examples/guided_onboarding_example", "@kbn/guided-onboarding-plugin": "link:src/platform/plugins/shared/guided_onboarding", - "@kbn/handlebars": "link:packages/kbn-handlebars", + "@kbn/handlebars": "link:src/platform/packages/private/kbn-handlebars", "@kbn/hapi-mocks": "link:src/platform/packages/private/kbn-hapi-mocks", "@kbn/hardening-plugin": "link:test/plugin_functional/plugins/hardening", "@kbn/health-gateway-server": "link:src/platform/packages/private/kbn-health-gateway-server", @@ -586,7 +586,7 @@ "@kbn/input-control-vis-plugin": "link:src/platform/plugins/private/input_control_vis", "@kbn/inspector-plugin": "link:src/platform/plugins/shared/inspector", "@kbn/integration-assistant-plugin": "link:x-pack/platform/plugins/shared/integration_assistant", - "@kbn/interactive-setup-plugin": "link:src/plugins/interactive_setup", + "@kbn/interactive-setup-plugin": "link:src/platform/plugins/private/interactive_setup", "@kbn/interactive-setup-test-endpoints-plugin": "link:test/interactive_setup_api_integration/plugins/test_endpoints", "@kbn/interpreter": "link:packages/kbn-interpreter", "@kbn/inventory-plugin": "link:x-pack/solutions/observability/plugins/inventory", @@ -774,7 +774,7 @@ "@kbn/rule-data-utils": "link:src/platform/packages/shared/kbn-rule-data-utils", "@kbn/rule-registry-plugin": "link:x-pack/platform/plugins/shared/rule_registry", "@kbn/runtime-fields-plugin": "link:x-pack/platform/plugins/private/runtime_fields", - "@kbn/safer-lodash-set": "link:packages/kbn-safer-lodash-set", + "@kbn/safer-lodash-set": "link:src/platform/packages/shared/kbn-safer-lodash-set", "@kbn/saml-provider-plugin": "link:x-pack/test/security_api_integration/plugins/saml_provider", "@kbn/sample-task-plugin": "link:x-pack/test/plugin_api_integration/plugins/sample_task_plugin", "@kbn/sample-task-plugin-update-by-query": "link:x-pack/test/task_manager_claimer_update_by_query/plugins/sample_task_plugin_mget", @@ -815,16 +815,16 @@ "@kbn/search-shared-ui": "link:x-pack/solutions/search/packages/search/shared_ui", "@kbn/search-types": "link:src/platform/packages/shared/kbn-search-types", "@kbn/searchprofiler-plugin": "link:x-pack/platform/plugins/shared/searchprofiler", - "@kbn/security-api-key-management": "link:x-pack/packages/security/api_key_management", - "@kbn/security-authorization-core": "link:x-pack/packages/security/authorization_core", - "@kbn/security-authorization-core-common": "link:x-pack/packages/security/authorization_core_common", - "@kbn/security-form-components": "link:x-pack/packages/security/form_components", - "@kbn/security-hardening": "link:packages/kbn-security-hardening", - "@kbn/security-plugin": "link:x-pack/plugins/security", - "@kbn/security-plugin-types-common": "link:x-pack/packages/security/plugin_types_common", - "@kbn/security-plugin-types-public": "link:x-pack/packages/security/plugin_types_public", - "@kbn/security-plugin-types-server": "link:x-pack/packages/security/plugin_types_server", - "@kbn/security-role-management-model": "link:x-pack/packages/security/role_management_model", + "@kbn/security-api-key-management": "link:x-pack/platform/packages/shared/security/api_key_management", + "@kbn/security-authorization-core": "link:x-pack/platform/packages/private/security/authorization_core", + "@kbn/security-authorization-core-common": "link:x-pack/platform/packages/private/security/authorization_core_common", + "@kbn/security-form-components": "link:x-pack/platform/packages/shared/security/form_components", + "@kbn/security-hardening": "link:src/platform/packages/shared/kbn-security-hardening", + "@kbn/security-plugin": "link:x-pack/platform/plugins/shared/security", + "@kbn/security-plugin-types-common": "link:x-pack/platform/packages/shared/security/plugin_types_common", + "@kbn/security-plugin-types-public": "link:x-pack/platform/packages/shared/security/plugin_types_public", + "@kbn/security-plugin-types-server": "link:x-pack/platform/packages/shared/security/plugin_types_server", + "@kbn/security-role-management-model": "link:x-pack/platform/packages/private/security/role_management_model", "@kbn/security-solution-distribution-bar": "link:x-pack/solutions/security/packages/distribution_bar", "@kbn/security-solution-ess": "link:x-pack/solutions/security/plugins/security_solution_ess", "@kbn/security-solution-features": "link:x-pack/solutions/security/packages/features", @@ -836,7 +836,7 @@ "@kbn/security-solution-storybook-config": "link:x-pack/solutions/security/packages/storybook/config", "@kbn/security-solution-upselling": "link:x-pack/solutions/security/packages/upselling", "@kbn/security-test-endpoints-plugin": "link:x-pack/test/security_functional/plugins/test_endpoints", - "@kbn/security-ui-components": "link:x-pack/packages/security/ui_components", + "@kbn/security-ui-components": "link:x-pack/platform/packages/private/security/ui_components", "@kbn/securitysolution-autocomplete": "link:x-pack/solutions/security/packages/kbn-securitysolution-autocomplete", "@kbn/securitysolution-data-table": "link:x-pack/solutions/security/packages/data_table", "@kbn/securitysolution-ecs": "link:src/platform/packages/shared/kbn-securitysolution-ecs", @@ -930,7 +930,7 @@ "@kbn/slo-schema": "link:x-pack/platform/packages/shared/kbn-slo-schema", "@kbn/snapshot-restore-plugin": "link:x-pack/platform/plugins/private/snapshot_restore", "@kbn/sort-predicates": "link:packages/kbn-sort-predicates", - "@kbn/spaces-plugin": "link:x-pack/plugins/spaces", + "@kbn/spaces-plugin": "link:x-pack/platform/plugins/shared/spaces", "@kbn/spaces-test-plugin": "link:x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin", "@kbn/sse-utils": "link:src/platform/packages/shared/kbn-sse-utils", "@kbn/sse-utils-client": "link:src/platform/packages/shared/kbn-sse-utils-client", @@ -999,7 +999,7 @@ "@kbn/usage-collection-plugin": "link:src/platform/plugins/shared/usage_collection", "@kbn/usage-collection-test-plugin": "link:test/plugin_functional/plugins/usage_collection", "@kbn/use-tracked-promise": "link:packages/kbn-use-tracked-promise", - "@kbn/user-profile-components": "link:packages/kbn-user-profile-components", + "@kbn/user-profile-components": "link:src/platform/packages/shared/kbn-user-profile-components", "@kbn/user-profile-examples-plugin": "link:examples/user_profile_examples", "@kbn/user-profiles-consumer-plugin": "link:x-pack/test/security_api_integration/plugins/user_profiles_consumer", "@kbn/utility-types": "link:src/platform/packages/shared/kbn-utility-types", diff --git a/packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts b/packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts index 14ad94f45000a..584ebf80477c7 100644 --- a/packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts +++ b/packages/kbn-dependency-usage/src/dependency_graph/providers/cruiser.test.ts @@ -14,7 +14,7 @@ import * as groupBy from '../../lib/group_by_owners.ts'; import * as groupBySource from '../../lib/group_by_source.ts'; const codeOwners: Record = { - 'plugins/security': ['team_security'], + 'platform/plugins/shared/security': ['team_security'], 'plugins/data_visualization': ['team_visualization'], 'plugins/data_charts': ['team_visualization'], 'plugins/analytics': ['team_analytics'], @@ -45,7 +45,7 @@ const mockCruiseResult = { summary: { violations: [ { - from: 'plugins/security', + from: 'platform/plugins/shared/security', to: 'node_modules/rxjs', }, { @@ -70,7 +70,7 @@ const mockCruiseResult = { { source: 'node_modules/rxjs', dependents: [ - 'plugins/security/server/index.ts', + 'platform/plugins/shared/security/server/index.ts', 'plugins/data_charts/public/charts.ts', 'plugins/data_visualization/public/visualization.ts', 'plugins/data_visualization/public/ingest.ts', @@ -137,7 +137,7 @@ describe('identifyDependencyUsage', () => { expect(result).toEqual({ team_security: { - modules: ['plugins/security'], + modules: ['platform/plugins/shared/security'], deps: ['rxjs'], teams: ['team_security'], }, @@ -167,7 +167,7 @@ describe('identifyDependencyUsage', () => { expect(groupFilesByOwnersSpy).toHaveBeenCalledWith(mockCruiseResult.output.summary.violations); expect(result).toEqual({ - 'plugins/security': ['rxjs'], + 'platform/plugins/shared/security': ['rxjs'], 'plugins/data_visualization': ['rxjs'], 'plugins/data_charts': ['rxjs'], 'plugins/analytics': ['rxjs', '@hapi/boom'], @@ -185,14 +185,14 @@ describe('identifyDependencyUsage', () => { expect(result).toEqual({ modules: [ - 'plugins/security', + 'platform/plugins/shared/security', 'plugins/data_visualization', 'plugins/data_charts', 'plugins/analytics', ], dependents: { rxjs: [ - 'plugins/security/server/index.ts', + 'platform/plugins/shared/security/server/index.ts', 'plugins/data_charts/public/charts.ts', 'plugins/data_visualization/public/visualization.ts', 'plugins/data_visualization/public/ingest.ts', @@ -213,7 +213,7 @@ describe('identifyDependencyUsage', () => { expect(result).toEqual({ modules: [ - 'plugins/security', + 'platform/plugins/shared/security', 'plugins/data_visualization', 'plugins/data_charts', 'plugins/analytics', @@ -272,7 +272,7 @@ describe('identifyDependencyUsage', () => { summary: { violations: [ { from: 'plugins/unknown_plugin', to: 'node_modules/some_module' }, - { from: 'plugins/security', to: 'node_modules/rxjs' }, + { from: 'platform/plugins/shared/security', to: 'node_modules/rxjs' }, ], }, modules: [], @@ -294,7 +294,7 @@ describe('identifyDependencyUsage', () => { teams: ['unknown'], }, team_security: { - modules: ['plugins/security'], + modules: ['platform/plugins/shared/security'], deps: ['rxjs'], teams: ['team_security'], }, diff --git a/packages/kbn-handlebars/jest.config.js b/packages/kbn-handlebars/jest.config.js deleted file mode 100644 index feb9f905d33e5..0000000000000 --- a/packages/kbn-handlebars/jest.config.js +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-handlebars'], -}; diff --git a/src/core/packages/saved-objects/common/src/types.ts b/src/core/packages/saved-objects/common/src/types.ts index 6aed1fe01a495..5b79a2ca7e0fd 100644 --- a/src/core/packages/saved-objects/common/src/types.ts +++ b/src/core/packages/saved-objects/common/src/types.ts @@ -19,7 +19,6 @@ export interface SavedObjectTypeIdTuple { type: string; } -// NOTE: moved from x-pack/plugins/spaces/common/types.ts for use by SO security ext /** * Client interface for interacting with legacy URL aliases. */ diff --git a/src/core/packages/security/server/src/audit_logging/audit_logger.ts b/src/core/packages/security/server/src/audit_logging/audit_logger.ts index 831436e9576f9..c4cda7dfaf4e2 100644 --- a/src/core/packages/security/server/src/audit_logging/audit_logger.ts +++ b/src/core/packages/security/server/src/audit_logging/audit_logger.ts @@ -15,7 +15,7 @@ export interface AuditLogger { * current user, space and correlation id. * * Guidelines around what events should be logged and how they should be - * structured can be found in: `/x-pack/plugins/security/README.md` + * structured can be found in: `/x-pack/platform/plugins/shared/security/README.md` * * @example * ```typescript diff --git a/src/core/packages/user-profile/common/src/user_profile.ts b/src/core/packages/user-profile/common/src/user_profile.ts index 568d711857853..0dd953ae52286 100644 --- a/src/core/packages/user-profile/common/src/user_profile.ts +++ b/src/core/packages/user-profile/common/src/user_profile.ts @@ -11,7 +11,7 @@ * IMPORTANT: * * The types in this file are duplicated at - * `packages/kbn-user-profile-components/src/user_profile.ts` + * `src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts` * * When making changes please ensure to keep both files in sync. */ diff --git a/src/dev/precommit_hook/casing_check_config.js b/src/dev/precommit_hook/casing_check_config.js index 6ba49a1022d1b..8c3d5890ef7af 100644 --- a/src/dev/precommit_hook/casing_check_config.js +++ b/src/dev/precommit_hook/casing_check_config.js @@ -62,11 +62,11 @@ export const IGNORE_FILE_GLOBS = [ '**/preview-head.html', // filename must match upstream filenames from lodash - 'packages/kbn-safer-lodash-set/**/*', + 'src/platform/packages/shared/kbn-safer-lodash-set/**/*', // filename must match upstream filenames from handlebars - 'packages/kbn-handlebars/src/upstream/**/*', - 'packages/kbn-handlebars/.patches/**/*', + 'src/platform/packages/private/kbn-handlebars/src/upstream/**/*', + 'src/platform/packages/private/kbn-handlebars/.patches/**/*', 'x-pack/platform/plugins/shared/maps/server/fonts/**/*', diff --git a/packages/kbn-handlebars/LICENSE b/src/platform/packages/private/kbn-handlebars/LICENSE similarity index 93% rename from packages/kbn-handlebars/LICENSE rename to src/platform/packages/private/kbn-handlebars/LICENSE index 5d971a1754fea..fc9a61d2ebbfe 100644 --- a/packages/kbn-handlebars/LICENSE +++ b/src/platform/packages/private/kbn-handlebars/LICENSE @@ -26,4 +26,4 @@ This software consists of voluntary contributions made by many individuals. For exact contribution history, see the revision history available at the following locations: - https://github.com/handlebars-lang/handlebars.js - - https://github.com/elastic/kibana/tree/main/packages/kbn-handlebars + - https://github.com/elastic/kibana/tree/main/src/platform/packages/private/kbn-handlebars diff --git a/packages/kbn-handlebars/README.md b/src/platform/packages/private/kbn-handlebars/README.md similarity index 90% rename from packages/kbn-handlebars/README.md rename to src/platform/packages/private/kbn-handlebars/README.md index cc151645ef1be..af9c41f256ee3 100644 --- a/packages/kbn-handlebars/README.md +++ b/src/platform/packages/private/kbn-handlebars/README.md @@ -68,7 +68,7 @@ We keep state internally in the `ElasticHandlebarsVisitor` object using the foll The tests for `@kbn/handlebars` are integrated into the regular test suite of Kibana and are all jest tests. To run them all, simply do: ```sh -node scripts/jest packages/kbn-handlebars +node scripts/jest src/platform/packages/private/kbn-handlebars ``` By default, each test will run both the original `handlebars` code and the modified `@kbn/handlebars` code to compare if the output of the two are identical. To isolate a test run to just one or the other, you can use the following environment variables: @@ -78,10 +78,10 @@ By default, each test will run both the original `handlebars` code and the modif ## Development -Some of the tests have been copied from the upstream `handlebars` project and modified to fit our use-case, test-suite, and coding conventions. They are all located under the `packages/kbn-handlebars/src/spec` directory. To check if any of the copied files have received updates upstream that we might want to include in our copies, you can run the following script: +Some of the tests have been copied from the upstream `handlebars` project and modified to fit our use-case, test-suite, and coding conventions. They are all located under the `src/platform/packages/private/kbn-handlebars/src/spec` directory. To check if any of the copied files have received updates upstream that we might want to include in our copies, you can run the following script: ```sh -./packages/kbn-handlebars/scripts/check_for_upstream_updates.sh +./src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh ``` _Note: This will look for changes in the `4.x` branch of the `handlebars.js` repo only. Changes in the `master` branch are ignored._ @@ -89,10 +89,10 @@ _Note: This will look for changes in the `4.x` branch of the `handlebars.js` rep Once all updates have been manually merged with our versions of the files, run the following script to "lock" us into the new updates: ```sh -./packages/kbn-handlebars/scripts/update_upstream_git_hash.sh +./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh ``` -This will update file `packages/kbn-handlebars/src/spec/.upstream_git_hash`. Make sure to commit changes to this file as well. +This will update file `src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash`. Make sure to commit changes to this file as well. ## Debugging @@ -101,13 +101,13 @@ This will update file `packages/kbn-handlebars/src/spec/.upstream_git_hash`. Mak To output the generated AST object structure in a somewhat readable form, use the following script: ```sh -./packages/kbn-handlebars/scripts/print_ast.js +./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js ``` Example: ```sh -./packages/kbn-handlebars/scripts/print_ast.js '{{value}}' +./src/platform/packages/private/kbn-handlebars/scripts/print_ast.js '{{value}}' ``` Output: diff --git a/packages/kbn-handlebars/__snapshots__/index.test.ts.snap b/src/platform/packages/private/kbn-handlebars/__snapshots__/index.test.ts.snap similarity index 100% rename from packages/kbn-handlebars/__snapshots__/index.test.ts.snap rename to src/platform/packages/private/kbn-handlebars/__snapshots__/index.test.ts.snap diff --git a/packages/kbn-handlebars/index.test.ts b/src/platform/packages/private/kbn-handlebars/index.test.ts similarity index 99% rename from packages/kbn-handlebars/index.test.ts rename to src/platform/packages/private/kbn-handlebars/index.test.ts index 573834c953ffa..beb3ac2a3acef 100644 --- a/packages/kbn-handlebars/index.test.ts +++ b/src/platform/packages/private/kbn-handlebars/index.test.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ /** diff --git a/packages/kbn-handlebars/index.ts b/src/platform/packages/private/kbn-handlebars/index.ts similarity index 92% rename from packages/kbn-handlebars/index.ts rename to src/platform/packages/private/kbn-handlebars/index.ts index 4e56d27fb438a..09cbe032bd1d3 100644 --- a/packages/kbn-handlebars/index.ts +++ b/src/platform/packages/private/kbn-handlebars/index.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import { Handlebars } from './src/handlebars'; diff --git a/src/platform/packages/private/kbn-handlebars/jest.config.js b/src/platform/packages/private/kbn-handlebars/jest.config.js new file mode 100644 index 0000000000000..03c9cb225450b --- /dev/null +++ b/src/platform/packages/private/kbn-handlebars/jest.config.js @@ -0,0 +1,10 @@ +/* + * Elasticsearch B.V licenses this file to you under the MIT License. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. + */ + +module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/src/platform/packages/private/kbn-handlebars'], +}; diff --git a/packages/kbn-handlebars/kibana.jsonc b/src/platform/packages/private/kbn-handlebars/kibana.jsonc similarity index 100% rename from packages/kbn-handlebars/kibana.jsonc rename to src/platform/packages/private/kbn-handlebars/kibana.jsonc diff --git a/packages/kbn-handlebars/package.json b/src/platform/packages/private/kbn-handlebars/package.json similarity index 100% rename from packages/kbn-handlebars/package.json rename to src/platform/packages/private/kbn-handlebars/package.json diff --git a/packages/kbn-handlebars/scripts/check_for_upstream_updates.sh b/src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh similarity index 81% rename from packages/kbn-handlebars/scripts/check_for_upstream_updates.sh rename to src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh index 7f2bf784f863e..cc0069f614986 100755 --- a/packages/kbn-handlebars/scripts/check_for_upstream_updates.sh +++ b/src/platform/packages/private/kbn-handlebars/scripts/check_for_upstream_updates.sh @@ -3,7 +3,7 @@ set -e TMP=.tmp-handlebars -HASH_FILE=packages/kbn-handlebars/src/spec/.upstream_git_hash +HASH_FILE=src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash function cleanup { rm -fr $TMP @@ -32,14 +32,14 @@ else echo " 1. Investigate the commits in the '4.x' branch of the upstream git repository." echo " If files inside the 'spec' folder has been updated, sync those updates with" echo " our local versions of these files (located in" - echo " 'packages/kbn-handlebars/src/spec')." + echo " 'src/platform/packages/private/kbn-handlebars/src/spec')." echo echo " https://github.com/handlebars-lang/handlebars.js/compare/$expected_hash...4.x" echo echo " 2. Execute the following script and commit the updated '$HASH_FILE'" echo " file including any changes you made to our own spec files." echo - echo " ./packages/kbn-handlebars/scripts/update_upstream_git_hash.sh" + echo " ./src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh" echo exit 1 fi diff --git a/packages/kbn-handlebars/scripts/print_ast.js b/src/platform/packages/private/kbn-handlebars/scripts/print_ast.js similarity index 95% rename from packages/kbn-handlebars/scripts/print_ast.js rename to src/platform/packages/private/kbn-handlebars/scripts/print_ast.js index b97fb5a6cbf91..f2dd0fe4f4019 100755 --- a/packages/kbn-handlebars/scripts/print_ast.js +++ b/src/platform/packages/private/kbn-handlebars/scripts/print_ast.js @@ -1,7 +1,7 @@ #!/usr/bin/env node /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ 'use strict'; // eslint-disable-line strict diff --git a/packages/kbn-handlebars/scripts/update_upstream_git_hash.sh b/src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh similarity index 83% rename from packages/kbn-handlebars/scripts/update_upstream_git_hash.sh rename to src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh index 52cc39e0d7bb3..fe6d1c5b4ec0f 100755 --- a/packages/kbn-handlebars/scripts/update_upstream_git_hash.sh +++ b/src/platform/packages/private/kbn-handlebars/scripts/update_upstream_git_hash.sh @@ -3,7 +3,7 @@ set -e TMP=.tmp-handlebars -HASH_FILE=packages/kbn-handlebars/src/spec/.upstream_git_hash +HASH_FILE=src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash function cleanup { rm -fr $TMP diff --git a/packages/kbn-handlebars/src/__jest__/test_bench.ts b/src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts similarity index 98% rename from packages/kbn-handlebars/src/__jest__/test_bench.ts rename to src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts index d17f7f128db2b..25ff1a46d15a5 100644 --- a/packages/kbn-handlebars/src/__jest__/test_bench.ts +++ b/src/platform/packages/private/kbn-handlebars/src/__jest__/test_bench.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { diff --git a/packages/kbn-handlebars/src/handlebars.ts b/src/platform/packages/private/kbn-handlebars/src/handlebars.ts similarity index 95% rename from packages/kbn-handlebars/src/handlebars.ts rename to src/platform/packages/private/kbn-handlebars/src/handlebars.ts index 388b331365438..7dd491a2374b6 100644 --- a/packages/kbn-handlebars/src/handlebars.ts +++ b/src/platform/packages/private/kbn-handlebars/src/handlebars.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ // The handlebars module uses `export =`, so we should technically use `import Handlebars = require('handlebars')`, but Babel will not allow this: diff --git a/packages/kbn-handlebars/src/spec/.upstream_git_hash b/src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash similarity index 100% rename from packages/kbn-handlebars/src/spec/.upstream_git_hash rename to src/platform/packages/private/kbn-handlebars/src/spec/.upstream_git_hash diff --git a/packages/kbn-handlebars/src/spec/index.basic.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.basic.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts index 6acf3ae9856b3..393c45cad7798 100644 --- a/packages/kbn-handlebars/src/spec/index.basic.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.basic.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.blocks.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.blocks.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts index 2d9a87078e342..a10bc097b3a35 100644 --- a/packages/kbn-handlebars/src/spec/index.blocks.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.blocks.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { type HelperOptions } from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.builtins.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.builtins.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts index c47ec29fff0f9..99ce5c158fc6b 100644 --- a/packages/kbn-handlebars/src/spec/index.builtins.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.builtins.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ /* eslint-disable max-classes-per-file */ diff --git a/packages/kbn-handlebars/src/spec/index.compiler.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts similarity index 97% rename from packages/kbn-handlebars/src/spec/index.compiler.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts index ef5c55f218e6d..4a41e52cd7e4e 100644 --- a/packages/kbn-handlebars/src/spec/index.compiler.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.compiler.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.data.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.data.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts index 94d3b51c008aa..786c06371d1ca 100644 --- a/packages/kbn-handlebars/src/spec/index.data.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.data.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { type HelperOptions } from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.helpers.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.helpers.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts index 4cfa39bbb94a9..96360d37b7579 100644 --- a/packages/kbn-handlebars/src/spec/index.helpers.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.helpers.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { type HelperOptions } from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.partials.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts similarity index 99% rename from packages/kbn-handlebars/src/spec/index.partials.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts index 65930d06c63f7..4c59d5a1ba768 100644 --- a/packages/kbn-handlebars/src/spec/index.partials.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.partials.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.regressions.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts similarity index 98% rename from packages/kbn-handlebars/src/spec/index.regressions.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts index 5ff37a3dd9849..82e4d9d9fa862 100644 --- a/packages/kbn-handlebars/src/spec/index.regressions.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.regressions.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { type HelperOptions } from '../..'; @@ -273,8 +273,8 @@ describe('Regressions', () => { it('GH-1135 : Context handling within each iteration', () => { expectTemplate( '{{#each array}}\n' + - ' 1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../name}}{{/if}}\n' + - ' 2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../name}}{{/myif}}\n' + + ' 1. IF: {{#if true}}{{../name}}-{{../../name}}-{{../../../../../../name}}{{/if}}\n' + + ' 2. MYIF: {{#myif true}}{{../name}}={{../../name}}={{../../../../../../name}}{{/myif}}\n' + '{{/each}}' ) .withInput({ array: [1], name: 'John' }) diff --git a/packages/kbn-handlebars/src/spec/index.security.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts similarity index 98% rename from packages/kbn-handlebars/src/spec/index.security.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts index 878a0931f0da5..d7cb39543c5a9 100644 --- a/packages/kbn-handlebars/src/spec/index.security.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.security.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.strict.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts similarity index 98% rename from packages/kbn-handlebars/src/spec/index.strict.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts index a8f294b928fc9..f26a0a65e8e61 100644 --- a/packages/kbn-handlebars/src/spec/index.strict.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.strict.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import { expectTemplate } from '../__jest__/test_bench'; diff --git a/packages/kbn-handlebars/src/spec/index.subexpressions.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts similarity index 98% rename from packages/kbn-handlebars/src/spec/index.subexpressions.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts index 4dee24b78f713..df30fea639a5a 100644 --- a/packages/kbn-handlebars/src/spec/index.subexpressions.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.subexpressions.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars, { type HelperOptions } from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.utils.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts similarity index 91% rename from packages/kbn-handlebars/src/spec/index.utils.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts index 6350bc7c2f018..91b1e7387a054 100644 --- a/packages/kbn-handlebars/src/spec/index.utils.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.utils.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from '../..'; diff --git a/packages/kbn-handlebars/src/spec/index.whitespace_control.test.ts b/src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts similarity index 98% rename from packages/kbn-handlebars/src/spec/index.whitespace_control.test.ts rename to src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts index 1f7cf019c3513..7d72fa74bf264 100644 --- a/packages/kbn-handlebars/src/spec/index.whitespace_control.test.ts +++ b/src/platform/packages/private/kbn-handlebars/src/spec/index.whitespace_control.test.ts @@ -2,7 +2,7 @@ * This file is forked from the handlebars project (https://github.com/handlebars-lang/handlebars.js), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import { expectTemplate } from '../__jest__/test_bench'; diff --git a/packages/kbn-handlebars/src/symbols.ts b/src/platform/packages/private/kbn-handlebars/src/symbols.ts similarity index 71% rename from packages/kbn-handlebars/src/symbols.ts rename to src/platform/packages/private/kbn-handlebars/src/symbols.ts index 85a8f2f311ab0..bcf5554d3e540 100644 --- a/packages/kbn-handlebars/src/symbols.ts +++ b/src/platform/packages/private/kbn-handlebars/src/symbols.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ export const kHelper = Symbol('helper'); diff --git a/packages/kbn-handlebars/src/types.ts b/src/platform/packages/private/kbn-handlebars/src/types.ts similarity index 99% rename from packages/kbn-handlebars/src/types.ts rename to src/platform/packages/private/kbn-handlebars/src/types.ts index 583170cbe6816..5b8f199f98cdd 100644 --- a/packages/kbn-handlebars/src/types.ts +++ b/src/platform/packages/private/kbn-handlebars/src/types.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import { kHelper, kAmbiguous, kSimple } from './symbols'; diff --git a/packages/kbn-handlebars/src/utils.ts b/src/platform/packages/private/kbn-handlebars/src/utils.ts similarity index 96% rename from packages/kbn-handlebars/src/utils.ts rename to src/platform/packages/private/kbn-handlebars/src/utils.ts index d33bafcd0ef5e..90dfbf65e66a1 100644 --- a/packages/kbn-handlebars/src/utils.ts +++ b/src/platform/packages/private/kbn-handlebars/src/utils.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ // @ts-expect-error: Could not find a declaration file for module diff --git a/packages/kbn-handlebars/src/visitor.ts b/src/platform/packages/private/kbn-handlebars/src/visitor.ts similarity index 99% rename from packages/kbn-handlebars/src/visitor.ts rename to src/platform/packages/private/kbn-handlebars/src/visitor.ts index 2195820bf46de..de2a5951d7629 100644 --- a/packages/kbn-handlebars/src/visitor.ts +++ b/src/platform/packages/private/kbn-handlebars/src/visitor.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-handlebars/LICENSE` for more information. + * See `src/platform/packages/private/kbn-handlebars/LICENSE` for more information. */ import Handlebars from 'handlebars'; diff --git a/packages/kbn-handlebars/tsconfig.json b/src/platform/packages/private/kbn-handlebars/tsconfig.json similarity index 78% rename from packages/kbn-handlebars/tsconfig.json rename to src/platform/packages/private/kbn-handlebars/tsconfig.json index 9bd4f35cf62a7..131ff3e6bb433 100644 --- a/packages/kbn-handlebars/tsconfig.json +++ b/src/platform/packages/private/kbn-handlebars/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel index 25ee062d4c18d..612f7974f89f1 100644 --- a/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel +++ b/src/platform/packages/private/kbn-ui-shared-deps-src/BUILD.bazel @@ -33,7 +33,7 @@ webpack_cli( "//src/platform/packages/shared/kbn-es-query", "//src/platform/packages/shared/kbn-search-errors", "//src/platform/packages/shared/kbn-std", - "//packages/kbn-safer-lodash-set", + "//src/platform/packages/shared/kbn-safer-lodash-set", "//packages/kbn-peggy", "//packages/kbn-peggy-loader", "//packages/shared-ux/error_boundary", diff --git a/packages/kbn-crypto/README.md b/src/platform/packages/shared/kbn-crypto/README.md similarity index 100% rename from packages/kbn-crypto/README.md rename to src/platform/packages/shared/kbn-crypto/README.md diff --git a/packages/kbn-crypto/index.ts b/src/platform/packages/shared/kbn-crypto/index.ts similarity index 100% rename from packages/kbn-crypto/index.ts rename to src/platform/packages/shared/kbn-crypto/index.ts diff --git a/packages/kbn-crypto/jest.config.js b/src/platform/packages/shared/kbn-crypto/jest.config.js similarity index 84% rename from packages/kbn-crypto/jest.config.js rename to src/platform/packages/shared/kbn-crypto/jest.config.js index d3cb03c69a5d6..eccb1aa3faf3e 100644 --- a/packages/kbn-crypto/jest.config.js +++ b/src/platform/packages/shared/kbn-crypto/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-crypto'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-crypto'], }; diff --git a/packages/kbn-crypto/kibana.jsonc b/src/platform/packages/shared/kbn-crypto/kibana.jsonc similarity index 100% rename from packages/kbn-crypto/kibana.jsonc rename to src/platform/packages/shared/kbn-crypto/kibana.jsonc diff --git a/packages/kbn-crypto/package.json b/src/platform/packages/shared/kbn-crypto/package.json similarity index 100% rename from packages/kbn-crypto/package.json rename to src/platform/packages/shared/kbn-crypto/package.json diff --git a/packages/kbn-crypto/src/__fixtures__/README.md b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/README.md similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/README.md rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/README.md diff --git a/packages/kbn-crypto/src/__fixtures__/index.ts b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/index.ts similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/index.ts rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/index.ts diff --git a/packages/kbn-crypto/src/__fixtures__/no_ca.p12 b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_ca.p12 similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/no_ca.p12 rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_ca.p12 diff --git a/packages/kbn-crypto/src/__fixtures__/no_cert.p12 b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_cert.p12 similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/no_cert.p12 rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_cert.p12 diff --git a/packages/kbn-crypto/src/__fixtures__/no_key.p12 b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_key.p12 similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/no_key.p12 rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/no_key.p12 diff --git a/packages/kbn-crypto/src/__fixtures__/two_cas.p12 b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/two_cas.p12 similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/two_cas.p12 rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/two_cas.p12 diff --git a/packages/kbn-crypto/src/__fixtures__/two_keys.p12 b/src/platform/packages/shared/kbn-crypto/src/__fixtures__/two_keys.p12 similarity index 100% rename from packages/kbn-crypto/src/__fixtures__/two_keys.p12 rename to src/platform/packages/shared/kbn-crypto/src/__fixtures__/two_keys.p12 diff --git a/packages/kbn-crypto/src/pkcs12.test.ts b/src/platform/packages/shared/kbn-crypto/src/pkcs12.test.ts similarity index 100% rename from packages/kbn-crypto/src/pkcs12.test.ts rename to src/platform/packages/shared/kbn-crypto/src/pkcs12.test.ts diff --git a/packages/kbn-crypto/src/pkcs12.ts b/src/platform/packages/shared/kbn-crypto/src/pkcs12.ts similarity index 100% rename from packages/kbn-crypto/src/pkcs12.ts rename to src/platform/packages/shared/kbn-crypto/src/pkcs12.ts diff --git a/packages/kbn-crypto/src/sha256.test.ts b/src/platform/packages/shared/kbn-crypto/src/sha256.test.ts similarity index 100% rename from packages/kbn-crypto/src/sha256.test.ts rename to src/platform/packages/shared/kbn-crypto/src/sha256.test.ts diff --git a/packages/kbn-crypto/src/sha256.ts b/src/platform/packages/shared/kbn-crypto/src/sha256.ts similarity index 100% rename from packages/kbn-crypto/src/sha256.ts rename to src/platform/packages/shared/kbn-crypto/src/sha256.ts diff --git a/packages/kbn-crypto/tsconfig.json b/src/platform/packages/shared/kbn-crypto/tsconfig.json similarity index 81% rename from packages/kbn-crypto/tsconfig.json rename to src/platform/packages/shared/kbn-crypto/tsconfig.json index 9fbc68fcba64f..1fea1e6bc9f8e 100644 --- a/packages/kbn-crypto/tsconfig.json +++ b/src/platform/packages/shared/kbn-crypto/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-safer-lodash-set/.gitignore b/src/platform/packages/shared/kbn-safer-lodash-set/.gitignore similarity index 100% rename from packages/kbn-safer-lodash-set/.gitignore rename to src/platform/packages/shared/kbn-safer-lodash-set/.gitignore diff --git a/packages/kbn-safer-lodash-set/.npmignore b/src/platform/packages/shared/kbn-safer-lodash-set/.npmignore similarity index 100% rename from packages/kbn-safer-lodash-set/.npmignore rename to src/platform/packages/shared/kbn-safer-lodash-set/.npmignore diff --git a/packages/kbn-safer-lodash-set/BUILD.bazel b/src/platform/packages/shared/kbn-safer-lodash-set/BUILD.bazel similarity index 100% rename from packages/kbn-safer-lodash-set/BUILD.bazel rename to src/platform/packages/shared/kbn-safer-lodash-set/BUILD.bazel diff --git a/packages/kbn-safer-lodash-set/LICENSE b/src/platform/packages/shared/kbn-safer-lodash-set/LICENSE similarity index 100% rename from packages/kbn-safer-lodash-set/LICENSE rename to src/platform/packages/shared/kbn-safer-lodash-set/LICENSE diff --git a/packages/kbn-safer-lodash-set/README.md b/src/platform/packages/shared/kbn-safer-lodash-set/README.md similarity index 100% rename from packages/kbn-safer-lodash-set/README.md rename to src/platform/packages/shared/kbn-safer-lodash-set/README.md diff --git a/packages/kbn-safer-lodash-set/fp/assoc.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts similarity index 76% rename from packages/kbn-safer-lodash-set/fp/assoc.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts index 45e5800a3a33b..180e907b6229c 100644 --- a/packages/kbn-safer-lodash-set/fp/assoc.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { assoc } from '.'; diff --git a/packages/kbn-safer-lodash-set/fp/assoc.js b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js similarity index 73% rename from packages/kbn-safer-lodash-set/fp/assoc.js rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js index d6ea0c9c74b77..b7b6315a5cb64 100644 --- a/packages/kbn-safer-lodash-set/fp/assoc.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assoc.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ module.exports = require('./set'); diff --git a/packages/kbn-safer-lodash-set/fp/assocPath.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts similarity index 77% rename from packages/kbn-safer-lodash-set/fp/assocPath.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts index 334c21ca7e707..d04e20c18f026 100644 --- a/packages/kbn-safer-lodash-set/fp/assocPath.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { assocPath } from '.'; diff --git a/packages/kbn-safer-lodash-set/fp/assocPath.js b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js similarity index 73% rename from packages/kbn-safer-lodash-set/fp/assocPath.js rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js index d6ea0c9c74b77..b7b6315a5cb64 100644 --- a/packages/kbn-safer-lodash-set/fp/assocPath.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/assocPath.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ module.exports = require('./set'); diff --git a/packages/kbn-safer-lodash-set/fp/index.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts similarity index 99% rename from packages/kbn-safer-lodash-set/fp/index.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts index 777c7c0df980a..ba0034b55d4a5 100644 --- a/packages/kbn-safer-lodash-set/fp/index.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/index.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import lodash = require('lodash'); diff --git a/packages/kbn-safer-lodash-set/fp/index.js b/src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js similarity index 78% rename from packages/kbn-safer-lodash-set/fp/index.js rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js index aea3e4600d7c6..487bb5fc1d049 100644 --- a/packages/kbn-safer-lodash-set/fp/index.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/index.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ exports.set = exports.assoc = exports.assocPath = require('./set'); diff --git a/packages/kbn-safer-lodash-set/set.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts similarity index 76% rename from packages/kbn-safer-lodash-set/set.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts index 3e5730bb1ec42..a9e67fb3adef4 100644 --- a/packages/kbn-safer-lodash-set/set.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/set.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { set } from '.'; diff --git a/packages/kbn-safer-lodash-set/fp/set.js b/src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js similarity index 81% rename from packages/kbn-safer-lodash-set/fp/set.js rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js index 3a54fcacec959..ffd099741b406 100644 --- a/packages/kbn-safer-lodash-set/fp/set.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/set.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ /*eslint no-var:0 */ diff --git a/packages/kbn-safer-lodash-set/fp/setWith.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts similarity index 76% rename from packages/kbn-safer-lodash-set/fp/setWith.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts index 20eadd898fa52..38af695398268 100644 --- a/packages/kbn-safer-lodash-set/fp/setWith.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { setWith } from '.'; diff --git a/packages/kbn-safer-lodash-set/fp/setWith.js b/src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js similarity index 81% rename from packages/kbn-safer-lodash-set/fp/setWith.js rename to src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js index 9842e1ecf93b2..646fb9a0098af 100644 --- a/packages/kbn-safer-lodash-set/fp/setWith.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/fp/setWith.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ /*eslint no-var:0 */ diff --git a/packages/kbn-safer-lodash-set/index.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts similarity index 96% rename from packages/kbn-safer-lodash-set/index.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts index 198df549e0704..3770b85a35e20 100644 --- a/packages/kbn-safer-lodash-set/index.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/index.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ export = SaferLodashSet; diff --git a/packages/kbn-safer-lodash-set/index.js b/src/platform/packages/shared/kbn-safer-lodash-set/index.js similarity index 76% rename from packages/kbn-safer-lodash-set/index.js rename to src/platform/packages/shared/kbn-safer-lodash-set/index.js index 9ed12a77aa163..441cdcaf87d0a 100644 --- a/packages/kbn-safer-lodash-set/index.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/index.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ exports.set = require('./lodash/set'); diff --git a/packages/kbn-safer-lodash-set/kibana.jsonc b/src/platform/packages/shared/kbn-safer-lodash-set/kibana.jsonc similarity index 100% rename from packages/kbn-safer-lodash-set/kibana.jsonc rename to src/platform/packages/shared/kbn-safer-lodash-set/kibana.jsonc diff --git a/packages/kbn-safer-lodash-set/lodash/_baseSet.js b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js similarity index 95% rename from packages/kbn-safer-lodash-set/lodash/_baseSet.js rename to src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js index be037ecc344b9..7cd38c87b84e7 100644 --- a/packages/kbn-safer-lodash-set/lodash/_baseSet.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/_baseSet.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ /* eslint-disable one-var,prettier/prettier,no-var,eqeqeq,no-nested-ternary */ diff --git a/packages/kbn-safer-lodash-set/lodash/set.js b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js similarity index 93% rename from packages/kbn-safer-lodash-set/lodash/set.js rename to src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js index aacd1edf0f50f..f26601005fc47 100644 --- a/packages/kbn-safer-lodash-set/lodash/set.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/set.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ /* eslint-disable no-var */ diff --git a/packages/kbn-safer-lodash-set/lodash/setWith.js b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js similarity index 93% rename from packages/kbn-safer-lodash-set/lodash/setWith.js rename to src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js index 2bfd9dd354fde..3a3986ebde41f 100644 --- a/packages/kbn-safer-lodash-set/lodash/setWith.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/lodash/setWith.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ /* eslint-disable no-var,eqeqeq */ diff --git a/packages/kbn-safer-lodash-set/package.json b/src/platform/packages/shared/kbn-safer-lodash-set/package.json similarity index 62% rename from packages/kbn-safer-lodash-set/package.json rename to src/platform/packages/shared/kbn-safer-lodash-set/package.json index 6eb82c869f977..b21ae20df5d8b 100644 --- a/packages/kbn-safer-lodash-set/package.json +++ b/src/platform/packages/shared/kbn-safer-lodash-set/package.json @@ -3,9 +3,9 @@ "version": "1.0.0", "description": "A safer version of the lodash set and setWith functions", "scripts": { - "lint": "../../node_modules/.bin/dependency-check --missing ../../package.json ./packages/kbn-safer-lodash-set/set.js ./packages/kbn-safer-lodash-set/setWith.js ./packages/kbn-safer-lodash-set/fp/*.js", - "test": "npm run lint && ../../node_modules/.bin/tape test/*.js && npm run test:types", - "test:types": "../../node_modules/.bin/tsc --noEmit", + "lint": "../../../../../node_modules/.bin/dependency-check --missing ../../../../../package.json ./src/platform/packages/shared/kbn-safer-lodash-set/set.js ./src/platform/packages/shared/kbn-safer-lodash-set/setWith.js ./src/platform/packages/shared/kbn-safer-lodash-set/fp/*.js", + "test": "npm run lint && ../../../../../node_modules/.bin/tape test/*.js && npm run test:types", + "test:types": "../../../../../node_modules/.bin/tsc --noEmit", "update": "./scripts/update.sh", "save_state": "./scripts/save_state.sh" }, diff --git a/packages/kbn-safer-lodash-set/scripts/_get_lodash.sh b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh similarity index 79% rename from packages/kbn-safer-lodash-set/scripts/_get_lodash.sh rename to src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh index 7fd3a056cf1f9..0303e2f0d7bb6 100755 --- a/packages/kbn-safer-lodash-set/scripts/_get_lodash.sh +++ b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/_get_lodash.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Elasticsearch B.V licenses this file to you under the MIT License. -# See `packages/kbn-safer-lodash-set/LICENSE` for more information. +# See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. clean_up () { exit_code=$? diff --git a/packages/kbn-safer-lodash-set/scripts/license-header.txt b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt similarity index 70% rename from packages/kbn-safer-lodash-set/scripts/license-header.txt rename to src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt index e546841be3a2b..9d62781281e70 100644 --- a/packages/kbn-safer-lodash-set/scripts/license-header.txt +++ b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/license-header.txt @@ -2,6 +2,6 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ diff --git a/packages/kbn-safer-lodash-set/scripts/patches/_baseSet.js.patch b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/patches/_baseSet.js.patch similarity index 100% rename from packages/kbn-safer-lodash-set/scripts/patches/_baseSet.js.patch rename to src/platform/packages/shared/kbn-safer-lodash-set/scripts/patches/_baseSet.js.patch diff --git a/packages/kbn-safer-lodash-set/scripts/save_state.sh b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh similarity index 81% rename from packages/kbn-safer-lodash-set/scripts/save_state.sh rename to src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh index 72bca0288f506..fc51ac605273b 100755 --- a/packages/kbn-safer-lodash-set/scripts/save_state.sh +++ b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/save_state.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Elasticsearch B.V licenses this file to you under the MIT License. -# See `packages/kbn-safer-lodash-set/LICENSE` for more information. +# See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. set -e diff --git a/packages/kbn-safer-lodash-set/scripts/update.sh b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh similarity index 93% rename from packages/kbn-safer-lodash-set/scripts/update.sh rename to src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh index e16b03edbe13b..1b1e249cdf270 100755 --- a/packages/kbn-safer-lodash-set/scripts/update.sh +++ b/src/platform/packages/shared/kbn-safer-lodash-set/scripts/update.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash # Elasticsearch B.V licenses this file to you under the MIT License. -# See `packages/kbn-safer-lodash-set/LICENSE` for more information. +# See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. set -e diff --git a/packages/kbn-safer-lodash-set/fp/set.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts similarity index 76% rename from packages/kbn-safer-lodash-set/fp/set.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts index 3e5730bb1ec42..a9e67fb3adef4 100644 --- a/packages/kbn-safer-lodash-set/fp/set.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/set.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { set } from '.'; diff --git a/packages/kbn-safer-lodash-set/set.js b/src/platform/packages/shared/kbn-safer-lodash-set/set.js similarity index 73% rename from packages/kbn-safer-lodash-set/set.js rename to src/platform/packages/shared/kbn-safer-lodash-set/set.js index a02607a433efb..5ef93a4d82fa7 100644 --- a/packages/kbn-safer-lodash-set/set.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/set.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ module.exports = require('./lodash/set'); diff --git a/packages/kbn-safer-lodash-set/setWith.d.ts b/src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts similarity index 76% rename from packages/kbn-safer-lodash-set/setWith.d.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts index 20eadd898fa52..38af695398268 100644 --- a/packages/kbn-safer-lodash-set/setWith.d.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/setWith.d.ts @@ -2,7 +2,7 @@ * This file is forked from the DefinitelyTyped project (https://github.com/DefinitelyTyped/DefinitelyTyped), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { setWith } from '.'; diff --git a/packages/kbn-safer-lodash-set/setWith.js b/src/platform/packages/shared/kbn-safer-lodash-set/setWith.js similarity index 74% rename from packages/kbn-safer-lodash-set/setWith.js rename to src/platform/packages/shared/kbn-safer-lodash-set/setWith.js index c957b03e349e0..920bacd7af9d6 100644 --- a/packages/kbn-safer-lodash-set/setWith.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/setWith.js @@ -2,7 +2,7 @@ * This file is forked from the lodash project (https://lodash.com/), * and may include modifications made by Elasticsearch B.V. * Elasticsearch B.V. licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ module.exports = require('./lodash/setWith'); diff --git a/packages/kbn-safer-lodash-set/test/fp.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts similarity index 97% rename from packages/kbn-safer-lodash-set/test/fp.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts index 79fda77cbd148..bc80e4a858cad 100644 --- a/packages/kbn-safer-lodash-set/test/fp.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/fp_assoc.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts similarity index 91% rename from packages/kbn-safer-lodash-set/test/fp_assoc.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts index edc57bc29e8e6..9dc4679029fc8 100644 --- a/packages/kbn-safer-lodash-set/test/fp_assoc.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assoc.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/fp_assocPath.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts similarity index 91% rename from packages/kbn-safer-lodash-set/test/fp_assocPath.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts index 1dfb667fd6611..1bdba2679393e 100644 --- a/packages/kbn-safer-lodash-set/test/fp_assocPath.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_assocPath.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/fp_patch_test.js b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js similarity index 99% rename from packages/kbn-safer-lodash-set/test/fp_patch_test.js rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js index abc2ce348f5a7..a39d27b045d5a 100644 --- a/packages/kbn-safer-lodash-set/test/fp_patch_test.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_patch_test.js @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ const test = require('tape'); diff --git a/packages/kbn-safer-lodash-set/test/fp_set.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts similarity index 91% rename from packages/kbn-safer-lodash-set/test/fp_set.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts index b530314b561d9..700936387016d 100644 --- a/packages/kbn-safer-lodash-set/test/fp_set.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_set.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/fp_setWith.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts similarity index 95% rename from packages/kbn-safer-lodash-set/test/fp_setWith.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts index c86c9267e07ec..b94aa991a17fd 100644 --- a/packages/kbn-safer-lodash-set/test/fp_setWith.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/fp_setWith.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/index.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts similarity index 91% rename from packages/kbn-safer-lodash-set/test/index.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts index cbaefb250598c..03bd8680b91d4 100644 --- a/packages/kbn-safer-lodash-set/test/index.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/index.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/patch_test.js b/src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js similarity index 98% rename from packages/kbn-safer-lodash-set/test/patch_test.js rename to src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js index cbd2f879dd609..5a0f9943a02c9 100644 --- a/packages/kbn-safer-lodash-set/test/patch_test.js +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/patch_test.js @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ const test = require('tape'); diff --git a/packages/kbn-safer-lodash-set/test/set.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts similarity index 81% rename from packages/kbn-safer-lodash-set/test/set.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts index b07bc407d6a8c..b2b5c542a0387 100644 --- a/packages/kbn-safer-lodash-set/test/set.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/set.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/test/setWith.ts b/src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts similarity index 89% rename from packages/kbn-safer-lodash-set/test/setWith.ts rename to src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts index c61aa2d8ec2b1..dfa60d0d8c1a5 100644 --- a/packages/kbn-safer-lodash-set/test/setWith.ts +++ b/src/platform/packages/shared/kbn-safer-lodash-set/test/setWith.ts @@ -1,6 +1,6 @@ /* * Elasticsearch B.V licenses this file to you under the MIT License. - * See `packages/kbn-safer-lodash-set/LICENSE` for more information. + * See `src/platform/packages/shared/kbn-safer-lodash-set/LICENSE` for more information. */ import { expectType } from 'tsd'; diff --git a/packages/kbn-safer-lodash-set/tsconfig.json b/src/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json similarity index 72% rename from packages/kbn-safer-lodash-set/tsconfig.json rename to src/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json index 0d3736eeafd07..dd8c6e34a29bf 100644 --- a/packages/kbn-safer-lodash-set/tsconfig.json +++ b/src/platform/packages/shared/kbn-safer-lodash-set/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/packages/kbn-security-hardening/README.md b/src/platform/packages/shared/kbn-security-hardening/README.md similarity index 100% rename from packages/kbn-security-hardening/README.md rename to src/platform/packages/shared/kbn-security-hardening/README.md diff --git a/packages/kbn-security-hardening/console.ts b/src/platform/packages/shared/kbn-security-hardening/console.ts similarity index 100% rename from packages/kbn-security-hardening/console.ts rename to src/platform/packages/shared/kbn-security-hardening/console.ts diff --git a/packages/kbn-security-hardening/index.ts b/src/platform/packages/shared/kbn-security-hardening/index.ts similarity index 100% rename from packages/kbn-security-hardening/index.ts rename to src/platform/packages/shared/kbn-security-hardening/index.ts diff --git a/packages/kbn-security-hardening/kibana.jsonc b/src/platform/packages/shared/kbn-security-hardening/kibana.jsonc similarity index 100% rename from packages/kbn-security-hardening/kibana.jsonc rename to src/platform/packages/shared/kbn-security-hardening/kibana.jsonc diff --git a/packages/kbn-security-hardening/package.json b/src/platform/packages/shared/kbn-security-hardening/package.json similarity index 100% rename from packages/kbn-security-hardening/package.json rename to src/platform/packages/shared/kbn-security-hardening/package.json diff --git a/packages/kbn-security-hardening/tsconfig.json b/src/platform/packages/shared/kbn-security-hardening/tsconfig.json similarity index 79% rename from packages/kbn-security-hardening/tsconfig.json rename to src/platform/packages/shared/kbn-security-hardening/tsconfig.json index 33dcb5e36274e..d0e7f26cb6cee 100644 --- a/packages/kbn-security-hardening/tsconfig.json +++ b/src/platform/packages/shared/kbn-security-hardening/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/packages/kbn-user-profile-components/index.ts b/src/platform/packages/shared/kbn-user-profile-components/index.ts similarity index 100% rename from packages/kbn-user-profile-components/index.ts rename to src/platform/packages/shared/kbn-user-profile-components/index.ts diff --git a/packages/kbn-user-profile-components/jest.config.js b/src/platform/packages/shared/kbn-user-profile-components/jest.config.js similarity index 82% rename from packages/kbn-user-profile-components/jest.config.js rename to src/platform/packages/shared/kbn-user-profile-components/jest.config.js index 87b69a6a9ba49..5bcc5f4e94409 100644 --- a/packages/kbn-user-profile-components/jest.config.js +++ b/src/platform/packages/shared/kbn-user-profile-components/jest.config.js @@ -9,6 +9,6 @@ module.exports = { preset: '@kbn/test', - rootDir: '../..', - roots: ['/packages/kbn-user-profile-components'], + rootDir: '../../../../..', + roots: ['/src/platform/packages/shared/kbn-user-profile-components'], }; diff --git a/packages/kbn-user-profile-components/kibana.jsonc b/src/platform/packages/shared/kbn-user-profile-components/kibana.jsonc similarity index 100% rename from packages/kbn-user-profile-components/kibana.jsonc rename to src/platform/packages/shared/kbn-user-profile-components/kibana.jsonc diff --git a/packages/kbn-user-profile-components/package.json b/src/platform/packages/shared/kbn-user-profile-components/package.json similarity index 100% rename from packages/kbn-user-profile-components/package.json rename to src/platform/packages/shared/kbn-user-profile-components/package.json diff --git a/packages/kbn-user-profile-components/src/hooks/index.ts b/src/platform/packages/shared/kbn-user-profile-components/src/hooks/index.ts similarity index 100% rename from packages/kbn-user-profile-components/src/hooks/index.ts rename to src/platform/packages/shared/kbn-user-profile-components/src/hooks/index.ts diff --git a/packages/kbn-user-profile-components/src/hooks/use_update_user_profile.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/hooks/use_update_user_profile.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/hooks/use_update_user_profile.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/hooks/use_update_user_profile.test.tsx diff --git a/packages/kbn-user-profile-components/src/hooks/use_update_user_profile.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/hooks/use_update_user_profile.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/hooks/use_update_user_profile.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/hooks/use_update_user_profile.tsx diff --git a/packages/kbn-user-profile-components/src/services.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/services.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/services.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/services.tsx diff --git a/packages/kbn-user-profile-components/src/types.ts b/src/platform/packages/shared/kbn-user-profile-components/src/types.ts similarity index 100% rename from packages/kbn-user-profile-components/src/types.ts rename to src/platform/packages/shared/kbn-user-profile-components/src/types.ts diff --git a/packages/kbn-user-profile-components/src/user_avatar.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_avatar.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_avatar.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_avatar.test.tsx diff --git a/packages/kbn-user-profile-components/src/user_avatar.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_avatar.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_avatar.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_avatar.tsx diff --git a/packages/kbn-user-profile-components/src/user_avatar_tip.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_avatar_tip.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_avatar_tip.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_avatar_tip.test.tsx diff --git a/packages/kbn-user-profile-components/src/user_avatar_tip.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_avatar_tip.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_avatar_tip.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_avatar_tip.tsx diff --git a/packages/kbn-user-profile-components/src/user_profile.ts b/src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts similarity index 98% rename from packages/kbn-user-profile-components/src/user_profile.ts rename to src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts index 7c029f606fa7f..eb71c397d8cb4 100644 --- a/packages/kbn-user-profile-components/src/user_profile.ts +++ b/src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts @@ -15,7 +15,7 @@ import type { UserProfileAvatarData, UserProfileData } from './types'; * IMPORTANT: * * The types in this file have been imported from - * `x-pack/plugins/security/common/model/user_profile.ts` + * `x-pack/platform/plugins/shared/security/common/model/user_profile.ts` * * When making changes please ensure to keep both files in sync. */ diff --git a/packages/kbn-user-profile-components/src/user_profiles_popover.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_popover.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_profiles_popover.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_popover.test.tsx diff --git a/packages/kbn-user-profile-components/src/user_profiles_popover.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_popover.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_profiles_popover.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_popover.tsx diff --git a/packages/kbn-user-profile-components/src/user_profiles_selectable.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_selectable.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_profiles_selectable.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_selectable.test.tsx diff --git a/packages/kbn-user-profile-components/src/user_profiles_selectable.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_selectable.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_profiles_selectable.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_profiles_selectable.tsx diff --git a/packages/kbn-user-profile-components/src/user_tooltip.test.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_tooltip.test.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_tooltip.test.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_tooltip.test.tsx diff --git a/packages/kbn-user-profile-components/src/user_tooltip.tsx b/src/platform/packages/shared/kbn-user-profile-components/src/user_tooltip.tsx similarity index 100% rename from packages/kbn-user-profile-components/src/user_tooltip.tsx rename to src/platform/packages/shared/kbn-user-profile-components/src/user_tooltip.tsx diff --git a/packages/kbn-user-profile-components/tsconfig.json b/src/platform/packages/shared/kbn-user-profile-components/tsconfig.json similarity index 91% rename from packages/kbn-user-profile-components/tsconfig.json rename to src/platform/packages/shared/kbn-user-profile-components/tsconfig.json index 0eb8ff58a458e..80e9e74fb8203 100644 --- a/packages/kbn-user-profile-components/tsconfig.json +++ b/src/platform/packages/shared/kbn-user-profile-components/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/src/plugins/interactive_setup/README.md b/src/platform/plugins/private/interactive_setup/README.md similarity index 100% rename from src/plugins/interactive_setup/README.md rename to src/platform/plugins/private/interactive_setup/README.md diff --git a/src/plugins/interactive_setup/common/constants.ts b/src/platform/plugins/private/interactive_setup/common/constants.ts similarity index 100% rename from src/plugins/interactive_setup/common/constants.ts rename to src/platform/plugins/private/interactive_setup/common/constants.ts diff --git a/src/plugins/interactive_setup/common/elasticsearch_connection_status.ts b/src/platform/plugins/private/interactive_setup/common/elasticsearch_connection_status.ts similarity index 100% rename from src/plugins/interactive_setup/common/elasticsearch_connection_status.ts rename to src/platform/plugins/private/interactive_setup/common/elasticsearch_connection_status.ts diff --git a/src/plugins/interactive_setup/common/index.ts b/src/platform/plugins/private/interactive_setup/common/index.ts similarity index 100% rename from src/plugins/interactive_setup/common/index.ts rename to src/platform/plugins/private/interactive_setup/common/index.ts diff --git a/src/plugins/interactive_setup/common/types.ts b/src/platform/plugins/private/interactive_setup/common/types.ts similarity index 100% rename from src/plugins/interactive_setup/common/types.ts rename to src/platform/plugins/private/interactive_setup/common/types.ts diff --git a/src/plugins/interactive_setup/jest.config.js b/src/platform/plugins/private/interactive_setup/jest.config.js similarity index 64% rename from src/plugins/interactive_setup/jest.config.js rename to src/platform/plugins/private/interactive_setup/jest.config.js index 802b2dea4b4d6..1888f155394e0 100644 --- a/src/plugins/interactive_setup/jest.config.js +++ b/src/platform/plugins/private/interactive_setup/jest.config.js @@ -9,11 +9,12 @@ module.exports = { preset: '@kbn/test', - rootDir: '../../..', - roots: ['/src/plugins/interactive_setup'], - coverageDirectory: '/target/kibana-coverage/jest/src/plugins/interactive_setup', + rootDir: '../../../../..', + roots: ['/src/platform/plugins/private/interactive_setup'], + coverageDirectory: + '/target/kibana-coverage/jest/src/platform/plugins/private/interactive_setup', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/src/plugins/interactive_setup/{common,public,server}/**/*.{ts,tsx}', + '/src/platform/plugins/private/interactive_setup/{common,public,server}/**/*.{ts,tsx}', ], }; diff --git a/src/plugins/interactive_setup/kibana.jsonc b/src/platform/plugins/private/interactive_setup/kibana.jsonc similarity index 100% rename from src/plugins/interactive_setup/kibana.jsonc rename to src/platform/plugins/private/interactive_setup/kibana.jsonc diff --git a/src/plugins/interactive_setup/public/app.scss b/src/platform/plugins/private/interactive_setup/public/app.scss similarity index 100% rename from src/plugins/interactive_setup/public/app.scss rename to src/platform/plugins/private/interactive_setup/public/app.scss diff --git a/src/plugins/interactive_setup/public/app.tsx b/src/platform/plugins/private/interactive_setup/public/app.tsx similarity index 100% rename from src/plugins/interactive_setup/public/app.tsx rename to src/platform/plugins/private/interactive_setup/public/app.tsx diff --git a/src/plugins/interactive_setup/public/cluster_address_form.test.tsx b/src/platform/plugins/private/interactive_setup/public/cluster_address_form.test.tsx similarity index 100% rename from src/plugins/interactive_setup/public/cluster_address_form.test.tsx rename to src/platform/plugins/private/interactive_setup/public/cluster_address_form.test.tsx diff --git a/src/plugins/interactive_setup/public/cluster_address_form.tsx b/src/platform/plugins/private/interactive_setup/public/cluster_address_form.tsx similarity index 100% rename from src/plugins/interactive_setup/public/cluster_address_form.tsx rename to src/platform/plugins/private/interactive_setup/public/cluster_address_form.tsx diff --git a/src/plugins/interactive_setup/public/cluster_configuration_form.test.tsx b/src/platform/plugins/private/interactive_setup/public/cluster_configuration_form.test.tsx similarity index 100% rename from src/plugins/interactive_setup/public/cluster_configuration_form.test.tsx rename to src/platform/plugins/private/interactive_setup/public/cluster_configuration_form.test.tsx diff --git a/src/plugins/interactive_setup/public/cluster_configuration_form.tsx b/src/platform/plugins/private/interactive_setup/public/cluster_configuration_form.tsx similarity index 100% rename from src/plugins/interactive_setup/public/cluster_configuration_form.tsx rename to src/platform/plugins/private/interactive_setup/public/cluster_configuration_form.tsx diff --git a/src/plugins/interactive_setup/public/doc_link.tsx b/src/platform/plugins/private/interactive_setup/public/doc_link.tsx similarity index 100% rename from src/plugins/interactive_setup/public/doc_link.tsx rename to src/platform/plugins/private/interactive_setup/public/doc_link.tsx diff --git a/src/plugins/interactive_setup/public/enrollment_token_form.test.tsx b/src/platform/plugins/private/interactive_setup/public/enrollment_token_form.test.tsx similarity index 100% rename from src/plugins/interactive_setup/public/enrollment_token_form.test.tsx rename to src/platform/plugins/private/interactive_setup/public/enrollment_token_form.test.tsx diff --git a/src/plugins/interactive_setup/public/enrollment_token_form.tsx b/src/platform/plugins/private/interactive_setup/public/enrollment_token_form.tsx similarity index 100% rename from src/plugins/interactive_setup/public/enrollment_token_form.tsx rename to src/platform/plugins/private/interactive_setup/public/enrollment_token_form.tsx diff --git a/src/plugins/interactive_setup/public/get_command_line_snippet.test.ts b/src/platform/plugins/private/interactive_setup/public/get_command_line_snippet.test.ts similarity index 100% rename from src/plugins/interactive_setup/public/get_command_line_snippet.test.ts rename to src/platform/plugins/private/interactive_setup/public/get_command_line_snippet.test.ts diff --git a/src/plugins/interactive_setup/public/get_command_line_snippet.ts b/src/platform/plugins/private/interactive_setup/public/get_command_line_snippet.ts similarity index 100% rename from src/plugins/interactive_setup/public/get_command_line_snippet.ts rename to src/platform/plugins/private/interactive_setup/public/get_command_line_snippet.ts diff --git a/src/plugins/interactive_setup/public/index.ts b/src/platform/plugins/private/interactive_setup/public/index.ts similarity index 100% rename from src/plugins/interactive_setup/public/index.ts rename to src/platform/plugins/private/interactive_setup/public/index.ts diff --git a/src/plugins/interactive_setup/public/plugin.tsx b/src/platform/plugins/private/interactive_setup/public/plugin.tsx similarity index 100% rename from src/plugins/interactive_setup/public/plugin.tsx rename to src/platform/plugins/private/interactive_setup/public/plugin.tsx diff --git a/src/plugins/interactive_setup/public/progress_indicator.tsx b/src/platform/plugins/private/interactive_setup/public/progress_indicator.tsx similarity index 100% rename from src/plugins/interactive_setup/public/progress_indicator.tsx rename to src/platform/plugins/private/interactive_setup/public/progress_indicator.tsx diff --git a/src/plugins/interactive_setup/public/single_chars_field.tsx b/src/platform/plugins/private/interactive_setup/public/single_chars_field.tsx similarity index 100% rename from src/plugins/interactive_setup/public/single_chars_field.tsx rename to src/platform/plugins/private/interactive_setup/public/single_chars_field.tsx diff --git a/src/plugins/interactive_setup/public/submit_error_callout.test.tsx b/src/platform/plugins/private/interactive_setup/public/submit_error_callout.test.tsx similarity index 100% rename from src/plugins/interactive_setup/public/submit_error_callout.test.tsx rename to src/platform/plugins/private/interactive_setup/public/submit_error_callout.test.tsx diff --git a/src/plugins/interactive_setup/public/submit_error_callout.tsx b/src/platform/plugins/private/interactive_setup/public/submit_error_callout.tsx similarity index 100% rename from src/plugins/interactive_setup/public/submit_error_callout.tsx rename to src/platform/plugins/private/interactive_setup/public/submit_error_callout.tsx diff --git a/src/plugins/interactive_setup/public/text_truncate.tsx b/src/platform/plugins/private/interactive_setup/public/text_truncate.tsx similarity index 100% rename from src/plugins/interactive_setup/public/text_truncate.tsx rename to src/platform/plugins/private/interactive_setup/public/text_truncate.tsx diff --git a/src/plugins/interactive_setup/public/use_form.ts b/src/platform/plugins/private/interactive_setup/public/use_form.ts similarity index 100% rename from src/plugins/interactive_setup/public/use_form.ts rename to src/platform/plugins/private/interactive_setup/public/use_form.ts diff --git a/src/plugins/interactive_setup/public/use_html_id.ts b/src/platform/plugins/private/interactive_setup/public/use_html_id.ts similarity index 100% rename from src/plugins/interactive_setup/public/use_html_id.ts rename to src/platform/plugins/private/interactive_setup/public/use_html_id.ts diff --git a/src/plugins/interactive_setup/public/use_kibana.ts b/src/platform/plugins/private/interactive_setup/public/use_kibana.ts similarity index 100% rename from src/plugins/interactive_setup/public/use_kibana.ts rename to src/platform/plugins/private/interactive_setup/public/use_kibana.ts diff --git a/src/plugins/interactive_setup/public/use_verification.tsx b/src/platform/plugins/private/interactive_setup/public/use_verification.tsx similarity index 100% rename from src/plugins/interactive_setup/public/use_verification.tsx rename to src/platform/plugins/private/interactive_setup/public/use_verification.tsx diff --git a/src/plugins/interactive_setup/public/use_visibility.ts b/src/platform/plugins/private/interactive_setup/public/use_visibility.ts similarity index 100% rename from src/plugins/interactive_setup/public/use_visibility.ts rename to src/platform/plugins/private/interactive_setup/public/use_visibility.ts diff --git a/src/plugins/interactive_setup/public/verification_code_form.test.tsx b/src/platform/plugins/private/interactive_setup/public/verification_code_form.test.tsx similarity index 100% rename from src/plugins/interactive_setup/public/verification_code_form.test.tsx rename to src/platform/plugins/private/interactive_setup/public/verification_code_form.test.tsx diff --git a/src/plugins/interactive_setup/public/verification_code_form.tsx b/src/platform/plugins/private/interactive_setup/public/verification_code_form.tsx similarity index 100% rename from src/plugins/interactive_setup/public/verification_code_form.tsx rename to src/platform/plugins/private/interactive_setup/public/verification_code_form.tsx diff --git a/src/plugins/interactive_setup/server/compatibility_error.ts b/src/platform/plugins/private/interactive_setup/server/compatibility_error.ts similarity index 100% rename from src/plugins/interactive_setup/server/compatibility_error.ts rename to src/platform/plugins/private/interactive_setup/server/compatibility_error.ts diff --git a/src/plugins/interactive_setup/server/config.test.ts b/src/platform/plugins/private/interactive_setup/server/config.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/config.test.ts rename to src/platform/plugins/private/interactive_setup/server/config.test.ts diff --git a/src/plugins/interactive_setup/server/config.ts b/src/platform/plugins/private/interactive_setup/server/config.ts similarity index 100% rename from src/plugins/interactive_setup/server/config.ts rename to src/platform/plugins/private/interactive_setup/server/config.ts diff --git a/src/plugins/interactive_setup/server/elasticsearch_service.mock.ts b/src/platform/plugins/private/interactive_setup/server/elasticsearch_service.mock.ts similarity index 100% rename from src/plugins/interactive_setup/server/elasticsearch_service.mock.ts rename to src/platform/plugins/private/interactive_setup/server/elasticsearch_service.mock.ts diff --git a/src/plugins/interactive_setup/server/elasticsearch_service.test.ts b/src/platform/plugins/private/interactive_setup/server/elasticsearch_service.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/elasticsearch_service.test.ts rename to src/platform/plugins/private/interactive_setup/server/elasticsearch_service.test.ts diff --git a/src/plugins/interactive_setup/server/elasticsearch_service.ts b/src/platform/plugins/private/interactive_setup/server/elasticsearch_service.ts similarity index 100% rename from src/plugins/interactive_setup/server/elasticsearch_service.ts rename to src/platform/plugins/private/interactive_setup/server/elasticsearch_service.ts diff --git a/src/plugins/interactive_setup/server/errors.test.ts b/src/platform/plugins/private/interactive_setup/server/errors.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/errors.test.ts rename to src/platform/plugins/private/interactive_setup/server/errors.test.ts diff --git a/src/plugins/interactive_setup/server/errors.ts b/src/platform/plugins/private/interactive_setup/server/errors.ts similarity index 100% rename from src/plugins/interactive_setup/server/errors.ts rename to src/platform/plugins/private/interactive_setup/server/errors.ts diff --git a/src/plugins/interactive_setup/server/index.ts b/src/platform/plugins/private/interactive_setup/server/index.ts similarity index 100% rename from src/plugins/interactive_setup/server/index.ts rename to src/platform/plugins/private/interactive_setup/server/index.ts diff --git a/src/plugins/interactive_setup/server/kibana_config_writer.mock.ts b/src/platform/plugins/private/interactive_setup/server/kibana_config_writer.mock.ts similarity index 100% rename from src/plugins/interactive_setup/server/kibana_config_writer.mock.ts rename to src/platform/plugins/private/interactive_setup/server/kibana_config_writer.mock.ts diff --git a/src/plugins/interactive_setup/server/kibana_config_writer.test.ts b/src/platform/plugins/private/interactive_setup/server/kibana_config_writer.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/kibana_config_writer.test.ts rename to src/platform/plugins/private/interactive_setup/server/kibana_config_writer.test.ts diff --git a/src/plugins/interactive_setup/server/kibana_config_writer.ts b/src/platform/plugins/private/interactive_setup/server/kibana_config_writer.ts similarity index 100% rename from src/plugins/interactive_setup/server/kibana_config_writer.ts rename to src/platform/plugins/private/interactive_setup/server/kibana_config_writer.ts diff --git a/src/plugins/interactive_setup/server/mocks.ts b/src/platform/plugins/private/interactive_setup/server/mocks.ts similarity index 100% rename from src/plugins/interactive_setup/server/mocks.ts rename to src/platform/plugins/private/interactive_setup/server/mocks.ts diff --git a/src/plugins/interactive_setup/server/plugin.ts b/src/platform/plugins/private/interactive_setup/server/plugin.ts similarity index 100% rename from src/plugins/interactive_setup/server/plugin.ts rename to src/platform/plugins/private/interactive_setup/server/plugin.ts diff --git a/src/plugins/interactive_setup/server/routes/configure.test.ts b/src/platform/plugins/private/interactive_setup/server/routes/configure.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/configure.test.ts rename to src/platform/plugins/private/interactive_setup/server/routes/configure.test.ts diff --git a/src/plugins/interactive_setup/server/routes/configure.ts b/src/platform/plugins/private/interactive_setup/server/routes/configure.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/configure.ts rename to src/platform/plugins/private/interactive_setup/server/routes/configure.ts diff --git a/src/plugins/interactive_setup/server/routes/enroll.test.ts b/src/platform/plugins/private/interactive_setup/server/routes/enroll.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/enroll.test.ts rename to src/platform/plugins/private/interactive_setup/server/routes/enroll.test.ts diff --git a/src/plugins/interactive_setup/server/routes/enroll.ts b/src/platform/plugins/private/interactive_setup/server/routes/enroll.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/enroll.ts rename to src/platform/plugins/private/interactive_setup/server/routes/enroll.ts diff --git a/src/plugins/interactive_setup/server/routes/index.mock.ts b/src/platform/plugins/private/interactive_setup/server/routes/index.mock.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/index.mock.ts rename to src/platform/plugins/private/interactive_setup/server/routes/index.mock.ts diff --git a/src/plugins/interactive_setup/server/routes/index.ts b/src/platform/plugins/private/interactive_setup/server/routes/index.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/index.ts rename to src/platform/plugins/private/interactive_setup/server/routes/index.ts diff --git a/src/plugins/interactive_setup/server/routes/ping.test.ts b/src/platform/plugins/private/interactive_setup/server/routes/ping.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/ping.test.ts rename to src/platform/plugins/private/interactive_setup/server/routes/ping.test.ts diff --git a/src/plugins/interactive_setup/server/routes/ping.ts b/src/platform/plugins/private/interactive_setup/server/routes/ping.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/ping.ts rename to src/platform/plugins/private/interactive_setup/server/routes/ping.ts diff --git a/src/plugins/interactive_setup/server/routes/status.test.ts b/src/platform/plugins/private/interactive_setup/server/routes/status.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/status.test.ts rename to src/platform/plugins/private/interactive_setup/server/routes/status.test.ts diff --git a/src/plugins/interactive_setup/server/routes/status.ts b/src/platform/plugins/private/interactive_setup/server/routes/status.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/status.ts rename to src/platform/plugins/private/interactive_setup/server/routes/status.ts diff --git a/src/plugins/interactive_setup/server/routes/verify.test.ts b/src/platform/plugins/private/interactive_setup/server/routes/verify.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/verify.test.ts rename to src/platform/plugins/private/interactive_setup/server/routes/verify.test.ts diff --git a/src/plugins/interactive_setup/server/routes/verify.ts b/src/platform/plugins/private/interactive_setup/server/routes/verify.ts similarity index 100% rename from src/plugins/interactive_setup/server/routes/verify.ts rename to src/platform/plugins/private/interactive_setup/server/routes/verify.ts diff --git a/src/plugins/interactive_setup/server/verification_code.mock.ts b/src/platform/plugins/private/interactive_setup/server/verification_code.mock.ts similarity index 100% rename from src/plugins/interactive_setup/server/verification_code.mock.ts rename to src/platform/plugins/private/interactive_setup/server/verification_code.mock.ts diff --git a/src/plugins/interactive_setup/server/verification_code.test.ts b/src/platform/plugins/private/interactive_setup/server/verification_code.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/verification_code.test.ts rename to src/platform/plugins/private/interactive_setup/server/verification_code.test.ts diff --git a/src/plugins/interactive_setup/server/verification_code.ts b/src/platform/plugins/private/interactive_setup/server/verification_code.ts similarity index 100% rename from src/plugins/interactive_setup/server/verification_code.ts rename to src/platform/plugins/private/interactive_setup/server/verification_code.ts diff --git a/src/plugins/interactive_setup/server/verification_service.test.ts b/src/platform/plugins/private/interactive_setup/server/verification_service.test.ts similarity index 100% rename from src/plugins/interactive_setup/server/verification_service.test.ts rename to src/platform/plugins/private/interactive_setup/server/verification_service.test.ts diff --git a/src/plugins/interactive_setup/server/verification_service.ts b/src/platform/plugins/private/interactive_setup/server/verification_service.ts similarity index 100% rename from src/plugins/interactive_setup/server/verification_service.ts rename to src/platform/plugins/private/interactive_setup/server/verification_service.ts diff --git a/src/plugins/interactive_setup/tsconfig.json b/src/platform/plugins/private/interactive_setup/tsconfig.json similarity index 92% rename from src/plugins/interactive_setup/tsconfig.json rename to src/platform/plugins/private/interactive_setup/tsconfig.json index 048143fd464e0..44d426ff06107 100644 --- a/src/plugins/interactive_setup/tsconfig.json +++ b/src/platform/plugins/private/interactive_setup/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/tsconfig.base.json b/tsconfig.base.json index de52c756a7775..9dddd8d5c1d8a 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -682,8 +682,8 @@ "@kbn/core-user-settings-server-mocks/*": ["packages/core/user-settings/core-user-settings-server-mocks/*"], "@kbn/cross-cluster-replication-plugin": ["x-pack/platform/plugins/private/cross_cluster_replication"], "@kbn/cross-cluster-replication-plugin/*": ["x-pack/platform/plugins/private/cross_cluster_replication/*"], - "@kbn/crypto": ["packages/kbn-crypto"], - "@kbn/crypto/*": ["packages/kbn-crypto/*"], + "@kbn/crypto": ["src/platform/packages/shared/kbn-crypto"], + "@kbn/crypto/*": ["src/platform/packages/shared/kbn-crypto/*"], "@kbn/crypto-browser": ["src/platform/packages/shared/kbn-crypto-browser"], "@kbn/crypto-browser/*": ["src/platform/packages/shared/kbn-crypto-browser/*"], "@kbn/custom-branding-plugin": ["x-pack/platform/plugins/private/custom_branding"], @@ -816,8 +816,8 @@ "@kbn/embeddable-plugin/*": ["src/platform/plugins/shared/embeddable/*"], "@kbn/embedded-lens-example-plugin": ["x-pack/examples/embedded_lens_example"], "@kbn/embedded-lens-example-plugin/*": ["x-pack/examples/embedded_lens_example/*"], - "@kbn/encrypted-saved-objects-plugin": ["x-pack/plugins/encrypted_saved_objects"], - "@kbn/encrypted-saved-objects-plugin/*": ["x-pack/plugins/encrypted_saved_objects/*"], + "@kbn/encrypted-saved-objects-plugin": ["x-pack/platform/plugins/shared/encrypted_saved_objects"], + "@kbn/encrypted-saved-objects-plugin/*": ["x-pack/platform/plugins/shared/encrypted_saved_objects/*"], "@kbn/enterprise-search-plugin": ["x-pack/solutions/search/plugins/enterprise_search"], "@kbn/enterprise-search-plugin/*": ["x-pack/solutions/search/plugins/enterprise_search/*"], "@kbn/entities-data-access-plugin": ["x-pack/solutions/observability/plugins/observability_solution/entities_data_access"], @@ -1018,8 +1018,8 @@ "@kbn/guided-onboarding-example-plugin/*": ["examples/guided_onboarding_example/*"], "@kbn/guided-onboarding-plugin": ["src/platform/plugins/shared/guided_onboarding"], "@kbn/guided-onboarding-plugin/*": ["src/platform/plugins/shared/guided_onboarding/*"], - "@kbn/handlebars": ["packages/kbn-handlebars"], - "@kbn/handlebars/*": ["packages/kbn-handlebars/*"], + "@kbn/handlebars": ["src/platform/packages/private/kbn-handlebars"], + "@kbn/handlebars/*": ["src/platform/packages/private/kbn-handlebars/*"], "@kbn/hapi-mocks": ["src/platform/packages/private/kbn-hapi-mocks"], "@kbn/hapi-mocks/*": ["src/platform/packages/private/kbn-hapi-mocks/*"], "@kbn/hardening-plugin": ["test/plugin_functional/plugins/hardening"], @@ -1080,8 +1080,8 @@ "@kbn/inspector-plugin/*": ["src/platform/plugins/shared/inspector/*"], "@kbn/integration-assistant-plugin": ["x-pack/platform/plugins/shared/integration_assistant"], "@kbn/integration-assistant-plugin/*": ["x-pack/platform/plugins/shared/integration_assistant/*"], - "@kbn/interactive-setup-plugin": ["src/plugins/interactive_setup"], - "@kbn/interactive-setup-plugin/*": ["src/plugins/interactive_setup/*"], + "@kbn/interactive-setup-plugin": ["src/platform/plugins/private/interactive_setup"], + "@kbn/interactive-setup-plugin/*": ["src/platform/plugins/private/interactive_setup/*"], "@kbn/interactive-setup-test-endpoints-plugin": ["test/interactive_setup_api_integration/plugins/test_endpoints"], "@kbn/interactive-setup-test-endpoints-plugin/*": ["test/interactive_setup_api_integration/plugins/test_endpoints/*"], "@kbn/interpreter": ["packages/kbn-interpreter"], @@ -1518,8 +1518,8 @@ "@kbn/rule-registry-plugin/*": ["x-pack/platform/plugins/shared/rule_registry/*"], "@kbn/runtime-fields-plugin": ["x-pack/platform/plugins/private/runtime_fields"], "@kbn/runtime-fields-plugin/*": ["x-pack/platform/plugins/private/runtime_fields/*"], - "@kbn/safer-lodash-set": ["packages/kbn-safer-lodash-set"], - "@kbn/safer-lodash-set/*": ["packages/kbn-safer-lodash-set/*"], + "@kbn/safer-lodash-set": ["src/platform/packages/shared/kbn-safer-lodash-set"], + "@kbn/safer-lodash-set/*": ["src/platform/packages/shared/kbn-safer-lodash-set/*"], "@kbn/saml-provider-plugin": ["x-pack/test/security_api_integration/plugins/saml_provider"], "@kbn/saml-provider-plugin/*": ["x-pack/test/security_api_integration/plugins/saml_provider/*"], "@kbn/sample-task-plugin": ["x-pack/test/plugin_api_integration/plugins/sample_task_plugin"], @@ -1608,26 +1608,26 @@ "@kbn/searchprofiler-plugin/*": ["x-pack/platform/plugins/shared/searchprofiler/*"], "@kbn/security-api-integration-helpers": ["x-pack/test/security_api_integration/packages/helpers"], "@kbn/security-api-integration-helpers/*": ["x-pack/test/security_api_integration/packages/helpers/*"], - "@kbn/security-api-key-management": ["x-pack/packages/security/api_key_management"], - "@kbn/security-api-key-management/*": ["x-pack/packages/security/api_key_management/*"], - "@kbn/security-authorization-core": ["x-pack/packages/security/authorization_core"], - "@kbn/security-authorization-core/*": ["x-pack/packages/security/authorization_core/*"], - "@kbn/security-authorization-core-common": ["x-pack/packages/security/authorization_core_common"], - "@kbn/security-authorization-core-common/*": ["x-pack/packages/security/authorization_core_common/*"], - "@kbn/security-form-components": ["x-pack/packages/security/form_components"], - "@kbn/security-form-components/*": ["x-pack/packages/security/form_components/*"], - "@kbn/security-hardening": ["packages/kbn-security-hardening"], - "@kbn/security-hardening/*": ["packages/kbn-security-hardening/*"], - "@kbn/security-plugin": ["x-pack/plugins/security"], - "@kbn/security-plugin/*": ["x-pack/plugins/security/*"], - "@kbn/security-plugin-types-common": ["x-pack/packages/security/plugin_types_common"], - "@kbn/security-plugin-types-common/*": ["x-pack/packages/security/plugin_types_common/*"], - "@kbn/security-plugin-types-public": ["x-pack/packages/security/plugin_types_public"], - "@kbn/security-plugin-types-public/*": ["x-pack/packages/security/plugin_types_public/*"], - "@kbn/security-plugin-types-server": ["x-pack/packages/security/plugin_types_server"], - "@kbn/security-plugin-types-server/*": ["x-pack/packages/security/plugin_types_server/*"], - "@kbn/security-role-management-model": ["x-pack/packages/security/role_management_model"], - "@kbn/security-role-management-model/*": ["x-pack/packages/security/role_management_model/*"], + "@kbn/security-api-key-management": ["x-pack/platform/packages/shared/security/api_key_management"], + "@kbn/security-api-key-management/*": ["x-pack/platform/packages/shared/security/api_key_management/*"], + "@kbn/security-authorization-core": ["x-pack/platform/packages/private/security/authorization_core"], + "@kbn/security-authorization-core/*": ["x-pack/platform/packages/private/security/authorization_core/*"], + "@kbn/security-authorization-core-common": ["x-pack/platform/packages/private/security/authorization_core_common"], + "@kbn/security-authorization-core-common/*": ["x-pack/platform/packages/private/security/authorization_core_common/*"], + "@kbn/security-form-components": ["x-pack/platform/packages/shared/security/form_components"], + "@kbn/security-form-components/*": ["x-pack/platform/packages/shared/security/form_components/*"], + "@kbn/security-hardening": ["src/platform/packages/shared/kbn-security-hardening"], + "@kbn/security-hardening/*": ["src/platform/packages/shared/kbn-security-hardening/*"], + "@kbn/security-plugin": ["x-pack/platform/plugins/shared/security"], + "@kbn/security-plugin/*": ["x-pack/platform/plugins/shared/security/*"], + "@kbn/security-plugin-types-common": ["x-pack/platform/packages/shared/security/plugin_types_common"], + "@kbn/security-plugin-types-common/*": ["x-pack/platform/packages/shared/security/plugin_types_common/*"], + "@kbn/security-plugin-types-public": ["x-pack/platform/packages/shared/security/plugin_types_public"], + "@kbn/security-plugin-types-public/*": ["x-pack/platform/packages/shared/security/plugin_types_public/*"], + "@kbn/security-plugin-types-server": ["x-pack/platform/packages/shared/security/plugin_types_server"], + "@kbn/security-plugin-types-server/*": ["x-pack/platform/packages/shared/security/plugin_types_server/*"], + "@kbn/security-role-management-model": ["x-pack/platform/packages/private/security/role_management_model"], + "@kbn/security-role-management-model/*": ["x-pack/platform/packages/private/security/role_management_model/*"], "@kbn/security-solution-distribution-bar": ["x-pack/solutions/security/packages/distribution_bar"], "@kbn/security-solution-distribution-bar/*": ["x-pack/solutions/security/packages/distribution_bar/*"], "@kbn/security-solution-ess": ["x-pack/solutions/security/plugins/security_solution_ess"], @@ -1650,8 +1650,8 @@ "@kbn/security-solution-upselling/*": ["x-pack/solutions/security/packages/upselling/*"], "@kbn/security-test-endpoints-plugin": ["x-pack/test/security_functional/plugins/test_endpoints"], "@kbn/security-test-endpoints-plugin/*": ["x-pack/test/security_functional/plugins/test_endpoints/*"], - "@kbn/security-ui-components": ["x-pack/packages/security/ui_components"], - "@kbn/security-ui-components/*": ["x-pack/packages/security/ui_components/*"], + "@kbn/security-ui-components": ["x-pack/platform/packages/private/security/ui_components"], + "@kbn/security-ui-components/*": ["x-pack/platform/packages/private/security/ui_components/*"], "@kbn/securitysolution-autocomplete": ["x-pack/solutions/security/packages/kbn-securitysolution-autocomplete"], "@kbn/securitysolution-autocomplete/*": ["x-pack/solutions/security/packages/kbn-securitysolution-autocomplete/*"], "@kbn/securitysolution-data-table": ["x-pack/solutions/security/packages/data_table"], @@ -1844,8 +1844,8 @@ "@kbn/sort-package-json/*": ["packages/kbn-sort-package-json/*"], "@kbn/sort-predicates": ["packages/kbn-sort-predicates"], "@kbn/sort-predicates/*": ["packages/kbn-sort-predicates/*"], - "@kbn/spaces-plugin": ["x-pack/plugins/spaces"], - "@kbn/spaces-plugin/*": ["x-pack/plugins/spaces/*"], + "@kbn/spaces-plugin": ["x-pack/platform/plugins/shared/spaces"], + "@kbn/spaces-plugin/*": ["x-pack/platform/plugins/shared/spaces/*"], "@kbn/spaces-test-plugin": ["x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin"], "@kbn/spaces-test-plugin/*": ["x-pack/test/spaces_api_integration/common/plugins/spaces_test_plugin/*"], "@kbn/spec-to-console": ["packages/kbn-spec-to-console"], @@ -2014,8 +2014,8 @@ "@kbn/usage-collection-test-plugin/*": ["test/plugin_functional/plugins/usage_collection/*"], "@kbn/use-tracked-promise": ["packages/kbn-use-tracked-promise"], "@kbn/use-tracked-promise/*": ["packages/kbn-use-tracked-promise/*"], - "@kbn/user-profile-components": ["packages/kbn-user-profile-components"], - "@kbn/user-profile-components/*": ["packages/kbn-user-profile-components/*"], + "@kbn/user-profile-components": ["src/platform/packages/shared/kbn-user-profile-components"], + "@kbn/user-profile-components/*": ["src/platform/packages/shared/kbn-user-profile-components/*"], "@kbn/user-profile-examples-plugin": ["examples/user_profile_examples"], "@kbn/user-profile-examples-plugin/*": ["examples/user_profile_examples/*"], "@kbn/user-profiles-consumer-plugin": ["x-pack/test/security_api_integration/plugins/user_profiles_consumer"], diff --git a/x-pack/.i18nrc.json b/x-pack/.i18nrc.json index f79085c12bccd..b9151ad2cee8c 100644 --- a/x-pack/.i18nrc.json +++ b/x-pack/.i18nrc.json @@ -133,7 +133,11 @@ "xpack.searchInferenceEndpoints": "solutions/search/plugins/search_inference_endpoints", "xpack.searchAssistant": "solutions/search/plugins/search_assistant", "xpack.searchProfiler": "platform/plugins/shared/searchprofiler", - "xpack.security": ["plugins/security", "packages/security"], + "xpack.security": [ + "platform/plugins/shared/security", + "platform/packages/shared/security", + "platform/packages/private/security" + ], "xpack.server": "legacy/server", "xpack.serverless": "platform/plugins/shared/serverless", "xpack.serverlessSearch": "solutions/search/plugins/serverless_search", @@ -145,7 +149,7 @@ "xpack.streams": ["solutions/observability/plugins/streams_app"], "xpack.slo": "solutions/observability/plugins/slo", "xpack.snapshotRestore": "platform/plugins/private/snapshot_restore", - "xpack.spaces": "plugins/spaces", + "xpack.spaces": "platform/plugins/shared/spaces", "xpack.savedObjectsTagging": [ "platform/plugins/private/saved_objects_tagging" ], diff --git a/x-pack/packages/security/authorization_core/README.md b/x-pack/platform/packages/private/security/authorization_core/README.md similarity index 100% rename from x-pack/packages/security/authorization_core/README.md rename to x-pack/platform/packages/private/security/authorization_core/README.md diff --git a/x-pack/packages/security/authorization_core/index.ts b/x-pack/platform/packages/private/security/authorization_core/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core/index.ts rename to x-pack/platform/packages/private/security/authorization_core/index.ts diff --git a/x-pack/packages/security/authorization_core/jest.config.js b/x-pack/platform/packages/private/security/authorization_core/jest.config.js similarity index 50% rename from x-pack/packages/security/authorization_core/jest.config.js rename to x-pack/platform/packages/private/security/authorization_core/jest.config.js index db3272ac46d92..87f4000b26017 100644 --- a/x-pack/packages/security/authorization_core/jest.config.js +++ b/x-pack/platform/packages/private/security/authorization_core/jest.config.js @@ -6,10 +6,12 @@ */ module.exports = { - coverageDirectory: '/x-pack/packages/security/authorization_core', + coverageDirectory: '/x-pack/platform/packages/private/security/authorization_core', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/security/authorization_core/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/packages/private/security/authorization_core/**/*.{ts,tsx}', + ], preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/authorization_core'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/private/security/authorization_core'], }; diff --git a/x-pack/packages/security/authorization_core/kibana.jsonc b/x-pack/platform/packages/private/security/authorization_core/kibana.jsonc similarity index 100% rename from x-pack/packages/security/authorization_core/kibana.jsonc rename to x-pack/platform/packages/private/security/authorization_core/kibana.jsonc diff --git a/x-pack/packages/security/authorization_core/package.json b/x-pack/platform/packages/private/security/authorization_core/package.json similarity index 100% rename from x-pack/packages/security/authorization_core/package.json rename to x-pack/platform/packages/private/security/authorization_core/package.json diff --git a/x-pack/packages/security/authorization_core/src/__fixtures__/licensing.mock.ts b/x-pack/platform/packages/private/security/authorization_core/src/__fixtures__/licensing.mock.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/__fixtures__/licensing.mock.ts rename to x-pack/platform/packages/private/security/authorization_core/src/__fixtures__/licensing.mock.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/__snapshots__/alerting.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/alerting.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/__snapshots__/alerting.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/alerting.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/actions/__snapshots__/api.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/api.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/__snapshots__/api.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/api.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/actions/__snapshots__/app.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/app.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/__snapshots__/app.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/app.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/actions/__snapshots__/cases.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/cases.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/__snapshots__/cases.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/cases.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/actions/__snapshots__/ui.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/ui.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/__snapshots__/ui.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/actions/__snapshots__/ui.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/actions/actions.mock.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/actions.mock.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/actions.mock.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/actions.mock.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/actions.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/actions.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/actions.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/actions.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/actions.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/actions.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/actions.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/actions.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/alerting.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/alerting.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/alerting.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/alerting.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/alerting.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/alerting.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/alerting.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/alerting.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/api.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/api.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/api.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/api.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/api.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/api.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/api.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/api.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/app.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/app.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/app.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/app.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/app.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/app.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/app.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/app.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/cases.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/cases.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/cases.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/cases.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/cases.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/cases.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/cases.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/cases.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/index.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/index.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/index.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/saved_object.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/saved_object.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/saved_object.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/saved_object.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/saved_object.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/saved_object.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/saved_object.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/saved_object.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/space.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/space.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/space.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/space.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/space.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/space.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/space.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/space.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/ui.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/ui.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/ui.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/ui.test.ts diff --git a/x-pack/packages/security/authorization_core/src/actions/ui.ts b/x-pack/platform/packages/private/security/authorization_core/src/actions/ui.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/actions/ui.ts rename to x-pack/platform/packages/private/security/authorization_core/src/actions/ui.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/__snapshots__/cases.test.ts.snap b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/__snapshots__/cases.test.ts.snap similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/__snapshots__/cases.test.ts.snap rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/__snapshots__/cases.test.ts.snap diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/alerting.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/alerting.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/alerting.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/alerting.test.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/alerting.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/alerting.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/alerting.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/alerting.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/api.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/api.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/api.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/api.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/app.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/app.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/app.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/app.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.test.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/catalogue.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/catalogue.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/catalogue.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/catalogue.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/feature_privilege_builder.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/feature_privilege_builder.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/feature_privilege_builder.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/feature_privilege_builder.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/index.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/index.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/index.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/management.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/management.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/management.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/management.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/navlink.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/navlink.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/navlink.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/navlink.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/saved_object.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/saved_object.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/saved_object.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/saved_object.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/ui.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/ui.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/ui.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/ui.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/index.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/index.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/index.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/privileges.test.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/privileges.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/privileges.test.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/privileges.test.ts diff --git a/x-pack/packages/security/authorization_core/src/privileges/privileges.ts b/x-pack/platform/packages/private/security/authorization_core/src/privileges/privileges.ts similarity index 100% rename from x-pack/packages/security/authorization_core/src/privileges/privileges.ts rename to x-pack/platform/packages/private/security/authorization_core/src/privileges/privileges.ts diff --git a/x-pack/packages/security/authorization_core/tsconfig.json b/x-pack/platform/packages/private/security/authorization_core/tsconfig.json similarity index 88% rename from x-pack/packages/security/authorization_core/tsconfig.json rename to x-pack/platform/packages/private/security/authorization_core/tsconfig.json index 08437d11e23b9..1505f9cb605f4 100644 --- a/x-pack/packages/security/authorization_core/tsconfig.json +++ b/x-pack/platform/packages/private/security/authorization_core/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node", "react"] diff --git a/x-pack/packages/security/authorization_core_common/README.md b/x-pack/platform/packages/private/security/authorization_core_common/README.md similarity index 100% rename from x-pack/packages/security/authorization_core_common/README.md rename to x-pack/platform/packages/private/security/authorization_core_common/README.md diff --git a/x-pack/packages/security/authorization_core_common/index.ts b/x-pack/platform/packages/private/security/authorization_core_common/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core_common/index.ts rename to x-pack/platform/packages/private/security/authorization_core_common/index.ts diff --git a/x-pack/packages/security/authorization_core_common/jest.config.js b/x-pack/platform/packages/private/security/authorization_core_common/jest.config.js similarity index 55% rename from x-pack/packages/security/authorization_core_common/jest.config.js rename to x-pack/platform/packages/private/security/authorization_core_common/jest.config.js index 1034836296ba1..ce9a2a3cbc3da 100644 --- a/x-pack/packages/security/authorization_core_common/jest.config.js +++ b/x-pack/platform/packages/private/security/authorization_core_common/jest.config.js @@ -6,12 +6,13 @@ */ module.exports = { - coverageDirectory: '/x-pack/packages/security/authorization_core_common', + coverageDirectory: + '/x-pack/platform/packages/private/security/authorization_core_common', coverageReporters: ['text', 'html'], collectCoverageFrom: [ - '/x-pack/packages/security/authorization_core_common/**/*.{ts,tsx}', + '/x-pack/platform/packages/private/security/authorization_core_common/**/*.{ts,tsx}', ], preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/authorization_core_common'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/private/security/authorization_core_common'], }; diff --git a/x-pack/packages/security/authorization_core_common/kibana.jsonc b/x-pack/platform/packages/private/security/authorization_core_common/kibana.jsonc similarity index 100% rename from x-pack/packages/security/authorization_core_common/kibana.jsonc rename to x-pack/platform/packages/private/security/authorization_core_common/kibana.jsonc diff --git a/x-pack/packages/security/authorization_core_common/package.json b/x-pack/platform/packages/private/security/authorization_core_common/package.json similarity index 100% rename from x-pack/packages/security/authorization_core_common/package.json rename to x-pack/platform/packages/private/security/authorization_core_common/package.json diff --git a/x-pack/packages/security/authorization_core_common/src/privileges/index.ts b/x-pack/platform/packages/private/security/authorization_core_common/src/privileges/index.ts similarity index 100% rename from x-pack/packages/security/authorization_core_common/src/privileges/index.ts rename to x-pack/platform/packages/private/security/authorization_core_common/src/privileges/index.ts diff --git a/x-pack/packages/security/authorization_core_common/src/privileges/minimal_privileges.test.ts b/x-pack/platform/packages/private/security/authorization_core_common/src/privileges/minimal_privileges.test.ts similarity index 100% rename from x-pack/packages/security/authorization_core_common/src/privileges/minimal_privileges.test.ts rename to x-pack/platform/packages/private/security/authorization_core_common/src/privileges/minimal_privileges.test.ts diff --git a/x-pack/packages/security/authorization_core_common/src/privileges/minimal_privileges.ts b/x-pack/platform/packages/private/security/authorization_core_common/src/privileges/minimal_privileges.ts similarity index 100% rename from x-pack/packages/security/authorization_core_common/src/privileges/minimal_privileges.ts rename to x-pack/platform/packages/private/security/authorization_core_common/src/privileges/minimal_privileges.ts diff --git a/x-pack/packages/security/authorization_core_common/tsconfig.json b/x-pack/platform/packages/private/security/authorization_core_common/tsconfig.json similarity index 78% rename from x-pack/packages/security/authorization_core_common/tsconfig.json rename to x-pack/platform/packages/private/security/authorization_core_common/tsconfig.json index e8a4b1a87df85..597c1b47cb03a 100644 --- a/x-pack/packages/security/authorization_core_common/tsconfig.json +++ b/x-pack/platform/packages/private/security/authorization_core_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node", "react"] diff --git a/x-pack/packages/security/role_management_model/README.md b/x-pack/platform/packages/private/security/role_management_model/README.md similarity index 100% rename from x-pack/packages/security/role_management_model/README.md rename to x-pack/platform/packages/private/security/role_management_model/README.md diff --git a/x-pack/packages/security/role_management_model/index.ts b/x-pack/platform/packages/private/security/role_management_model/index.ts similarity index 100% rename from x-pack/packages/security/role_management_model/index.ts rename to x-pack/platform/packages/private/security/role_management_model/index.ts diff --git a/x-pack/platform/packages/private/security/role_management_model/jest.config.js b/x-pack/platform/packages/private/security/role_management_model/jest.config.js new file mode 100644 index 0000000000000..074f2b128329a --- /dev/null +++ b/x-pack/platform/packages/private/security/role_management_model/jest.config.js @@ -0,0 +1,18 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/packages/private/security/role_management_model', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/private/security/role_management_model/**/*.{ts,tsx}', + ], + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/private/security/role_management_model'], +}; diff --git a/x-pack/packages/security/role_management_model/kibana.jsonc b/x-pack/platform/packages/private/security/role_management_model/kibana.jsonc similarity index 100% rename from x-pack/packages/security/role_management_model/kibana.jsonc rename to x-pack/platform/packages/private/security/role_management_model/kibana.jsonc diff --git a/x-pack/packages/security/role_management_model/package.json b/x-pack/platform/packages/private/security/role_management_model/package.json similarity index 100% rename from x-pack/packages/security/role_management_model/package.json rename to x-pack/platform/packages/private/security/role_management_model/package.json diff --git a/x-pack/packages/security/role_management_model/src/__fixtures__/index.ts b/x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/index.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/__fixtures__/index.ts rename to x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/index.ts diff --git a/x-pack/packages/security/role_management_model/src/__fixtures__/kibana_features.ts b/x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/kibana_features.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/__fixtures__/kibana_features.ts rename to x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/kibana_features.ts diff --git a/x-pack/packages/security/role_management_model/src/__fixtures__/kibana_privileges.ts b/x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/kibana_privileges.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/__fixtures__/kibana_privileges.ts rename to x-pack/platform/packages/private/security/role_management_model/src/__fixtures__/kibana_privileges.ts diff --git a/x-pack/packages/security/role_management_model/src/kibana_privilege.ts b/x-pack/platform/packages/private/security/role_management_model/src/kibana_privilege.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/kibana_privilege.ts rename to x-pack/platform/packages/private/security/role_management_model/src/kibana_privilege.ts diff --git a/x-pack/packages/security/role_management_model/src/kibana_privileges.test.ts b/x-pack/platform/packages/private/security/role_management_model/src/kibana_privileges.test.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/kibana_privileges.test.ts rename to x-pack/platform/packages/private/security/role_management_model/src/kibana_privileges.test.ts diff --git a/x-pack/packages/security/role_management_model/src/kibana_privileges.ts b/x-pack/platform/packages/private/security/role_management_model/src/kibana_privileges.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/kibana_privileges.ts rename to x-pack/platform/packages/private/security/role_management_model/src/kibana_privileges.ts diff --git a/x-pack/packages/security/role_management_model/src/primary_feature_privilege.ts b/x-pack/platform/packages/private/security/role_management_model/src/primary_feature_privilege.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/primary_feature_privilege.ts rename to x-pack/platform/packages/private/security/role_management_model/src/primary_feature_privilege.ts diff --git a/x-pack/packages/security/role_management_model/src/privilege_collection.test.ts b/x-pack/platform/packages/private/security/role_management_model/src/privilege_collection.test.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/privilege_collection.test.ts rename to x-pack/platform/packages/private/security/role_management_model/src/privilege_collection.test.ts diff --git a/x-pack/packages/security/role_management_model/src/privilege_collection.ts b/x-pack/platform/packages/private/security/role_management_model/src/privilege_collection.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/privilege_collection.ts rename to x-pack/platform/packages/private/security/role_management_model/src/privilege_collection.ts diff --git a/x-pack/packages/security/role_management_model/src/secured_feature.ts b/x-pack/platform/packages/private/security/role_management_model/src/secured_feature.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/secured_feature.ts rename to x-pack/platform/packages/private/security/role_management_model/src/secured_feature.ts diff --git a/x-pack/packages/security/role_management_model/src/secured_sub_feature.ts b/x-pack/platform/packages/private/security/role_management_model/src/secured_sub_feature.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/secured_sub_feature.ts rename to x-pack/platform/packages/private/security/role_management_model/src/secured_sub_feature.ts diff --git a/x-pack/packages/security/role_management_model/src/sub_feature_privilege.ts b/x-pack/platform/packages/private/security/role_management_model/src/sub_feature_privilege.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/sub_feature_privilege.ts rename to x-pack/platform/packages/private/security/role_management_model/src/sub_feature_privilege.ts diff --git a/x-pack/packages/security/role_management_model/src/sub_feature_privilege_group.ts b/x-pack/platform/packages/private/security/role_management_model/src/sub_feature_privilege_group.ts similarity index 100% rename from x-pack/packages/security/role_management_model/src/sub_feature_privilege_group.ts rename to x-pack/platform/packages/private/security/role_management_model/src/sub_feature_privilege_group.ts diff --git a/x-pack/packages/security/role_management_model/tsconfig.json b/x-pack/platform/packages/private/security/role_management_model/tsconfig.json similarity index 87% rename from x-pack/packages/security/role_management_model/tsconfig.json rename to x-pack/platform/packages/private/security/role_management_model/tsconfig.json index 026bde0ceaa11..3c4593300bad9 100644 --- a/x-pack/packages/security/role_management_model/tsconfig.json +++ b/x-pack/platform/packages/private/security/role_management_model/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node", "react"] diff --git a/x-pack/packages/security/ui_components/README.md b/x-pack/platform/packages/private/security/ui_components/README.md similarity index 100% rename from x-pack/packages/security/ui_components/README.md rename to x-pack/platform/packages/private/security/ui_components/README.md diff --git a/x-pack/packages/security/ui_components/index.ts b/x-pack/platform/packages/private/security/ui_components/index.ts similarity index 100% rename from x-pack/packages/security/ui_components/index.ts rename to x-pack/platform/packages/private/security/ui_components/index.ts diff --git a/x-pack/packages/security/form_components/jest.config.js b/x-pack/platform/packages/private/security/ui_components/jest.config.js similarity index 52% rename from x-pack/packages/security/form_components/jest.config.js rename to x-pack/platform/packages/private/security/ui_components/jest.config.js index f27b499077bdf..b98ce16584bfd 100644 --- a/x-pack/packages/security/form_components/jest.config.js +++ b/x-pack/platform/packages/private/security/ui_components/jest.config.js @@ -7,10 +7,12 @@ module.exports = { coverageDirectory: - '/target/kibana-coverage/jest/x-pack/packages/security/form_components', + '/target/kibana-coverage/jest/x-pack/platform/packages/private/security/ui_components', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/security/form_components/**/*.{ts,tsx}'], + collectCoverageFrom: [ + '/x-pack/platform/packages/private/security/ui_components/**/*.{ts,tsx}', + ], preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/form_components'], + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/private/security/ui_components'], }; diff --git a/x-pack/packages/security/ui_components/kibana.jsonc b/x-pack/platform/packages/private/security/ui_components/kibana.jsonc similarity index 100% rename from x-pack/packages/security/ui_components/kibana.jsonc rename to x-pack/platform/packages/private/security/ui_components/kibana.jsonc diff --git a/x-pack/packages/security/ui_components/package.json b/x-pack/platform/packages/private/security/ui_components/package.json similarity index 100% rename from x-pack/packages/security/ui_components/package.json rename to x-pack/platform/packages/private/security/ui_components/package.json diff --git a/x-pack/packages/security/ui_components/src/constants.ts b/x-pack/platform/packages/private/security/ui_components/src/constants.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/constants.ts rename to x-pack/platform/packages/private/security/ui_components/src/constants.ts diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/__fixtures__/index.ts b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/__fixtures__/index.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/__fixtures__/index.ts rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/__fixtures__/index.ts diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/change_all_privileges.scss b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/change_all_privileges.scss similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/change_all_privileges.scss rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/change_all_privileges.scss diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/change_all_privileges.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/change_all_privileges.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/change_all_privileges.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/change_all_privileges.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.scss b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.scss similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.scss rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.scss diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.test.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.test.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.test.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.test.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/feature_table_cell.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/components/index.ts b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/index.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/components/index.ts rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/components/index.ts diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.scss b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.scss similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.scss rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.scss diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.test.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.test.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.test.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.test.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.test.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.test.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.test.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.test.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/feature_table_expanded_row.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/index.ts b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/index.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/index.ts rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/index.ts diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/sub_feature_form.test.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/sub_feature_form.test.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/sub_feature_form.test.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/sub_feature_form.test.tsx diff --git a/x-pack/packages/security/ui_components/src/kibana_privilege_table/sub_feature_form.tsx b/x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/sub_feature_form.tsx similarity index 100% rename from x-pack/packages/security/ui_components/src/kibana_privilege_table/sub_feature_form.tsx rename to x-pack/platform/packages/private/security/ui_components/src/kibana_privilege_table/sub_feature_form.tsx diff --git a/x-pack/packages/security/ui_components/src/privilege_form_calculator/index.ts b/x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/index.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/privilege_form_calculator/index.ts rename to x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/index.ts diff --git a/x-pack/packages/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.test.ts b/x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.test.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.test.ts rename to x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.test.ts diff --git a/x-pack/packages/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.ts b/x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.ts similarity index 100% rename from x-pack/packages/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.ts rename to x-pack/platform/packages/private/security/ui_components/src/privilege_form_calculator/privilege_form_calculator.ts diff --git a/x-pack/packages/security/ui_components/tsconfig.json b/x-pack/platform/packages/private/security/ui_components/tsconfig.json similarity index 88% rename from x-pack/packages/security/ui_components/tsconfig.json rename to x-pack/platform/packages/private/security/ui_components/tsconfig.json index 736612a488852..e754725b8b9e6 100644 --- a/x-pack/packages/security/ui_components/tsconfig.json +++ b/x-pack/platform/packages/private/security/ui_components/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": ["jest", "node", "react"] diff --git a/x-pack/packages/security/api_key_management/README.md b/x-pack/platform/packages/shared/security/api_key_management/README.md similarity index 100% rename from x-pack/packages/security/api_key_management/README.md rename to x-pack/platform/packages/shared/security/api_key_management/README.md diff --git a/x-pack/packages/security/api_key_management/index.ts b/x-pack/platform/packages/shared/security/api_key_management/index.ts similarity index 100% rename from x-pack/packages/security/api_key_management/index.ts rename to x-pack/platform/packages/shared/security/api_key_management/index.ts diff --git a/x-pack/platform/packages/shared/security/api_key_management/jest.config.js b/x-pack/platform/packages/shared/security/api_key_management/jest.config.js new file mode 100644 index 0000000000000..01b417158552b --- /dev/null +++ b/x-pack/platform/packages/shared/security/api_key_management/jest.config.js @@ -0,0 +1,18 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/packages/shared/security/api_key_management', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/shared/security/api_key_management/**/*.{ts,tsx}', + ], + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/security/api_key_management'], +}; diff --git a/x-pack/packages/security/api_key_management/kibana.jsonc b/x-pack/platform/packages/shared/security/api_key_management/kibana.jsonc similarity index 100% rename from x-pack/packages/security/api_key_management/kibana.jsonc rename to x-pack/platform/packages/shared/security/api_key_management/kibana.jsonc diff --git a/x-pack/packages/security/api_key_management/package.json b/x-pack/platform/packages/shared/security/api_key_management/package.json similarity index 100% rename from x-pack/packages/security/api_key_management/package.json rename to x-pack/platform/packages/shared/security/api_key_management/package.json diff --git a/x-pack/packages/security/api_key_management/src/components/api_key_badge.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_badge.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_key_badge.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_badge.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/api_key_created_callout.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_created_callout.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_key_created_callout.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_created_callout.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/api_key_flyout.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_flyout.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_key_flyout.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_flyout.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/api_key_status.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_status.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_key_status.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_key_status.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/api_keys_api_client.test.ts b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_keys_api_client.test.ts similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_keys_api_client.test.ts rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_keys_api_client.test.ts diff --git a/x-pack/packages/security/api_key_management/src/components/api_keys_api_client.ts b/x-pack/platform/packages/shared/security/api_key_management/src/components/api_keys_api_client.ts similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/api_keys_api_client.ts rename to x-pack/platform/packages/shared/security/api_key_management/src/components/api_keys_api_client.ts diff --git a/x-pack/packages/security/api_key_management/src/components/doc_link.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/doc_link.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/doc_link.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/doc_link.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/index.ts b/x-pack/platform/packages/shared/security/api_key_management/src/components/index.ts similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/index.ts rename to x-pack/platform/packages/shared/security/api_key_management/src/components/index.ts diff --git a/x-pack/packages/security/api_key_management/src/components/time_tool_tip.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/time_tool_tip.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/time_tool_tip.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/time_tool_tip.tsx diff --git a/x-pack/packages/security/api_key_management/src/components/token_field.tsx b/x-pack/platform/packages/shared/security/api_key_management/src/components/token_field.tsx similarity index 100% rename from x-pack/packages/security/api_key_management/src/components/token_field.tsx rename to x-pack/platform/packages/shared/security/api_key_management/src/components/token_field.tsx diff --git a/x-pack/packages/security/api_key_management/tsconfig.json b/x-pack/platform/packages/shared/security/api_key_management/tsconfig.json similarity index 90% rename from x-pack/packages/security/api_key_management/tsconfig.json rename to x-pack/platform/packages/shared/security/api_key_management/tsconfig.json index f0a9a78442f04..be27e7b4933e0 100644 --- a/x-pack/packages/security/api_key_management/tsconfig.json +++ b/x-pack/platform/packages/shared/security/api_key_management/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/security/form_components/README.md b/x-pack/platform/packages/shared/security/form_components/README.md similarity index 100% rename from x-pack/packages/security/form_components/README.md rename to x-pack/platform/packages/shared/security/form_components/README.md diff --git a/x-pack/packages/security/form_components/index.ts b/x-pack/platform/packages/shared/security/form_components/index.ts similarity index 100% rename from x-pack/packages/security/form_components/index.ts rename to x-pack/platform/packages/shared/security/form_components/index.ts diff --git a/x-pack/platform/packages/shared/security/form_components/jest.config.js b/x-pack/platform/packages/shared/security/form_components/jest.config.js new file mode 100644 index 0000000000000..b99e8f3b6a282 --- /dev/null +++ b/x-pack/platform/packages/shared/security/form_components/jest.config.js @@ -0,0 +1,18 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ + +module.exports = { + coverageDirectory: + '/target/kibana-coverage/jest/x-pack/platform/packages/shared/security/form_components', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/packages/shared/security/form_components/**/*.{ts,tsx}', + ], + preset: '@kbn/test', + rootDir: '../../../../../..', + roots: ['/x-pack/platform/packages/shared/security/form_components'], +}; diff --git a/x-pack/packages/security/form_components/kibana.jsonc b/x-pack/platform/packages/shared/security/form_components/kibana.jsonc similarity index 100% rename from x-pack/packages/security/form_components/kibana.jsonc rename to x-pack/platform/packages/shared/security/form_components/kibana.jsonc diff --git a/x-pack/packages/security/form_components/package.json b/x-pack/platform/packages/shared/security/form_components/package.json similarity index 100% rename from x-pack/packages/security/form_components/package.json rename to x-pack/platform/packages/shared/security/form_components/package.json diff --git a/x-pack/packages/security/form_components/src/form_changes.test.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_changes.test.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_changes.test.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_changes.test.tsx diff --git a/x-pack/packages/security/form_components/src/form_changes.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_changes.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_changes.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_changes.tsx diff --git a/x-pack/packages/security/form_components/src/form_field.test.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_field.test.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_field.test.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_field.test.tsx diff --git a/x-pack/packages/security/form_components/src/form_field.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_field.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_field.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_field.tsx diff --git a/x-pack/packages/security/form_components/src/form_label.test.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_label.test.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_label.test.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_label.test.tsx diff --git a/x-pack/packages/security/form_components/src/form_label.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_label.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_label.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_label.tsx diff --git a/x-pack/packages/security/form_components/src/form_row.test.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_row.test.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_row.test.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_row.test.tsx diff --git a/x-pack/packages/security/form_components/src/form_row.tsx b/x-pack/platform/packages/shared/security/form_components/src/form_row.tsx similarity index 100% rename from x-pack/packages/security/form_components/src/form_row.tsx rename to x-pack/platform/packages/shared/security/form_components/src/form_row.tsx diff --git a/x-pack/packages/security/form_components/src/index.ts b/x-pack/platform/packages/shared/security/form_components/src/index.ts similarity index 100% rename from x-pack/packages/security/form_components/src/index.ts rename to x-pack/platform/packages/shared/security/form_components/src/index.ts diff --git a/x-pack/packages/security/form_components/tsconfig.json b/x-pack/platform/packages/shared/security/form_components/tsconfig.json similarity index 83% rename from x-pack/packages/security/form_components/tsconfig.json rename to x-pack/platform/packages/shared/security/form_components/tsconfig.json index 5056613904e7a..a97b19640c8ad 100644 --- a/x-pack/packages/security/form_components/tsconfig.json +++ b/x-pack/platform/packages/shared/security/form_components/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", "types": [ diff --git a/x-pack/packages/security/plugin_types_common/README.md b/x-pack/platform/packages/shared/security/plugin_types_common/README.md similarity index 100% rename from x-pack/packages/security/plugin_types_common/README.md rename to x-pack/platform/packages/shared/security/plugin_types_common/README.md diff --git a/x-pack/packages/security/plugin_types_common/index.ts b/x-pack/platform/packages/shared/security/plugin_types_common/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/index.ts diff --git a/x-pack/packages/security/plugin_types_common/kibana.jsonc b/x-pack/platform/packages/shared/security/plugin_types_common/kibana.jsonc similarity index 100% rename from x-pack/packages/security/plugin_types_common/kibana.jsonc rename to x-pack/platform/packages/shared/security/plugin_types_common/kibana.jsonc diff --git a/x-pack/packages/security/plugin_types_common/package.json b/x-pack/platform/packages/shared/security/plugin_types_common/package.json similarity index 100% rename from x-pack/packages/security/plugin_types_common/package.json rename to x-pack/platform/packages/shared/security/plugin_types_common/package.json diff --git a/x-pack/packages/security/plugin_types_common/src/api_keys/api_key.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/api_keys/api_key.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/api_keys/api_key.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/api_keys/api_key.ts diff --git a/x-pack/packages/security/plugin_types_common/src/authentication/index.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/authentication/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/authentication/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/authentication/index.ts diff --git a/x-pack/packages/security/plugin_types_common/src/authorization/features_privileges.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/features_privileges.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/authorization/features_privileges.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/features_privileges.ts diff --git a/x-pack/packages/security/plugin_types_common/src/authorization/index.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/authorization/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/index.ts diff --git a/x-pack/packages/security/plugin_types_common/src/authorization/raw_kibana_privileges.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/raw_kibana_privileges.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/authorization/raw_kibana_privileges.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/raw_kibana_privileges.ts diff --git a/x-pack/packages/security/plugin_types_common/src/authorization/role.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/role.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/authorization/role.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/authorization/role.ts diff --git a/x-pack/packages/security/plugin_types_common/src/licensing/index.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/licensing/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/index.ts diff --git a/x-pack/packages/security/plugin_types_common/src/licensing/license.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/license.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/licensing/license.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/license.ts diff --git a/x-pack/packages/security/plugin_types_common/src/licensing/license_features.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/license_features.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/licensing/license_features.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/licensing/license_features.ts diff --git a/x-pack/packages/security/plugin_types_common/src/user_profile/index.ts b/x-pack/platform/packages/shared/security/plugin_types_common/src/user_profile/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_common/src/user_profile/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_common/src/user_profile/index.ts diff --git a/x-pack/packages/security/plugin_types_common/tsconfig.json b/x-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json similarity index 82% rename from x-pack/packages/security/plugin_types_common/tsconfig.json rename to x-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json index 353f6770352a9..36f4f9f30a9b1 100644 --- a/x-pack/packages/security/plugin_types_common/tsconfig.json +++ b/x-pack/platform/packages/shared/security/plugin_types_common/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/packages/security/plugin_types_public/README.md b/x-pack/platform/packages/shared/security/plugin_types_public/README.md similarity index 100% rename from x-pack/packages/security/plugin_types_public/README.md rename to x-pack/platform/packages/shared/security/plugin_types_public/README.md diff --git a/x-pack/packages/security/plugin_types_public/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/index.ts diff --git a/x-pack/packages/security/plugin_types_public/kibana.jsonc b/x-pack/platform/packages/shared/security/plugin_types_public/kibana.jsonc similarity index 100% rename from x-pack/packages/security/plugin_types_public/kibana.jsonc rename to x-pack/platform/packages/shared/security/plugin_types_public/kibana.jsonc diff --git a/x-pack/packages/security/plugin_types_public/package.json b/x-pack/platform/packages/shared/security/plugin_types_public/package.json similarity index 100% rename from x-pack/packages/security/plugin_types_public/package.json rename to x-pack/platform/packages/shared/security/plugin_types_public/package.json diff --git a/x-pack/packages/security/plugin_types_public/src/authentication/authentication_service.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/authentication/authentication_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/authentication/authentication_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/authentication/authentication_service.ts diff --git a/x-pack/packages/security/plugin_types_public/src/authentication/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/authentication/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/authentication/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/authentication/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/authorization/authorization_service.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/authorization/authorization_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/authorization/authorization_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/authorization/authorization_service.ts diff --git a/x-pack/packages/security/plugin_types_public/src/authorization/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/authorization/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/authorization/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/authorization/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/license/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/license/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/license/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/license/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/nav_control/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/nav_control/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/nav_control/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/nav_control/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/nav_control/nav_control_service.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/nav_control/nav_control_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/nav_control/nav_control_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/nav_control/nav_control_service.ts diff --git a/x-pack/packages/security/plugin_types_public/src/plugin.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/plugin.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/plugin.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/plugin.ts diff --git a/x-pack/packages/security/plugin_types_public/src/privileges/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/privileges/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/privileges/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/privileges/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/privileges/privileges_api_client.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/privileges/privileges_api_client.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/privileges/privileges_api_client.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/privileges/privileges_api_client.ts diff --git a/x-pack/packages/security/plugin_types_public/src/roles/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/roles/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/roles/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/roles/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/roles/roles_api_client.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/roles/roles_api_client.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/roles/roles_api_client.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/roles/roles_api_client.ts diff --git a/x-pack/packages/security/plugin_types_public/src/user_profile/index.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/user_profile/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/user_profile/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/user_profile/index.ts diff --git a/x-pack/packages/security/plugin_types_public/src/user_profile/user_profile_api_client.ts b/x-pack/platform/packages/shared/security/plugin_types_public/src/user_profile/user_profile_api_client.ts similarity index 100% rename from x-pack/packages/security/plugin_types_public/src/user_profile/user_profile_api_client.ts rename to x-pack/platform/packages/shared/security/plugin_types_public/src/user_profile/user_profile_api_client.ts diff --git a/x-pack/packages/security/plugin_types_public/tsconfig.json b/x-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json similarity index 83% rename from x-pack/packages/security/plugin_types_public/tsconfig.json rename to x-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json index c65330102c02d..b4854f120e135 100644 --- a/x-pack/packages/security/plugin_types_public/tsconfig.json +++ b/x-pack/platform/packages/shared/security/plugin_types_public/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/packages/security/plugin_types_server/README.md b/x-pack/platform/packages/shared/security/plugin_types_server/README.md similarity index 100% rename from x-pack/packages/security/plugin_types_server/README.md rename to x-pack/platform/packages/shared/security/plugin_types_server/README.md diff --git a/x-pack/packages/security/plugin_types_server/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/index.ts diff --git a/x-pack/packages/security/plugin_types_server/kibana.jsonc b/x-pack/platform/packages/shared/security/plugin_types_server/kibana.jsonc similarity index 100% rename from x-pack/packages/security/plugin_types_server/kibana.jsonc rename to x-pack/platform/packages/shared/security/plugin_types_server/kibana.jsonc diff --git a/x-pack/packages/security/plugin_types_server/package.json b/x-pack/platform/packages/shared/security/plugin_types_server/package.json similarity index 100% rename from x-pack/packages/security/plugin_types_server/package.json rename to x-pack/platform/packages/shared/security/plugin_types_server/package.json diff --git a/x-pack/packages/security/plugin_types_server/src/audit/audit_service.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/audit/audit_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/audit/audit_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/audit/audit_service.ts diff --git a/x-pack/packages/security/plugin_types_server/src/audit/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/audit/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/audit/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/audit/index.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authentication/api_keys/api_keys.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/api_keys/api_keys.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authentication/api_keys/api_keys.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/api_keys/api_keys.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authentication/api_keys/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/api_keys/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authentication/api_keys/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/api_keys/index.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authentication/authentication_service.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/authentication_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authentication/authentication_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/authentication_service.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authentication/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authentication/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authentication/index.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/actions.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/actions.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/actions.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/actions.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/alerting.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/alerting.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/alerting.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/alerting.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/api.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/api.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/api.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/api.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/app.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/app.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/app.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/app.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/cases.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/cases.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/cases.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/cases.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/index.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/saved_object.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/saved_object.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/saved_object.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/saved_object.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/space.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/space.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/space.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/space.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/actions/ui.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/ui.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/actions/ui.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/actions/ui.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/authorization_service.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/authorization_service.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/authorization_service.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/authorization_service.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/check_privileges.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_privileges.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/check_privileges.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_privileges.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/check_privileges_dynamically.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_privileges_dynamically.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/check_privileges_dynamically.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_privileges_dynamically.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/check_saved_objects_privileges.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_saved_objects_privileges.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/check_saved_objects_privileges.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/check_saved_objects_privileges.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/constants.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/constants.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/constants.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/constants.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/deprecations.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/deprecations.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/deprecations.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/deprecations.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/es_security_config.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/es_security_config.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/es_security_config.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/es_security_config.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/index.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/mode.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/mode.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/mode.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/mode.ts diff --git a/x-pack/packages/security/plugin_types_server/src/authorization/role_schema.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/role_schema.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/authorization/role_schema.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/authorization/role_schema.ts diff --git a/x-pack/packages/security/plugin_types_server/src/plugin.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/plugin.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/plugin.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/plugin.ts diff --git a/x-pack/packages/security/plugin_types_server/src/user_profile/index.ts b/x-pack/platform/packages/shared/security/plugin_types_server/src/user_profile/index.ts similarity index 100% rename from x-pack/packages/security/plugin_types_server/src/user_profile/index.ts rename to x-pack/platform/packages/shared/security/plugin_types_server/src/user_profile/index.ts diff --git a/x-pack/packages/security/plugin_types_server/tsconfig.json b/x-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json similarity index 85% rename from x-pack/packages/security/plugin_types_server/tsconfig.json rename to x-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json index 2f4ae387ac2b5..30716d60eb820 100644 --- a/x-pack/packages/security/plugin_types_server/tsconfig.json +++ b/x-pack/platform/packages/shared/security/plugin_types_server/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../../tsconfig.base.json", + "extends": "../../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types" }, diff --git a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json index af6b1bb600f11..4fd2a8578980c 100644 --- a/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json +++ b/x-pack/platform/plugins/private/telemetry_collection_xpack/schema/xpack_platform.json @@ -5647,6 +5647,394 @@ } } }, + "security": { + "properties": { + "auditLoggingEnabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if audit logging is both enabled and supported by the current license." + } + }, + "loginSelectorEnabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if the login selector UI is enabled." + } + }, + "accessAgreementEnabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if the access agreement UI is both enabled and supported by the current license." + } + }, + "authProviderCount": { + "type": "long", + "_meta": { + "description": "The number of configured auth providers (including disabled auth providers)." + } + }, + "enabledAuthProviders": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The types of enabled auth providers (such as `saml`, `basic`, `pki`, etc)." + } + } + }, + "fipsModeEnabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if Kibana is being run in FIPS mode." + } + }, + "httpAuthSchemes": { + "type": "array", + "items": { + "type": "keyword", + "_meta": { + "description": "The set of enabled http auth schemes. Used for api-based usage, and when credentials are provided via reverse-proxy." + } + } + }, + "sessionIdleTimeoutInMinutes": { + "type": "long", + "_meta": { + "description": "The global session idle timeout expiration that is configured, in minutes (0 if disabled)." + } + }, + "sessionLifespanInMinutes": { + "type": "long", + "_meta": { + "description": "The global session lifespan expiration that is configured, in minutes (0 if disabled)." + } + }, + "sessionCleanupInMinutes": { + "type": "long", + "_meta": { + "description": "The session cleanup interval that is configured, in minutes (0 if disabled)." + } + }, + "sessionConcurrentSessionsMaxSessions": { + "type": "long", + "_meta": { + "description": "The maximum number of the concurrent user sessions (0 if not configured)." + } + }, + "anonymousCredentialType": { + "type": "keyword", + "_meta": { + "description": "The credential type that is configured for the anonymous authentication provider." + } + } + } + }, + "spaces": { + "properties": { + "usesFeatureControls": { + "type": "boolean", + "_meta": { + "description": "Indicates if at least one feature is disabled in at least one space. This is a signal that space-level feature controls are in use. This does not account for role-based (security) feature controls." + } + }, + "solutions": { + "properties": { + "classic": { + "type": "long", + "_meta": { + "description": "The number of spaces which have solution set to classic." + } + }, + "es": { + "type": "long", + "_meta": { + "description": "The number of spaces which have solution set to search." + } + }, + "oblt": { + "type": "long", + "_meta": { + "description": "The number of spaces which have solution set to observability." + } + }, + "security": { + "type": "long", + "_meta": { + "description": "The number of spaces which have solution set to security." + } + }, + "unset": { + "type": "long", + "_meta": { + "description": "The number of spaces without solution set." + } + } + } + }, + "disabledFeatures": { + "properties": { + "DYNAMIC_KEY": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "stackAlerts": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "actions": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "enterpriseSearch": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "fleet": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "savedObjectsTagging": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "indexPatterns": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "discover": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "canvas": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "maps": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "siem": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "monitoring": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "graph": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "uptime": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "savedObjectsManagement": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "dev_tools": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "advancedSettings": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "infrastructure": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "visualize": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "logs": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "dashboard": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "ml": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + }, + "apm": { + "type": "long", + "_meta": { + "description": "The number of spaces which have this feature disabled." + } + } + } + }, + "available": { + "type": "boolean", + "_meta": { + "description": "Indicates if the Spaces feature is available in this installation." + } + }, + "enabled": { + "type": "boolean", + "_meta": { + "description": "Indicates if the Spaces feature is enabled in this installation." + } + }, + "count": { + "type": "long", + "_meta": { + "description": "The number of spaces in this installation." + } + }, + "apiCalls.copySavedObjects.total": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called." + } + }, + "apiCalls.copySavedObjects.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called via the Kibana client." + } + }, + "apiCalls.copySavedObjects.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called via an API consumer (e.g. curl)." + } + }, + "apiCalls.copySavedObjects.createNewCopiesEnabled.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"createNewCopies\" set to true." + } + }, + "apiCalls.copySavedObjects.createNewCopiesEnabled.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"createNewCopies\" set to false." + } + }, + "apiCalls.copySavedObjects.overwriteEnabled.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"overwrite\" set to true." + } + }, + "apiCalls.copySavedObjects.overwriteEnabled.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"overwrite\" set to false." + } + }, + "apiCalls.copySavedObjects.compatibilityModeEnabled.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"compatibilityMode\" set to true." + } + }, + "apiCalls.copySavedObjects.compatibilityModeEnabled.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Copy Saved Objects\" API has been called with \"compatibilityMode\" set to false." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.total": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.kibanaRequest.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called via the Kibana client." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.kibanaRequest.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called via an API consumer (e.g. curl)." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.createNewCopiesEnabled.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called with \"createNewCopies\" set to true." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.createNewCopiesEnabled.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called with \"createNewCopies\" set to false." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.compatibilityModeEnabled.yes": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called with \"compatibilityMode\" set to true." + } + }, + "apiCalls.resolveCopySavedObjectsErrors.compatibilityModeEnabled.no": { + "type": "long", + "_meta": { + "description": "The number of times the \"Resolve Copy Saved Objects Errors\" API has been called with \"compatibilityMode\" set to false." + } + }, + "apiCalls.disableLegacyUrlAliases.total": { + "type": "long", + "_meta": { + "description": "The number of times the \"Disable Legacy URL Aliases\" API has been called." + } + } + } + }, "task_manager": { "properties": { "ephemeral_tasks_enabled": { diff --git a/x-pack/platform/plugins/shared/cases/server/authorization/index.ts b/x-pack/platform/plugins/shared/cases/server/authorization/index.ts index 40b6c5d7101c5..1b4d7cc4bd730 100644 --- a/x-pack/platform/plugins/shared/cases/server/authorization/index.ts +++ b/x-pack/platform/plugins/shared/cases/server/authorization/index.ts @@ -59,7 +59,7 @@ const EVENT_TYPES: Record> = { }; /** - * These values need to match the respective values in this file: x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts + * These values need to match the respective values in this file: x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts * These are shared between find, get, get all, and delete/delete all * There currently isn't a use case for a user to delete one comment but not all or differentiating between get, get all, * and find operations from a privilege stand point. diff --git a/x-pack/platform/plugins/shared/cases/server/authorization/types.ts b/x-pack/platform/plugins/shared/cases/server/authorization/types.ts index 1031e2db0ec77..537071b857e6d 100644 --- a/x-pack/platform/plugins/shared/cases/server/authorization/types.ts +++ b/x-pack/platform/plugins/shared/cases/server/authorization/types.ts @@ -76,7 +76,7 @@ export interface OperationDetails { ecsType: ArrayElement; /** * The name of the operation to authorize against for the privilege check. - * These values need to match one of the operation strings defined here: x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts + * These values need to match one of the operation strings defined here: x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts * * To avoid the authorization strings getting too large, new operations should generally fit within one of the * CasesSupportedOperations. In the situation where a new one is needed we'll have to add it to the security plugin. diff --git a/x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts b/x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts index b9cd2982553e3..e8dc85fa389d2 100644 --- a/x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts +++ b/x-pack/platform/plugins/shared/cases/server/connectors/cases/utils.ts @@ -109,7 +109,7 @@ export const buildCustomFieldsForRequest = ( export const constructRequiredKibanaPrivileges = (owner: string): string[] => { /** * Kibana features privileges are defined in - * x-pack/packages/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts + * x-pack/platform/packages/private/security/authorization_core/src/privileges/feature_privilege_builder/cases.ts */ return [ `cases:${owner}/createCase`, diff --git a/x-pack/plugins/encrypted_saved_objects/README.md b/x-pack/platform/plugins/shared/encrypted_saved_objects/README.md similarity index 98% rename from x-pack/plugins/encrypted_saved_objects/README.md rename to x-pack/platform/plugins/shared/encrypted_saved_objects/README.md index 11579fb84f02f..83acff6e78a25 100644 --- a/x-pack/plugins/encrypted_saved_objects/README.md +++ b/x-pack/platform/plugins/shared/encrypted_saved_objects/README.md @@ -5,7 +5,7 @@ The purpose of this plugin is to provide a way to encrypt/decrypt attributes on the custom Saved Objects that works with security and spaces filtering. -[RFC #2: Encrypted Saved Objects Attributes](../../../rfcs/text/0002_encrypted_attributes.md). +[RFC #2: Encrypted Saved Objects Attributes](../../../../../rfcs/text/0002_encrypted_attributes.md). ## Usage @@ -256,7 +256,7 @@ Run Jest tests: Documentation: https://www.elastic.co/guide/en/kibana/current/development-tests.html#_unit_testing ``` -yarn test:jest x-pack/plugins/encrypted_saved_objects --watch +yarn test:jest x-pack/platform/plugins/shared/encrypted_saved_objects --watch ``` ### API Integration tests diff --git a/x-pack/packages/security/api_key_management/jest.config.js b/x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js similarity index 52% rename from x-pack/packages/security/api_key_management/jest.config.js rename to x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js index 1532c92e1c8e9..cdb3f1e549f42 100644 --- a/x-pack/packages/security/api_key_management/jest.config.js +++ b/x-pack/platform/plugins/shared/encrypted_saved_objects/jest.config.js @@ -6,11 +6,13 @@ */ module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/encrypted_saved_objects'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/packages/security/api_key_management', + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/encrypted_saved_objects', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/security/api_key_management/**/*.{ts,tsx}'], - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/api_key_management'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/encrypted_saved_objects/server/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/plugins/encrypted_saved_objects/kibana.jsonc b/x-pack/platform/plugins/shared/encrypted_saved_objects/kibana.jsonc similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/kibana.jsonc rename to x-pack/platform/plugins/shared/encrypted_saved_objects/kibana.jsonc diff --git a/x-pack/plugins/encrypted_saved_objects/server/config.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/config.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/config.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/config.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/config.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/config.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/config.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/config.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/create_migration.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_migration.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/create_migration.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_migration.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/create_migration.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_migration.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/create_migration.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_migration.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/create_model_version.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_model_version.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/create_model_version.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_model_version.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_model_version.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/create_model_version.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/create_model_version.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_object_type_definition.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.mocks.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.mocks.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.mocks.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.mocks.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encrypted_saved_objects_service.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_error.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_error.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_error.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_error.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_error.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_error.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_error.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_error.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.mocks.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.mocks.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.mocks.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.mocks.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/encryption_key_rotation_service.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/index.mock.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/index.mock.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/index.mock.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/index.mock.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/crypto/index.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/index.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/crypto/index.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/crypto/index.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/index.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/index.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/index.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/index.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/mocks.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/mocks.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/mocks.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/mocks.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/plugin.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/plugin.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/plugin.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/plugin.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/plugin.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/plugin.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/plugin.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/routes/index.mock.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/index.mock.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/routes/index.mock.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/index.mock.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/routes/index.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/index.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/routes/index.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/index.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/routes/key_rotation.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/key_rotation.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/routes/key_rotation.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/key_rotation.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/routes/key_rotation.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/key_rotation.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/routes/key_rotation.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/routes/key_rotation.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/get_descriptor_namespace.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/index.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/index.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/index.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/index.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/index.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/map_attributes.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/map_attributes.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/map_attributes.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/map_attributes.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.mocks.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.mocks.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.mocks.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.mocks.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.test.ts diff --git a/x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.ts b/x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.ts similarity index 100% rename from x-pack/plugins/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.ts rename to x-pack/platform/plugins/shared/encrypted_saved_objects/server/saved_objects/saved_objects_encryption_extension.ts diff --git a/x-pack/plugins/encrypted_saved_objects/tsconfig.json b/x-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json similarity index 90% rename from x-pack/plugins/encrypted_saved_objects/tsconfig.json rename to x-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json index d2115146a4a42..677d771223a6b 100644 --- a/x-pack/plugins/encrypted_saved_objects/tsconfig.json +++ b/x-pack/platform/plugins/shared/encrypted_saved_objects/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/x-pack/plugins/security/README.md b/x-pack/platform/plugins/shared/security/README.md similarity index 100% rename from x-pack/plugins/security/README.md rename to x-pack/platform/plugins/shared/security/README.md diff --git a/x-pack/plugins/security/common/constants.ts b/x-pack/platform/plugins/shared/security/common/constants.ts similarity index 100% rename from x-pack/plugins/security/common/constants.ts rename to x-pack/platform/plugins/shared/security/common/constants.ts diff --git a/x-pack/plugins/security/common/index.ts b/x-pack/platform/plugins/shared/security/common/index.ts similarity index 100% rename from x-pack/plugins/security/common/index.ts rename to x-pack/platform/plugins/shared/security/common/index.ts diff --git a/x-pack/plugins/security/common/licensing/index.mock.ts b/x-pack/platform/plugins/shared/security/common/licensing/index.mock.ts similarity index 100% rename from x-pack/plugins/security/common/licensing/index.mock.ts rename to x-pack/platform/plugins/shared/security/common/licensing/index.mock.ts diff --git a/x-pack/plugins/security/common/licensing/index.ts b/x-pack/platform/plugins/shared/security/common/licensing/index.ts similarity index 100% rename from x-pack/plugins/security/common/licensing/index.ts rename to x-pack/platform/plugins/shared/security/common/licensing/index.ts diff --git a/x-pack/plugins/security/common/licensing/license_service.test.ts b/x-pack/platform/plugins/shared/security/common/licensing/license_service.test.ts similarity index 100% rename from x-pack/plugins/security/common/licensing/license_service.test.ts rename to x-pack/platform/plugins/shared/security/common/licensing/license_service.test.ts diff --git a/x-pack/plugins/security/common/licensing/license_service.ts b/x-pack/platform/plugins/shared/security/common/licensing/license_service.ts similarity index 100% rename from x-pack/plugins/security/common/licensing/license_service.ts rename to x-pack/platform/plugins/shared/security/common/licensing/license_service.ts diff --git a/x-pack/plugins/security/common/login_state.ts b/x-pack/platform/plugins/shared/security/common/login_state.ts similarity index 100% rename from x-pack/plugins/security/common/login_state.ts rename to x-pack/platform/plugins/shared/security/common/login_state.ts diff --git a/x-pack/plugins/security/common/model/authenticated_user.mock.ts b/x-pack/platform/plugins/shared/security/common/model/authenticated_user.mock.ts similarity index 100% rename from x-pack/plugins/security/common/model/authenticated_user.mock.ts rename to x-pack/platform/plugins/shared/security/common/model/authenticated_user.mock.ts diff --git a/x-pack/plugins/security/common/model/authenticated_user.test.ts b/x-pack/platform/plugins/shared/security/common/model/authenticated_user.test.ts similarity index 100% rename from x-pack/plugins/security/common/model/authenticated_user.test.ts rename to x-pack/platform/plugins/shared/security/common/model/authenticated_user.test.ts diff --git a/x-pack/plugins/security/common/model/authenticated_user.ts b/x-pack/platform/plugins/shared/security/common/model/authenticated_user.ts similarity index 100% rename from x-pack/plugins/security/common/model/authenticated_user.ts rename to x-pack/platform/plugins/shared/security/common/model/authenticated_user.ts diff --git a/x-pack/plugins/security/common/model/authentication_provider.test.ts b/x-pack/platform/plugins/shared/security/common/model/authentication_provider.test.ts similarity index 100% rename from x-pack/plugins/security/common/model/authentication_provider.test.ts rename to x-pack/platform/plugins/shared/security/common/model/authentication_provider.test.ts diff --git a/x-pack/plugins/security/common/model/authentication_provider.ts b/x-pack/platform/plugins/shared/security/common/model/authentication_provider.ts similarity index 100% rename from x-pack/plugins/security/common/model/authentication_provider.ts rename to x-pack/platform/plugins/shared/security/common/model/authentication_provider.ts diff --git a/x-pack/plugins/security/common/model/builtin_es_privileges.ts b/x-pack/platform/plugins/shared/security/common/model/builtin_es_privileges.ts similarity index 100% rename from x-pack/plugins/security/common/model/builtin_es_privileges.ts rename to x-pack/platform/plugins/shared/security/common/model/builtin_es_privileges.ts diff --git a/x-pack/plugins/security/common/model/index.ts b/x-pack/platform/plugins/shared/security/common/model/index.ts similarity index 100% rename from x-pack/plugins/security/common/model/index.ts rename to x-pack/platform/plugins/shared/security/common/model/index.ts diff --git a/x-pack/plugins/security/common/model/role.test.ts b/x-pack/platform/plugins/shared/security/common/model/role.test.ts similarity index 100% rename from x-pack/plugins/security/common/model/role.test.ts rename to x-pack/platform/plugins/shared/security/common/model/role.test.ts diff --git a/x-pack/plugins/security/common/model/role.ts b/x-pack/platform/plugins/shared/security/common/model/role.ts similarity index 100% rename from x-pack/plugins/security/common/model/role.ts rename to x-pack/platform/plugins/shared/security/common/model/role.ts diff --git a/x-pack/plugins/security/common/model/role_mapping.ts b/x-pack/platform/plugins/shared/security/common/model/role_mapping.ts similarity index 100% rename from x-pack/plugins/security/common/model/role_mapping.ts rename to x-pack/platform/plugins/shared/security/common/model/role_mapping.ts diff --git a/x-pack/plugins/security/common/model/user.test.ts b/x-pack/platform/plugins/shared/security/common/model/user.test.ts similarity index 100% rename from x-pack/plugins/security/common/model/user.test.ts rename to x-pack/platform/plugins/shared/security/common/model/user.test.ts diff --git a/x-pack/plugins/security/common/model/user.ts b/x-pack/platform/plugins/shared/security/common/model/user.ts similarity index 100% rename from x-pack/plugins/security/common/model/user.ts rename to x-pack/platform/plugins/shared/security/common/model/user.ts diff --git a/x-pack/plugins/security/common/model/user_profile.mock.ts b/x-pack/platform/plugins/shared/security/common/model/user_profile.mock.ts similarity index 100% rename from x-pack/plugins/security/common/model/user_profile.mock.ts rename to x-pack/platform/plugins/shared/security/common/model/user_profile.mock.ts diff --git a/x-pack/plugins/security/common/model/user_profile.ts b/x-pack/platform/plugins/shared/security/common/model/user_profile.ts similarity index 100% rename from x-pack/plugins/security/common/model/user_profile.ts rename to x-pack/platform/plugins/shared/security/common/model/user_profile.ts diff --git a/x-pack/plugins/security/common/types.ts b/x-pack/platform/plugins/shared/security/common/types.ts similarity index 100% rename from x-pack/plugins/security/common/types.ts rename to x-pack/platform/plugins/shared/security/common/types.ts diff --git a/x-pack/packages/security/role_management_model/jest.config.js b/x-pack/platform/plugins/shared/security/jest.config.js similarity index 54% rename from x-pack/packages/security/role_management_model/jest.config.js rename to x-pack/platform/plugins/shared/security/jest.config.js index 4223e717dec5e..62115c6516e17 100644 --- a/x-pack/packages/security/role_management_model/jest.config.js +++ b/x-pack/platform/plugins/shared/security/jest.config.js @@ -6,11 +6,13 @@ */ module.exports = { + preset: '@kbn/test', + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/security'], coverageDirectory: - '/target/kibana-coverage/jest/x-pack/packages/security/role_management_model', + '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/security', coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/security/role_management_model/**/*.{ts,tsx}'], - preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/role_management_model'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/security/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/plugins/security/kibana.jsonc b/x-pack/platform/plugins/shared/security/kibana.jsonc similarity index 100% rename from x-pack/plugins/security/kibana.jsonc rename to x-pack/platform/plugins/shared/security/kibana.jsonc diff --git a/x-pack/plugins/security/public/account_management/account_management_app.test.tsx b/x-pack/platform/plugins/shared/security/public/account_management/account_management_app.test.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/account_management_app.test.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/account_management_app.test.tsx diff --git a/x-pack/plugins/security/public/account_management/account_management_app.tsx b/x-pack/platform/plugins/shared/security/public/account_management/account_management_app.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/account_management_app.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/account_management_app.tsx diff --git a/x-pack/plugins/security/public/account_management/account_management_page.test.tsx b/x-pack/platform/plugins/shared/security/public/account_management/account_management_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/account_management_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/account_management_page.test.tsx diff --git a/x-pack/plugins/security/public/account_management/account_management_page.tsx b/x-pack/platform/plugins/shared/security/public/account_management/account_management_page.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/account_management_page.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/account_management_page.tsx diff --git a/x-pack/plugins/security/public/account_management/index.ts b/x-pack/platform/plugins/shared/security/public/account_management/index.ts similarity index 100% rename from x-pack/plugins/security/public/account_management/index.ts rename to x-pack/platform/plugins/shared/security/public/account_management/index.ts diff --git a/x-pack/plugins/security/public/account_management/user_profile/index.ts b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/index.ts similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/index.ts rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/index.ts diff --git a/x-pack/plugins/security/public/account_management/user_profile/user_profile.test.tsx b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile.test.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/user_profile.test.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile.test.tsx diff --git a/x-pack/plugins/security/public/account_management/user_profile/user_profile.tsx b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile.tsx similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/user_profile.tsx rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile.tsx diff --git a/x-pack/plugins/security/public/account_management/user_profile/user_profile_api_client.test.ts b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile_api_client.test.ts similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/user_profile_api_client.test.ts rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile_api_client.test.ts diff --git a/x-pack/plugins/security/public/account_management/user_profile/user_profile_api_client.ts b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/user_profile_api_client.ts rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/user_profile_api_client.ts diff --git a/x-pack/plugins/security/public/account_management/user_profile/utils.ts b/x-pack/platform/plugins/shared/security/public/account_management/user_profile/utils.ts similarity index 100% rename from x-pack/plugins/security/public/account_management/user_profile/utils.ts rename to x-pack/platform/plugins/shared/security/public/account_management/user_profile/utils.ts diff --git a/x-pack/plugins/security/public/analytics/analytics_service.test.ts b/x-pack/platform/plugins/shared/security/public/analytics/analytics_service.test.ts similarity index 100% rename from x-pack/plugins/security/public/analytics/analytics_service.test.ts rename to x-pack/platform/plugins/shared/security/public/analytics/analytics_service.test.ts diff --git a/x-pack/plugins/security/public/analytics/analytics_service.ts b/x-pack/platform/plugins/shared/security/public/analytics/analytics_service.ts similarity index 100% rename from x-pack/plugins/security/public/analytics/analytics_service.ts rename to x-pack/platform/plugins/shared/security/public/analytics/analytics_service.ts diff --git a/x-pack/plugins/security/public/analytics/index.ts b/x-pack/platform/plugins/shared/security/public/analytics/index.ts similarity index 100% rename from x-pack/plugins/security/public/analytics/index.ts rename to x-pack/platform/plugins/shared/security/public/analytics/index.ts diff --git a/x-pack/plugins/security/public/analytics/register_user_context.test.ts b/x-pack/platform/plugins/shared/security/public/analytics/register_user_context.test.ts similarity index 100% rename from x-pack/plugins/security/public/analytics/register_user_context.test.ts rename to x-pack/platform/plugins/shared/security/public/analytics/register_user_context.test.ts diff --git a/x-pack/plugins/security/public/analytics/register_user_context.ts b/x-pack/platform/plugins/shared/security/public/analytics/register_user_context.ts similarity index 100% rename from x-pack/plugins/security/public/analytics/register_user_context.ts rename to x-pack/platform/plugins/shared/security/public/analytics/register_user_context.ts diff --git a/x-pack/plugins/security/public/anonymous_access/anonymous_access_service.ts b/x-pack/platform/plugins/shared/security/public/anonymous_access/anonymous_access_service.ts similarity index 100% rename from x-pack/plugins/security/public/anonymous_access/anonymous_access_service.ts rename to x-pack/platform/plugins/shared/security/public/anonymous_access/anonymous_access_service.ts diff --git a/x-pack/plugins/security/public/anonymous_access/index.ts b/x-pack/platform/plugins/shared/security/public/anonymous_access/index.ts similarity index 100% rename from x-pack/plugins/security/public/anonymous_access/index.ts rename to x-pack/platform/plugins/shared/security/public/anonymous_access/index.ts diff --git a/x-pack/plugins/security/public/authentication/access_agreement/__snapshots__/access_agreement_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/__snapshots__/access_agreement_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/__snapshots__/access_agreement_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/__snapshots__/access_agreement_page.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/access_agreement/access_agreement_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/access_agreement_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/access_agreement/access_agreement_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/access_agreement_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_app.ts diff --git a/x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.scss b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.scss similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.scss rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.scss diff --git a/x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.test.tsx diff --git a/x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/access_agreement_page.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/access_agreement_page.tsx diff --git a/x-pack/plugins/security/public/authentication/access_agreement/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/access_agreement/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/access_agreement/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/access_agreement/index.ts diff --git a/x-pack/plugins/security/public/authentication/authentication_service.ts b/x-pack/platform/plugins/shared/security/public/authentication/authentication_service.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/authentication_service.ts rename to x-pack/platform/plugins/shared/security/public/authentication/authentication_service.ts diff --git a/x-pack/plugins/security/public/authentication/capture_url/capture_url_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/capture_url/capture_url_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/capture_url/capture_url_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/capture_url/capture_url_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/capture_url/capture_url_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/capture_url/capture_url_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/capture_url/capture_url_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/capture_url/capture_url_app.ts diff --git a/x-pack/plugins/security/public/authentication/capture_url/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/capture_url/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/capture_url/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/capture_url/index.ts diff --git a/x-pack/plugins/security/public/authentication/components/authentication_state_page/__snapshots__/authentication_state_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/__snapshots__/authentication_state_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/components/authentication_state_page/__snapshots__/authentication_state_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/__snapshots__/authentication_state_page.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.scss b/x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.scss similarity index 100% rename from x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.scss rename to x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.scss diff --git a/x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.test.tsx diff --git a/x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.tsx b/x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/components/authentication_state_page/authentication_state_page.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/authentication_state_page.tsx diff --git a/x-pack/plugins/security/public/authentication/components/authentication_state_page/index.tsx b/x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/index.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/components/authentication_state_page/index.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/components/authentication_state_page/index.tsx diff --git a/x-pack/plugins/security/public/authentication/components/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/components/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/components/index.ts diff --git a/x-pack/plugins/security/public/authentication/index.mock.ts b/x-pack/platform/plugins/shared/security/public/authentication/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/authentication/index.mock.ts diff --git a/x-pack/plugins/security/public/authentication/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/index.ts diff --git a/x-pack/plugins/security/public/authentication/logged_out/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/logged_out/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logged_out/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logged_out/index.ts diff --git a/x-pack/plugins/security/public/authentication/logged_out/logged_out_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logged_out/logged_out_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/logged_out/logged_out_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logged_out/logged_out_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_app.ts diff --git a/x-pack/plugins/security/public/authentication/logged_out/logged_out_page.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/logged_out/logged_out_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_page.test.tsx diff --git a/x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx b/x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_page.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/logged_out/logged_out_page.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/logged_out/logged_out_page.tsx diff --git a/x-pack/plugins/security/public/authentication/login/__snapshots__/login_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/login/__snapshots__/login_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/login/__snapshots__/login_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/login/__snapshots__/login_page.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/login/components/disabled_login_form/__snapshots__/disabled_login_form.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/__snapshots__/disabled_login_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/disabled_login_form/__snapshots__/disabled_login_form.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/__snapshots__/disabled_login_form.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/login/components/disabled_login_form/disabled_login_form.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/disabled_login_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/disabled_login_form/disabled_login_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/disabled_login_form.test.tsx diff --git a/x-pack/plugins/security/public/authentication/login/components/disabled_login_form/disabled_login_form.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/disabled_login_form.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/disabled_login_form/disabled_login_form.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/disabled_login_form.tsx diff --git a/x-pack/plugins/security/public/authentication/login/components/disabled_login_form/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/disabled_login_form/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/disabled_login_form/index.ts diff --git a/x-pack/plugins/security/public/authentication/login/components/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/index.ts diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/__snapshots__/login_form.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/__snapshots__/login_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/__snapshots__/login_form.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/__snapshots__/login_form.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/index.ts diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/login_form.scss b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.scss similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/login_form.scss rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.scss diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/login_form.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/login_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.test.tsx diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/login_form.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/login_form.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/login_form.tsx diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/validate_login.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/validate_login.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/validate_login.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/validate_login.test.ts diff --git a/x-pack/plugins/security/public/authentication/login/components/login_form/validate_login.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/validate_login.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/components/login_form/validate_login.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/components/login_form/validate_login.ts diff --git a/x-pack/plugins/security/public/authentication/login/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/index.ts diff --git a/x-pack/plugins/security/public/authentication/login/login_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/login_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/login_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/login_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/login/login_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/login/login_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/login/login_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/login/login_app.ts diff --git a/x-pack/plugins/security/public/authentication/login/login_page.scss b/x-pack/platform/plugins/shared/security/public/authentication/login/login_page.scss similarity index 100% rename from x-pack/plugins/security/public/authentication/login/login_page.scss rename to x-pack/platform/plugins/shared/security/public/authentication/login/login_page.scss diff --git a/x-pack/plugins/security/public/authentication/login/login_page.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/login_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/login_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/login_page.test.tsx diff --git a/x-pack/plugins/security/public/authentication/login/login_page.tsx b/x-pack/platform/plugins/shared/security/public/authentication/login/login_page.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/login/login_page.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/login/login_page.tsx diff --git a/x-pack/plugins/security/public/authentication/logout/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/logout/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logout/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logout/index.ts diff --git a/x-pack/plugins/security/public/authentication/logout/logout_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/logout/logout_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logout/logout_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logout/logout_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/logout/logout_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/logout/logout_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/logout/logout_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/logout/logout_app.ts diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/__snapshots__/overwritten_session_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/__snapshots__/overwritten_session_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/__snapshots__/overwritten_session_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/__snapshots__/overwritten_session_page.test.tsx.snap diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/index.ts b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/index.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/index.ts rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/index.ts diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_app.test.ts b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_app.test.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_app.test.ts rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_app.test.ts diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_app.ts b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_app.ts similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_app.ts rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_app.ts diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.test.tsx b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_page.test.tsx diff --git a/x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx b/x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_page.tsx similarity index 100% rename from x-pack/plugins/security/public/authentication/overwritten_session/overwritten_session_page.tsx rename to x-pack/platform/plugins/shared/security/public/authentication/overwritten_session/overwritten_session_page.tsx diff --git a/x-pack/plugins/security/public/authorization/authorization_service.ts b/x-pack/platform/plugins/shared/security/public/authorization/authorization_service.ts similarity index 100% rename from x-pack/plugins/security/public/authorization/authorization_service.ts rename to x-pack/platform/plugins/shared/security/public/authorization/authorization_service.ts diff --git a/x-pack/plugins/security/public/authorization/index.ts b/x-pack/platform/plugins/shared/security/public/authorization/index.ts similarity index 100% rename from x-pack/plugins/security/public/authorization/index.ts rename to x-pack/platform/plugins/shared/security/public/authorization/index.ts diff --git a/x-pack/plugins/security/public/build_delegate_api.test.ts b/x-pack/platform/plugins/shared/security/public/build_delegate_api.test.ts similarity index 100% rename from x-pack/plugins/security/public/build_delegate_api.test.ts rename to x-pack/platform/plugins/shared/security/public/build_delegate_api.test.ts diff --git a/x-pack/plugins/security/public/build_delegate_api.ts b/x-pack/platform/plugins/shared/security/public/build_delegate_api.ts similarity index 100% rename from x-pack/plugins/security/public/build_delegate_api.ts rename to x-pack/platform/plugins/shared/security/public/build_delegate_api.ts diff --git a/x-pack/plugins/security/public/components/breadcrumb.test.tsx b/x-pack/platform/plugins/shared/security/public/components/breadcrumb.test.tsx similarity index 100% rename from x-pack/plugins/security/public/components/breadcrumb.test.tsx rename to x-pack/platform/plugins/shared/security/public/components/breadcrumb.test.tsx diff --git a/x-pack/plugins/security/public/components/breadcrumb.tsx b/x-pack/platform/plugins/shared/security/public/components/breadcrumb.tsx similarity index 100% rename from x-pack/plugins/security/public/components/breadcrumb.tsx rename to x-pack/platform/plugins/shared/security/public/components/breadcrumb.tsx diff --git a/x-pack/plugins/security/public/components/doc_link.tsx b/x-pack/platform/plugins/shared/security/public/components/doc_link.tsx similarity index 100% rename from x-pack/plugins/security/public/components/doc_link.tsx rename to x-pack/platform/plugins/shared/security/public/components/doc_link.tsx diff --git a/x-pack/plugins/security/public/components/index.ts b/x-pack/platform/plugins/shared/security/public/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/components/index.ts rename to x-pack/platform/plugins/shared/security/public/components/index.ts diff --git a/x-pack/plugins/security/public/components/security_api_clients_provider.ts b/x-pack/platform/plugins/shared/security/public/components/security_api_clients_provider.ts similarity index 100% rename from x-pack/plugins/security/public/components/security_api_clients_provider.ts rename to x-pack/platform/plugins/shared/security/public/components/security_api_clients_provider.ts diff --git a/x-pack/plugins/security/public/components/use_badge.test.tsx b/x-pack/platform/plugins/shared/security/public/components/use_badge.test.tsx similarity index 100% rename from x-pack/plugins/security/public/components/use_badge.test.tsx rename to x-pack/platform/plugins/shared/security/public/components/use_badge.test.tsx diff --git a/x-pack/plugins/security/public/components/use_badge.ts b/x-pack/platform/plugins/shared/security/public/components/use_badge.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_badge.ts rename to x-pack/platform/plugins/shared/security/public/components/use_badge.ts diff --git a/x-pack/plugins/security/public/components/use_capabilities.test.tsx b/x-pack/platform/plugins/shared/security/public/components/use_capabilities.test.tsx similarity index 100% rename from x-pack/plugins/security/public/components/use_capabilities.test.tsx rename to x-pack/platform/plugins/shared/security/public/components/use_capabilities.test.tsx diff --git a/x-pack/plugins/security/public/components/use_capabilities.ts b/x-pack/platform/plugins/shared/security/public/components/use_capabilities.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_capabilities.ts rename to x-pack/platform/plugins/shared/security/public/components/use_capabilities.ts diff --git a/x-pack/plugins/security/public/components/use_current_user.ts b/x-pack/platform/plugins/shared/security/public/components/use_current_user.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_current_user.ts rename to x-pack/platform/plugins/shared/security/public/components/use_current_user.ts diff --git a/x-pack/plugins/security/public/components/use_form.ts b/x-pack/platform/plugins/shared/security/public/components/use_form.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_form.ts rename to x-pack/platform/plugins/shared/security/public/components/use_form.ts diff --git a/x-pack/plugins/security/public/components/use_html_id.ts b/x-pack/platform/plugins/shared/security/public/components/use_html_id.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_html_id.ts rename to x-pack/platform/plugins/shared/security/public/components/use_html_id.ts diff --git a/x-pack/plugins/security/public/components/use_initial_focus.ts b/x-pack/platform/plugins/shared/security/public/components/use_initial_focus.ts similarity index 100% rename from x-pack/plugins/security/public/components/use_initial_focus.ts rename to x-pack/platform/plugins/shared/security/public/components/use_initial_focus.ts diff --git a/x-pack/plugins/security/public/config.ts b/x-pack/platform/plugins/shared/security/public/config.ts similarity index 100% rename from x-pack/plugins/security/public/config.ts rename to x-pack/platform/plugins/shared/security/public/config.ts diff --git a/x-pack/plugins/security/public/index.ts b/x-pack/platform/plugins/shared/security/public/index.ts similarity index 100% rename from x-pack/plugins/security/public/index.ts rename to x-pack/platform/plugins/shared/security/public/index.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_empty_prompt.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.test.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_grid_page.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_table.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_table.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/api_keys_table.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/api_keys_table.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/index.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/index.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/index.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/invalidate_provider/index.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/invalidate_provider/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/invalidate_provider/index.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/invalidate_provider/index.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/invalidate_provider/invalidate_provider.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/invalidate_provider/invalidate_provider.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/invalidate_provider/invalidate_provider.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/invalidate_provider/invalidate_provider.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/not_enabled/index.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/not_enabled/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/not_enabled/index.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/not_enabled/index.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/not_enabled/not_enabled.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/not_enabled/not_enabled.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/not_enabled/not_enabled.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/not_enabled/not_enabled.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/permission_denied/index.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/permission_denied/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/permission_denied/index.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/permission_denied/index.ts diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_grid/permission_denied/permission_denied.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/permission_denied/permission_denied.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_grid/permission_denied/permission_denied.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_grid/permission_denied/permission_denied.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_management_app.test.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_management_app.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_management_app.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_management_app.test.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/api_keys_management_app.tsx b/x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_management_app.tsx similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/api_keys_management_app.tsx rename to x-pack/platform/plugins/shared/security/public/management/api_keys/api_keys_management_app.tsx diff --git a/x-pack/plugins/security/public/management/api_keys/index.mock.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/index.mock.ts diff --git a/x-pack/plugins/security/public/management/api_keys/index.ts b/x-pack/platform/plugins/shared/security/public/management/api_keys/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/api_keys/index.ts rename to x-pack/platform/plugins/shared/security/public/management/api_keys/index.ts diff --git a/x-pack/plugins/security/public/management/badges/deprecated_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/deprecated_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/deprecated_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/deprecated_badge.tsx diff --git a/x-pack/plugins/security/public/management/badges/disabled_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/disabled_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/disabled_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/disabled_badge.tsx diff --git a/x-pack/plugins/security/public/management/badges/enabled_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/enabled_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/enabled_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/enabled_badge.tsx diff --git a/x-pack/plugins/security/public/management/badges/index.ts b/x-pack/platform/plugins/shared/security/public/management/badges/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/badges/index.ts rename to x-pack/platform/plugins/shared/security/public/management/badges/index.ts diff --git a/x-pack/plugins/security/public/management/badges/optional_tooltip.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/optional_tooltip.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/optional_tooltip.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/optional_tooltip.tsx diff --git a/x-pack/plugins/security/public/management/badges/readonly_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/readonly_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/readonly_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/readonly_badge.tsx diff --git a/x-pack/plugins/security/public/management/badges/reserved_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/badges/reserved_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/badges/reserved_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/badges/reserved_badge.tsx diff --git a/x-pack/plugins/security/public/management/index.ts b/x-pack/platform/plugins/shared/security/public/management/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/index.ts rename to x-pack/platform/plugins/shared/security/public/management/index.ts diff --git a/x-pack/plugins/security/public/management/management_service.test.ts b/x-pack/platform/plugins/shared/security/public/management/management_service.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/management_service.test.ts rename to x-pack/platform/plugins/shared/security/public/management/management_service.test.ts diff --git a/x-pack/plugins/security/public/management/management_service.ts b/x-pack/platform/plugins/shared/security/public/management/management_service.ts similarity index 100% rename from x-pack/plugins/security/public/management/management_service.ts rename to x-pack/platform/plugins/shared/security/public/management/management_service.ts diff --git a/x-pack/plugins/security/public/management/management_urls.ts b/x-pack/platform/plugins/shared/security/public/management/management_urls.ts similarity index 100% rename from x-pack/plugins/security/public/management/management_urls.ts rename to x-pack/platform/plugins/shared/security/public/management/management_urls.ts diff --git a/x-pack/plugins/security/public/management/role_combo_box/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_combo_box/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_combo_box/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_combo_box/index.ts diff --git a/x-pack/plugins/security/public/management/role_combo_box/role_combo_box.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_combo_box/role_combo_box.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_combo_box/role_combo_box.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_combo_box/role_combo_box.test.tsx diff --git a/x-pack/plugins/security/public/management/role_combo_box/role_combo_box.tsx b/x-pack/platform/plugins/shared/security/public/management/role_combo_box/role_combo_box.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_combo_box/role_combo_box.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_combo_box/role_combo_box.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/delete_provider/delete_provider.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/delete_provider.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/delete_provider/delete_provider.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/delete_provider.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/delete_provider/delete_provider.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/delete_provider.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/delete_provider/delete_provider.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/delete_provider.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/delete_provider/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/delete_provider/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/delete_provider/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/components/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/components/no_compatible_realms/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/no_compatible_realms/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/no_compatible_realms/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/no_compatible_realms/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/components/no_compatible_realms/no_compatible_realms.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/no_compatible_realms/no_compatible_realms.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/no_compatible_realms/no_compatible_realms.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/no_compatible_realms/no_compatible_realms.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/permission_denied/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/permission_denied/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/permission_denied/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/permission_denied/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/components/permission_denied/permission_denied.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/permission_denied/permission_denied.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/permission_denied/permission_denied.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/permission_denied/permission_denied.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/section_loading/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/section_loading/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/components/section_loading/section_loading.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/section_loading.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/section_loading/section_loading.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/section_loading.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/components/section_loading/section_loading.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/section_loading.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/components/section_loading/section_loading.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/components/section_loading/section_loading.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/edit_role_mapping_page.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/mapping_info_panel/mapping_info_panel.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/add_role_template_button.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/index.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/index.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/index.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/index.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_selector.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_editor.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_type_select.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_type_select.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_type_select.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/role_selector/role_template_type_select.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/add_rule_button.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/field_rule_editor.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/index.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/index.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/index.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/index.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/json_rule_editor.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_editor_panel.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.scss b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.scss similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.scss rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.scss diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_editor.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_title.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_title.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_title.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/rule_group_title.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/rule_editor_panel/visual_rule_editor.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/is_rule_group.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/is_rule_group.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/is_rule_group.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/is_rule_group.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_constants.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_constants.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_constants.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_constants.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_mapping_validation.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/edit_role_mapping/services/role_template_type.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/index.mock.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/index.mock.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/__snapshots__/rule_builder.test.ts.snap b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/__snapshots__/rule_builder.test.ts.snap similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/__snapshots__/rule_builder.test.ts.snap rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/__snapshots__/rule_builder.test.ts.snap diff --git a/x-pack/plugins/security/public/management/role_mappings/model/all_rule.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/all_rule.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/all_rule.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/all_rule.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/all_rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/all_rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/all_rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/all_rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/any_rule.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/any_rule.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/any_rule.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/any_rule.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/any_rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/any_rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/any_rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/any_rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/except_all_rule.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_all_rule.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/except_all_rule.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_all_rule.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/except_all_rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_all_rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/except_all_rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_all_rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/except_any_rule.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_any_rule.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/except_any_rule.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_any_rule.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/except_any_rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_any_rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/except_any_rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/except_any_rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/field_rule.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/field_rule.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/field_rule.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/field_rule.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/field_rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/field_rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/field_rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/field_rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/rule.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/rule.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/rule_builder.test.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/rule_builder.test.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder.test.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/rule_builder.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/rule_builder.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/rule_builder_error.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder_error.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/rule_builder_error.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_builder_error.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/model/rule_group.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_group.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/model/rule_group.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/model/rule_group.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_api_client.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/create_role_mapping_button.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/create_role_mapping_button/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/empty_prompt/empty_prompt.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/empty_prompt/empty_prompt.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/empty_prompt/empty_prompt.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/empty_prompt/empty_prompt.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/empty_prompt/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/empty_prompt/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/empty_prompt/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/empty_prompt/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/index.ts diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_grid/role_mappings_grid_page.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_management_app.test.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_management_app.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_management_app.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_management_app.test.tsx diff --git a/x-pack/plugins/security/public/management/role_mappings/role_mappings_management_app.tsx b/x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_management_app.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_mappings/role_mappings_management_app.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_mappings/role_mappings_management_app.tsx diff --git a/x-pack/plugins/security/public/management/role_table_display/index.ts b/x-pack/platform/plugins/shared/security/public/management/role_table_display/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/role_table_display/index.ts rename to x-pack/platform/plugins/shared/security/public/management/role_table_display/index.ts diff --git a/x-pack/plugins/security/public/management/role_table_display/role_table_display.tsx b/x-pack/platform/plugins/shared/security/public/management/role_table_display/role_table_display.tsx similarity index 100% rename from x-pack/plugins/security/public/management/role_table_display/role_table_display.tsx rename to x-pack/platform/plugins/shared/security/public/management/role_table_display/role_table_display.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/__snapshots__/validate_role.test.ts.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/__snapshots__/validate_role.test.ts.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/__snapshots__/validate_role.test.ts.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/__snapshots__/validate_role.test.ts.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/__snapshots__/collapsible_panel.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/__snapshots__/collapsible_panel.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/__snapshots__/collapsible_panel.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/__snapshots__/collapsible_panel.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.scss b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.scss similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.scss rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.scss diff --git a/x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/collapsible_panel.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/collapsible_panel/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/collapsible_panel/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/delete_role_button.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/delete_role_button.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/delete_role_button.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/delete_role_button.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/delete_role_button.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/delete_role_button.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/delete_role_button.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/delete_role_button.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/edit_role_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/edit_role_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/edit_role_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/edit_role_page.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/edit_role_page.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/edit_role_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/edit_role_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/edit_role_page.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/cluster_privileges.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/elasticsearch_privileges.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privilege_form.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privilege_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privilege_form.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privilege_form.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/index_privileges.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges_form.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges_form.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges_form.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_cluster_privileges_form.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_clusters_combo_box.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_clusters_combo_box.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_clusters_combo_box.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/__snapshots__/remote_clusters_combo_box.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/cluster_privileges.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/cluster_privileges.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/cluster_privileges.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/cluster_privileges.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/cluster_privileges.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/cluster_privileges.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/cluster_privileges.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/cluster_privileges.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/elasticsearch_privileges.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privilege_form.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privilege_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privilege_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privilege_form.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privilege_form.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privilege_form.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privilege_form.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privilege_form.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privileges.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privileges.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privileges.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privileges.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privileges.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privileges.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/index_privileges.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/index_privileges.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_cluster_privileges_form.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/es/remote_clusters_combo_box.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/__snapshots__/kibana_privileges_region.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/__snapshots__/kibana_privileges_region.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/__snapshots__/kibana_privileges_region.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/__snapshots__/kibana_privileges_region.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/kibana_privileges_region.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/__fixtures__/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/__fixtures__/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/__fixtures__/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/__fixtures__/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.test.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.test.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.test.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_calculator.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_expanded_row.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_expanded_row.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_expanded_row.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_expanded_row.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/privilege_summary_table.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/privilege_summary/space_column_header.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/__snapshots__/simple_privilege_section.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/__snapshots__/simple_privilege_section.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/__snapshots__/simple_privilege_section.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/__snapshots__/simple_privilege_section.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/privilege_selector.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/privilege_selector.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/privilege_selector.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/privilege_selector.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/simple_privilege_section.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/unsupported_space_privileges_warning.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/unsupported_space_privileges_warning.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/unsupported_space_privileges_warning.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/simple_privilege_section/unsupported_space_privileges_warning.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/__snapshots__/space_aware_privilege_section.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/__snapshots__/space_aware_privilege_section.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/__snapshots__/space_aware_privilege_section.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/__snapshots__/space_aware_privilege_section.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_display.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_form.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.scss b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.scss similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.scss rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.scss diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/privilege_space_table.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_aware_privilege_section.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_selector.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_selector.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_selector.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/space_aware_privilege_section/space_selector.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/transform_error_section.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/transform_error_section.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/transform_error_section.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/privileges/kibana/transform_error_section/transform_error_section.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/reserved_role_badge.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/reserved_role_badge.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/reserved_role_badge.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/reserved_role_badge.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/reserved_role_badge.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/reserved_role_badge.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/reserved_role_badge.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/reserved_role_badge.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/index.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.scss b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.scss similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.scss rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.scss diff --git a/x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/spaces_popover_list/spaces_popover_list.tsx diff --git a/x-pack/plugins/security/public/management/roles/edit_role/validate_role.test.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/validate_role.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/validate_role.test.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/validate_role.test.ts diff --git a/x-pack/plugins/security/public/management/roles/edit_role/validate_role.ts b/x-pack/platform/plugins/shared/security/public/management/roles/edit_role/validate_role.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/edit_role/validate_role.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/edit_role/validate_role.ts diff --git a/x-pack/plugins/security/public/management/roles/index.mock.ts b/x-pack/platform/plugins/shared/security/public/management/roles/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/index.mock.ts diff --git a/x-pack/plugins/security/public/management/roles/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/index.ts diff --git a/x-pack/plugins/security/public/management/roles/indices_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/indices_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/roles/indices_api_client.test.ts b/x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/indices_api_client.test.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.test.ts diff --git a/x-pack/plugins/security/public/management/roles/indices_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/indices_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/indices_api_client.ts diff --git a/x-pack/plugins/security/public/management/roles/privileges_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/roles/privileges_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/privileges_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/privileges_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/roles/privileges_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/roles/privileges_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/privileges_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/privileges_api_client.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_api_client.test.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_api_client.test.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.test.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_api_client.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/__snapshots__/roles_grid_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/__snapshots__/roles_grid_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/__snapshots__/roles_grid_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/__snapshots__/roles_grid_page.test.tsx.snap diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/confirm_delete/confirm_delete.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/confirm_delete/confirm_delete.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/confirm_delete/confirm_delete.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/confirm_delete/confirm_delete.tsx diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/confirm_delete/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/confirm_delete/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/confirm_delete/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/confirm_delete/index.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/index.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/permission_denied/index.ts b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/permission_denied/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/permission_denied/index.ts rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/permission_denied/index.ts diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/permission_denied/permission_denied.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/permission_denied/permission_denied.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/permission_denied/permission_denied.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/permission_denied/permission_denied.tsx diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/roles_grid_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/roles_grid_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/roles_grid_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/roles_grid_page.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/roles_grid/roles_grid_page.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/roles_grid_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_grid/roles_grid_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_grid/roles_grid_page.tsx diff --git a/x-pack/plugins/security/public/management/roles/roles_management_app.test.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_management_app.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_management_app.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_management_app.test.tsx diff --git a/x-pack/plugins/security/public/management/roles/roles_management_app.tsx b/x-pack/platform/plugins/shared/security/public/management/roles/roles_management_app.tsx similarity index 100% rename from x-pack/plugins/security/public/management/roles/roles_management_app.tsx rename to x-pack/platform/plugins/shared/security/public/management/roles/roles_management_app.tsx diff --git a/x-pack/plugins/security/public/management/security_features/index.ts b/x-pack/platform/plugins/shared/security/public/management/security_features/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/security_features/index.ts rename to x-pack/platform/plugins/shared/security/public/management/security_features/index.ts diff --git a/x-pack/plugins/security/public/management/security_features/security_features_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/security_features/security_features_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/security_features/security_features_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/security_features/security_features_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/security_features/security_features_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/security_features/security_features_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/security_features/security_features_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/security_features/security_features_api_client.ts diff --git a/x-pack/plugins/security/public/management/uri_utils.test.ts b/x-pack/platform/plugins/shared/security/public/management/uri_utils.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/uri_utils.test.ts rename to x-pack/platform/plugins/shared/security/public/management/uri_utils.test.ts diff --git a/x-pack/plugins/security/public/management/url_utils.ts b/x-pack/platform/plugins/shared/security/public/management/url_utils.ts similarity index 100% rename from x-pack/plugins/security/public/management/url_utils.ts rename to x-pack/platform/plugins/shared/security/public/management/url_utils.ts diff --git a/x-pack/plugins/security/public/management/users/components/change_password_form/change_password_form.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/change_password_form.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/components/change_password_form/change_password_form.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/change_password_form.test.tsx diff --git a/x-pack/plugins/security/public/management/users/components/change_password_form/change_password_form.tsx b/x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/change_password_form.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/components/change_password_form/change_password_form.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/change_password_form.tsx diff --git a/x-pack/plugins/security/public/management/users/components/change_password_form/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/components/change_password_form/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/components/change_password_form/index.ts diff --git a/x-pack/plugins/security/public/management/users/components/confirm_delete_users/confirm_delete_users.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/confirm_delete_users.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/components/confirm_delete_users/confirm_delete_users.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/confirm_delete_users.test.tsx diff --git a/x-pack/plugins/security/public/management/users/components/confirm_delete_users/confirm_delete_users.tsx b/x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/confirm_delete_users.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/components/confirm_delete_users/confirm_delete_users.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/confirm_delete_users.tsx diff --git a/x-pack/plugins/security/public/management/users/components/confirm_delete_users/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/components/confirm_delete_users/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/components/confirm_delete_users/index.ts diff --git a/x-pack/plugins/security/public/management/users/components/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/components/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/components/index.ts diff --git a/x-pack/plugins/security/public/management/users/edit_user/change_password_modal.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/change_password_modal.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/change_password_modal.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/change_password_modal.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/change_password_model.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/change_password_model.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/change_password_model.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/change_password_model.test.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/confirm_delete_users.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_delete_users.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/confirm_delete_users.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_delete_users.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/confirm_disable_users.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_disable_users.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/confirm_disable_users.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_disable_users.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/confirm_enable_users.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_enable_users.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/confirm_enable_users.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/confirm_enable_users.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/create_user_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/create_user_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/create_user_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/create_user_page.test.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/create_user_page.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/create_user_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/create_user_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/create_user_page.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/edit_user_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/edit_user_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/edit_user_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/edit_user_page.test.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/edit_user_page.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/edit_user_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/edit_user_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/edit_user_page.tsx diff --git a/x-pack/plugins/security/public/management/users/edit_user/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/index.ts diff --git a/x-pack/plugins/security/public/management/users/edit_user/user_form.tsx b/x-pack/platform/plugins/shared/security/public/management/users/edit_user/user_form.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/edit_user/user_form.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/edit_user/user_form.tsx diff --git a/x-pack/plugins/security/public/management/users/index.mock.ts b/x-pack/platform/plugins/shared/security/public/management/users/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/users/index.mock.ts diff --git a/x-pack/plugins/security/public/management/users/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/index.ts diff --git a/x-pack/plugins/security/public/management/users/user_api_client.mock.ts b/x-pack/platform/plugins/shared/security/public/management/users/user_api_client.mock.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/user_api_client.mock.ts rename to x-pack/platform/plugins/shared/security/public/management/users/user_api_client.mock.ts diff --git a/x-pack/plugins/security/public/management/users/user_api_client.ts b/x-pack/platform/plugins/shared/security/public/management/users/user_api_client.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/user_api_client.ts rename to x-pack/platform/plugins/shared/security/public/management/users/user_api_client.ts diff --git a/x-pack/plugins/security/public/management/users/user_utils.test.ts b/x-pack/platform/plugins/shared/security/public/management/users/user_utils.test.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/user_utils.test.ts rename to x-pack/platform/plugins/shared/security/public/management/users/user_utils.test.ts diff --git a/x-pack/plugins/security/public/management/users/user_utils.ts b/x-pack/platform/plugins/shared/security/public/management/users/user_utils.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/user_utils.ts rename to x-pack/platform/plugins/shared/security/public/management/users/user_utils.ts diff --git a/x-pack/plugins/security/public/management/users/users_grid/index.ts b/x-pack/platform/plugins/shared/security/public/management/users/users_grid/index.ts similarity index 100% rename from x-pack/plugins/security/public/management/users/users_grid/index.ts rename to x-pack/platform/plugins/shared/security/public/management/users/users_grid/index.ts diff --git a/x-pack/plugins/security/public/management/users/users_grid/users_grid_page.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/users_grid/users_grid_page.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/users_grid/users_grid_page.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/users_grid/users_grid_page.test.tsx diff --git a/x-pack/plugins/security/public/management/users/users_grid/users_grid_page.tsx b/x-pack/platform/plugins/shared/security/public/management/users/users_grid/users_grid_page.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/users_grid/users_grid_page.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/users_grid/users_grid_page.tsx diff --git a/x-pack/plugins/security/public/management/users/users_management_app.test.tsx b/x-pack/platform/plugins/shared/security/public/management/users/users_management_app.test.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/users_management_app.test.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/users_management_app.test.tsx diff --git a/x-pack/plugins/security/public/management/users/users_management_app.tsx b/x-pack/platform/plugins/shared/security/public/management/users/users_management_app.tsx similarity index 100% rename from x-pack/plugins/security/public/management/users/users_management_app.tsx rename to x-pack/platform/plugins/shared/security/public/management/users/users_management_app.tsx diff --git a/x-pack/plugins/security/public/mocks.ts b/x-pack/platform/plugins/shared/security/public/mocks.ts similarity index 100% rename from x-pack/plugins/security/public/mocks.ts rename to x-pack/platform/plugins/shared/security/public/mocks.ts diff --git a/x-pack/plugins/security/public/nav_control/index.mock.ts b/x-pack/platform/plugins/shared/security/public/nav_control/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/nav_control/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/nav_control/index.mock.ts diff --git a/x-pack/plugins/security/public/nav_control/index.ts b/x-pack/platform/plugins/shared/security/public/nav_control/index.ts similarity index 100% rename from x-pack/plugins/security/public/nav_control/index.ts rename to x-pack/platform/plugins/shared/security/public/nav_control/index.ts diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx b/x-pack/platform/plugins/shared/security/public/nav_control/nav_control_component.test.tsx similarity index 100% rename from x-pack/plugins/security/public/nav_control/nav_control_component.test.tsx rename to x-pack/platform/plugins/shared/security/public/nav_control/nav_control_component.test.tsx diff --git a/x-pack/plugins/security/public/nav_control/nav_control_component.tsx b/x-pack/platform/plugins/shared/security/public/nav_control/nav_control_component.tsx similarity index 100% rename from x-pack/plugins/security/public/nav_control/nav_control_component.tsx rename to x-pack/platform/plugins/shared/security/public/nav_control/nav_control_component.tsx diff --git a/x-pack/plugins/security/public/nav_control/nav_control_service.test.ts b/x-pack/platform/plugins/shared/security/public/nav_control/nav_control_service.test.ts similarity index 100% rename from x-pack/plugins/security/public/nav_control/nav_control_service.test.ts rename to x-pack/platform/plugins/shared/security/public/nav_control/nav_control_service.test.ts diff --git a/x-pack/plugins/security/public/nav_control/nav_control_service.tsx b/x-pack/platform/plugins/shared/security/public/nav_control/nav_control_service.tsx similarity index 100% rename from x-pack/plugins/security/public/nav_control/nav_control_service.tsx rename to x-pack/platform/plugins/shared/security/public/nav_control/nav_control_service.tsx diff --git a/x-pack/plugins/security/public/plugin.test.tsx b/x-pack/platform/plugins/shared/security/public/plugin.test.tsx similarity index 100% rename from x-pack/plugins/security/public/plugin.test.tsx rename to x-pack/platform/plugins/shared/security/public/plugin.test.tsx diff --git a/x-pack/plugins/security/public/plugin.tsx b/x-pack/platform/plugins/shared/security/public/plugin.tsx similarity index 100% rename from x-pack/plugins/security/public/plugin.tsx rename to x-pack/platform/plugins/shared/security/public/plugin.tsx diff --git a/x-pack/plugins/security/public/security_checkup/components/index.ts b/x-pack/platform/plugins/shared/security/public/security_checkup/components/index.ts similarity index 100% rename from x-pack/plugins/security/public/security_checkup/components/index.ts rename to x-pack/platform/plugins/shared/security/public/security_checkup/components/index.ts diff --git a/x-pack/plugins/security/public/security_checkup/components/insecure_cluster_alert.tsx b/x-pack/platform/plugins/shared/security/public/security_checkup/components/insecure_cluster_alert.tsx similarity index 100% rename from x-pack/plugins/security/public/security_checkup/components/insecure_cluster_alert.tsx rename to x-pack/platform/plugins/shared/security/public/security_checkup/components/insecure_cluster_alert.tsx diff --git a/x-pack/plugins/security/public/security_checkup/index.ts b/x-pack/platform/plugins/shared/security/public/security_checkup/index.ts similarity index 100% rename from x-pack/plugins/security/public/security_checkup/index.ts rename to x-pack/platform/plugins/shared/security/public/security_checkup/index.ts diff --git a/x-pack/plugins/security/public/security_checkup/security_checkup_service.test.ts b/x-pack/platform/plugins/shared/security/public/security_checkup/security_checkup_service.test.ts similarity index 100% rename from x-pack/plugins/security/public/security_checkup/security_checkup_service.test.ts rename to x-pack/platform/plugins/shared/security/public/security_checkup/security_checkup_service.test.ts diff --git a/x-pack/plugins/security/public/security_checkup/security_checkup_service.tsx b/x-pack/platform/plugins/shared/security/public/security_checkup/security_checkup_service.tsx similarity index 100% rename from x-pack/plugins/security/public/security_checkup/security_checkup_service.tsx rename to x-pack/platform/plugins/shared/security/public/security_checkup/security_checkup_service.tsx diff --git a/x-pack/plugins/security/public/session/index.ts b/x-pack/platform/plugins/shared/security/public/session/index.ts similarity index 100% rename from x-pack/plugins/security/public/session/index.ts rename to x-pack/platform/plugins/shared/security/public/session/index.ts diff --git a/x-pack/plugins/security/public/session/session_expiration_toast.test.tsx b/x-pack/platform/plugins/shared/security/public/session/session_expiration_toast.test.tsx similarity index 100% rename from x-pack/plugins/security/public/session/session_expiration_toast.test.tsx rename to x-pack/platform/plugins/shared/security/public/session/session_expiration_toast.test.tsx diff --git a/x-pack/plugins/security/public/session/session_expiration_toast.tsx b/x-pack/platform/plugins/shared/security/public/session/session_expiration_toast.tsx similarity index 100% rename from x-pack/plugins/security/public/session/session_expiration_toast.tsx rename to x-pack/platform/plugins/shared/security/public/session/session_expiration_toast.tsx diff --git a/x-pack/plugins/security/public/session/session_expired.mock.ts b/x-pack/platform/plugins/shared/security/public/session/session_expired.mock.ts similarity index 100% rename from x-pack/plugins/security/public/session/session_expired.mock.ts rename to x-pack/platform/plugins/shared/security/public/session/session_expired.mock.ts diff --git a/x-pack/plugins/security/public/session/session_expired.test.ts b/x-pack/platform/plugins/shared/security/public/session/session_expired.test.ts similarity index 100% rename from x-pack/plugins/security/public/session/session_expired.test.ts rename to x-pack/platform/plugins/shared/security/public/session/session_expired.test.ts diff --git a/x-pack/plugins/security/public/session/session_expired.ts b/x-pack/platform/plugins/shared/security/public/session/session_expired.ts similarity index 100% rename from x-pack/plugins/security/public/session/session_expired.ts rename to x-pack/platform/plugins/shared/security/public/session/session_expired.ts diff --git a/x-pack/plugins/security/public/session/session_timeout.test.ts b/x-pack/platform/plugins/shared/security/public/session/session_timeout.test.ts similarity index 100% rename from x-pack/plugins/security/public/session/session_timeout.test.ts rename to x-pack/platform/plugins/shared/security/public/session/session_timeout.test.ts diff --git a/x-pack/plugins/security/public/session/session_timeout.ts b/x-pack/platform/plugins/shared/security/public/session/session_timeout.ts similarity index 100% rename from x-pack/plugins/security/public/session/session_timeout.ts rename to x-pack/platform/plugins/shared/security/public/session/session_timeout.ts diff --git a/x-pack/plugins/security/public/session/unauthorized_response_http_interceptor.test.ts b/x-pack/platform/plugins/shared/security/public/session/unauthorized_response_http_interceptor.test.ts similarity index 100% rename from x-pack/plugins/security/public/session/unauthorized_response_http_interceptor.test.ts rename to x-pack/platform/plugins/shared/security/public/session/unauthorized_response_http_interceptor.test.ts diff --git a/x-pack/plugins/security/public/session/unauthorized_response_http_interceptor.ts b/x-pack/platform/plugins/shared/security/public/session/unauthorized_response_http_interceptor.ts similarity index 100% rename from x-pack/plugins/security/public/session/unauthorized_response_http_interceptor.ts rename to x-pack/platform/plugins/shared/security/public/session/unauthorized_response_http_interceptor.ts diff --git a/x-pack/plugins/security/public/suspense_error_boundary/index.ts b/x-pack/platform/plugins/shared/security/public/suspense_error_boundary/index.ts similarity index 100% rename from x-pack/plugins/security/public/suspense_error_boundary/index.ts rename to x-pack/platform/plugins/shared/security/public/suspense_error_boundary/index.ts diff --git a/x-pack/plugins/security/public/suspense_error_boundary/suspense_error_boundary.tsx b/x-pack/platform/plugins/shared/security/public/suspense_error_boundary/suspense_error_boundary.tsx similarity index 100% rename from x-pack/plugins/security/public/suspense_error_boundary/suspense_error_boundary.tsx rename to x-pack/platform/plugins/shared/security/public/suspense_error_boundary/suspense_error_boundary.tsx diff --git a/x-pack/plugins/security/public/ui_api/change_password/change_password.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/change_password/change_password.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/change_password/change_password.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/change_password/change_password.tsx diff --git a/x-pack/plugins/security/public/ui_api/change_password/change_password_async.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/change_password/change_password_async.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/change_password/change_password_async.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/change_password/change_password_async.tsx diff --git a/x-pack/plugins/security/public/ui_api/change_password/index.ts b/x-pack/platform/plugins/shared/security/public/ui_api/change_password/index.ts similarity index 100% rename from x-pack/plugins/security/public/ui_api/change_password/index.ts rename to x-pack/platform/plugins/shared/security/public/ui_api/change_password/index.ts diff --git a/x-pack/plugins/security/public/ui_api/components.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/components.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/components.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/components.tsx diff --git a/x-pack/plugins/security/public/ui_api/index.mock.ts b/x-pack/platform/plugins/shared/security/public/ui_api/index.mock.ts similarity index 100% rename from x-pack/plugins/security/public/ui_api/index.mock.ts rename to x-pack/platform/plugins/shared/security/public/ui_api/index.mock.ts diff --git a/x-pack/plugins/security/public/ui_api/index.ts b/x-pack/platform/plugins/shared/security/public/ui_api/index.ts similarity index 100% rename from x-pack/plugins/security/public/ui_api/index.ts rename to x-pack/platform/plugins/shared/security/public/ui_api/index.ts diff --git a/x-pack/plugins/security/public/ui_api/lazy_wrapper.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/lazy_wrapper.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/lazy_wrapper.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/lazy_wrapper.tsx diff --git a/x-pack/plugins/security/public/ui_api/personal_info/index.ts b/x-pack/platform/plugins/shared/security/public/ui_api/personal_info/index.ts similarity index 100% rename from x-pack/plugins/security/public/ui_api/personal_info/index.ts rename to x-pack/platform/plugins/shared/security/public/ui_api/personal_info/index.ts diff --git a/x-pack/plugins/security/public/ui_api/personal_info/personal_info.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/personal_info/personal_info.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/personal_info/personal_info.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/personal_info/personal_info.tsx diff --git a/x-pack/plugins/security/public/ui_api/personal_info/personal_info_async.tsx b/x-pack/platform/plugins/shared/security/public/ui_api/personal_info/personal_info_async.tsx similarity index 100% rename from x-pack/plugins/security/public/ui_api/personal_info/personal_info_async.tsx rename to x-pack/platform/plugins/shared/security/public/ui_api/personal_info/personal_info_async.tsx diff --git a/x-pack/plugins/security/server/__snapshots__/prompt_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/server/__snapshots__/prompt_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/server/__snapshots__/prompt_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/server/__snapshots__/prompt_page.test.tsx.snap diff --git a/x-pack/plugins/security/server/analytics/analytics_service.mock.ts b/x-pack/platform/plugins/shared/security/server/analytics/analytics_service.mock.ts similarity index 100% rename from x-pack/plugins/security/server/analytics/analytics_service.mock.ts rename to x-pack/platform/plugins/shared/security/server/analytics/analytics_service.mock.ts diff --git a/x-pack/plugins/security/server/analytics/analytics_service.test.ts b/x-pack/platform/plugins/shared/security/server/analytics/analytics_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/analytics/analytics_service.test.ts rename to x-pack/platform/plugins/shared/security/server/analytics/analytics_service.test.ts diff --git a/x-pack/plugins/security/server/analytics/analytics_service.ts b/x-pack/platform/plugins/shared/security/server/analytics/analytics_service.ts similarity index 100% rename from x-pack/plugins/security/server/analytics/analytics_service.ts rename to x-pack/platform/plugins/shared/security/server/analytics/analytics_service.ts diff --git a/x-pack/plugins/security/server/analytics/index.ts b/x-pack/platform/plugins/shared/security/server/analytics/index.ts similarity index 100% rename from x-pack/plugins/security/server/analytics/index.ts rename to x-pack/platform/plugins/shared/security/server/analytics/index.ts diff --git a/x-pack/plugins/security/server/anonymous_access/anonymous_access_service.mock.ts b/x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.mock.ts similarity index 100% rename from x-pack/plugins/security/server/anonymous_access/anonymous_access_service.mock.ts rename to x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.mock.ts diff --git a/x-pack/plugins/security/server/anonymous_access/anonymous_access_service.test.ts b/x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/anonymous_access/anonymous_access_service.test.ts rename to x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.test.ts diff --git a/x-pack/plugins/security/server/anonymous_access/anonymous_access_service.ts b/x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.ts similarity index 100% rename from x-pack/plugins/security/server/anonymous_access/anonymous_access_service.ts rename to x-pack/platform/plugins/shared/security/server/anonymous_access/anonymous_access_service.ts diff --git a/x-pack/plugins/security/server/anonymous_access/index.ts b/x-pack/platform/plugins/shared/security/server/anonymous_access/index.ts similarity index 100% rename from x-pack/plugins/security/server/anonymous_access/index.ts rename to x-pack/platform/plugins/shared/security/server/anonymous_access/index.ts diff --git a/x-pack/plugins/security/server/audit/audit_events.test.ts b/x-pack/platform/plugins/shared/security/server/audit/audit_events.test.ts similarity index 100% rename from x-pack/plugins/security/server/audit/audit_events.test.ts rename to x-pack/platform/plugins/shared/security/server/audit/audit_events.test.ts diff --git a/x-pack/plugins/security/server/audit/audit_events.ts b/x-pack/platform/plugins/shared/security/server/audit/audit_events.ts similarity index 100% rename from x-pack/plugins/security/server/audit/audit_events.ts rename to x-pack/platform/plugins/shared/security/server/audit/audit_events.ts diff --git a/x-pack/plugins/security/server/audit/audit_service.test.ts b/x-pack/platform/plugins/shared/security/server/audit/audit_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/audit/audit_service.test.ts rename to x-pack/platform/plugins/shared/security/server/audit/audit_service.test.ts diff --git a/x-pack/plugins/security/server/audit/audit_service.ts b/x-pack/platform/plugins/shared/security/server/audit/audit_service.ts similarity index 100% rename from x-pack/plugins/security/server/audit/audit_service.ts rename to x-pack/platform/plugins/shared/security/server/audit/audit_service.ts diff --git a/x-pack/plugins/security/server/audit/index.ts b/x-pack/platform/plugins/shared/security/server/audit/index.ts similarity index 100% rename from x-pack/plugins/security/server/audit/index.ts rename to x-pack/platform/plugins/shared/security/server/audit/index.ts diff --git a/x-pack/plugins/security/server/audit/mocks.ts b/x-pack/platform/plugins/shared/security/server/audit/mocks.ts similarity index 100% rename from x-pack/plugins/security/server/audit/mocks.ts rename to x-pack/platform/plugins/shared/security/server/audit/mocks.ts diff --git a/x-pack/plugins/security/server/authentication/__snapshots__/unauthenticated_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/server/authentication/__snapshots__/unauthenticated_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/server/authentication/__snapshots__/unauthenticated_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/server/authentication/__snapshots__/unauthenticated_page.test.tsx.snap diff --git a/x-pack/plugins/security/server/authentication/api_keys/api_keys.test.mock.ts b/x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.test.mock.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/api_keys/api_keys.test.mock.ts rename to x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.test.mock.ts diff --git a/x-pack/plugins/security/server/authentication/api_keys/api_keys.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/api_keys/api_keys.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.test.ts diff --git a/x-pack/plugins/security/server/authentication/api_keys/api_keys.ts b/x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/api_keys/api_keys.ts rename to x-pack/platform/plugins/shared/security/server/authentication/api_keys/api_keys.ts diff --git a/x-pack/plugins/security/server/authentication/api_keys/fake_kibana_request.ts b/x-pack/platform/plugins/shared/security/server/authentication/api_keys/fake_kibana_request.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/api_keys/fake_kibana_request.ts rename to x-pack/platform/plugins/shared/security/server/authentication/api_keys/fake_kibana_request.ts diff --git a/x-pack/plugins/security/server/authentication/api_keys/index.ts b/x-pack/platform/plugins/shared/security/server/authentication/api_keys/index.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/api_keys/index.ts rename to x-pack/platform/plugins/shared/security/server/authentication/api_keys/index.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_result.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_result.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_result.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_result.test.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_result.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_result.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_result.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_result.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_service.mock.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.mock.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_service.mock.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_service.mock.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_service.test.mocks.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.test.mocks.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_service.test.mocks.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_service.test.mocks.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_service.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_service.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_service.test.ts diff --git a/x-pack/plugins/security/server/authentication/authentication_service.ts b/x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authentication_service.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authentication_service.ts diff --git a/x-pack/plugins/security/server/authentication/authenticator.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/authenticator.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authenticator.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authenticator.test.ts diff --git a/x-pack/plugins/security/server/authentication/authenticator.ts b/x-pack/platform/plugins/shared/security/server/authentication/authenticator.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/authenticator.ts rename to x-pack/platform/plugins/shared/security/server/authentication/authenticator.ts diff --git a/x-pack/plugins/security/server/authentication/can_redirect_request.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/can_redirect_request.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/can_redirect_request.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/can_redirect_request.test.ts diff --git a/x-pack/plugins/security/server/authentication/can_redirect_request.ts b/x-pack/platform/plugins/shared/security/server/authentication/can_redirect_request.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/can_redirect_request.ts rename to x-pack/platform/plugins/shared/security/server/authentication/can_redirect_request.ts diff --git a/x-pack/plugins/security/server/authentication/deauthentication_result.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/deauthentication_result.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/deauthentication_result.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/deauthentication_result.test.ts diff --git a/x-pack/plugins/security/server/authentication/deauthentication_result.ts b/x-pack/platform/plugins/shared/security/server/authentication/deauthentication_result.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/deauthentication_result.ts rename to x-pack/platform/plugins/shared/security/server/authentication/deauthentication_result.ts diff --git a/x-pack/plugins/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.test.ts diff --git a/x-pack/plugins/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.ts b/x-pack/platform/plugins/shared/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.ts rename to x-pack/platform/plugins/shared/security/server/authentication/http_authentication/basic_http_authorization_header_credentials.ts diff --git a/x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/http_authentication/http_authorization_header.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/http_authentication/http_authorization_header.test.ts diff --git a/x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.ts b/x-pack/platform/plugins/shared/security/server/authentication/http_authentication/http_authorization_header.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/http_authentication/http_authorization_header.ts rename to x-pack/platform/plugins/shared/security/server/authentication/http_authentication/http_authorization_header.ts diff --git a/x-pack/plugins/security/server/authentication/http_authentication/index.ts b/x-pack/platform/plugins/shared/security/server/authentication/http_authentication/index.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/http_authentication/index.ts rename to x-pack/platform/plugins/shared/security/server/authentication/http_authentication/index.ts diff --git a/x-pack/plugins/security/server/authentication/index.ts b/x-pack/platform/plugins/shared/security/server/authentication/index.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/index.ts rename to x-pack/platform/plugins/shared/security/server/authentication/index.ts diff --git a/x-pack/plugins/security/server/authentication/providers/anonymous.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/anonymous.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/anonymous.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/anonymous.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/anonymous.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/anonymous.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/anonymous.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/anonymous.ts diff --git a/x-pack/plugins/security/server/authentication/providers/base.mock.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/base.mock.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/base.mock.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/base.mock.ts diff --git a/x-pack/plugins/security/server/authentication/providers/base.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/base.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/base.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/base.ts diff --git a/x-pack/plugins/security/server/authentication/providers/basic.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/basic.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/basic.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/basic.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/basic.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/basic.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/basic.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/basic.ts diff --git a/x-pack/plugins/security/server/authentication/providers/http.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/http.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/http.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/http.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/http.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/http.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/http.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/http.ts diff --git a/x-pack/plugins/security/server/authentication/providers/index.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/index.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/index.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/index.ts diff --git a/x-pack/plugins/security/server/authentication/providers/kerberos.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/kerberos.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/kerberos.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/kerberos.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/kerberos.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/kerberos.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/kerberos.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/kerberos.ts diff --git a/x-pack/plugins/security/server/authentication/providers/oidc.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/oidc.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/oidc.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/oidc.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/oidc.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/oidc.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/oidc.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/oidc.ts diff --git a/x-pack/plugins/security/server/authentication/providers/pki.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/pki.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/pki.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/pki.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/pki.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/pki.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/pki.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/pki.ts diff --git a/x-pack/plugins/security/server/authentication/providers/saml.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/saml.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/saml.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/saml.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/saml.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/saml.ts diff --git a/x-pack/plugins/security/server/authentication/providers/token.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/token.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/token.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/token.test.ts diff --git a/x-pack/plugins/security/server/authentication/providers/token.ts b/x-pack/platform/plugins/shared/security/server/authentication/providers/token.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/providers/token.ts rename to x-pack/platform/plugins/shared/security/server/authentication/providers/token.ts diff --git a/x-pack/plugins/security/server/authentication/tokens.test.ts b/x-pack/platform/plugins/shared/security/server/authentication/tokens.test.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/tokens.test.ts rename to x-pack/platform/plugins/shared/security/server/authentication/tokens.test.ts diff --git a/x-pack/plugins/security/server/authentication/tokens.ts b/x-pack/platform/plugins/shared/security/server/authentication/tokens.ts similarity index 100% rename from x-pack/plugins/security/server/authentication/tokens.ts rename to x-pack/platform/plugins/shared/security/server/authentication/tokens.ts diff --git a/x-pack/plugins/security/server/authentication/unauthenticated_page.test.tsx b/x-pack/platform/plugins/shared/security/server/authentication/unauthenticated_page.test.tsx similarity index 100% rename from x-pack/plugins/security/server/authentication/unauthenticated_page.test.tsx rename to x-pack/platform/plugins/shared/security/server/authentication/unauthenticated_page.test.tsx diff --git a/x-pack/plugins/security/server/authentication/unauthenticated_page.tsx b/x-pack/platform/plugins/shared/security/server/authentication/unauthenticated_page.tsx similarity index 100% rename from x-pack/plugins/security/server/authentication/unauthenticated_page.tsx rename to x-pack/platform/plugins/shared/security/server/authentication/unauthenticated_page.tsx diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/disable_ui_capabilities.test.ts.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/disable_ui_capabilities.test.ts.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/disable_ui_capabilities.test.ts.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/disable_ui_capabilities.test.ts.snap diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/privilege_serializer.test.ts.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/privilege_serializer.test.ts.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/privilege_serializer.test.ts.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/privilege_serializer.test.ts.snap diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/privileges_serializer.test.ts.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/privileges_serializer.test.ts.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/privileges_serializer.test.ts.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/privileges_serializer.test.ts.snap diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/reset_session_page.test.tsx.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/reset_session_page.test.tsx.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/reset_session_page.test.tsx.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/reset_session_page.test.tsx.snap diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/resource_serializer.test.ts.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/resource_serializer.test.ts.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/resource_serializer.test.ts.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/resource_serializer.test.ts.snap diff --git a/x-pack/plugins/security/server/authorization/__snapshots__/validate_es_response.test.ts.snap b/x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/validate_es_response.test.ts.snap similarity index 100% rename from x-pack/plugins/security/server/authorization/__snapshots__/validate_es_response.test.ts.snap rename to x-pack/platform/plugins/shared/security/server/authorization/__snapshots__/validate_es_response.test.ts.snap diff --git a/x-pack/plugins/security/server/authorization/api_authorization.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/api_authorization.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/api_authorization.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/api_authorization.test.ts diff --git a/x-pack/plugins/security/server/authorization/api_authorization.ts b/x-pack/platform/plugins/shared/security/server/authorization/api_authorization.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/api_authorization.ts rename to x-pack/platform/plugins/shared/security/server/authorization/api_authorization.ts diff --git a/x-pack/plugins/security/server/authorization/app_authorization.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/app_authorization.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/app_authorization.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/app_authorization.test.ts diff --git a/x-pack/plugins/security/server/authorization/app_authorization.ts b/x-pack/platform/plugins/shared/security/server/authorization/app_authorization.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/app_authorization.ts rename to x-pack/platform/plugins/shared/security/server/authorization/app_authorization.ts diff --git a/x-pack/plugins/security/server/authorization/authorization_service.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/authorization_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/authorization_service.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/authorization_service.test.ts diff --git a/x-pack/plugins/security/server/authorization/authorization_service.tsx b/x-pack/platform/plugins/shared/security/server/authorization/authorization_service.tsx similarity index 100% rename from x-pack/plugins/security/server/authorization/authorization_service.tsx rename to x-pack/platform/plugins/shared/security/server/authorization/authorization_service.tsx diff --git a/x-pack/plugins/security/server/authorization/check_privileges.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_privileges.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_privileges.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_privileges.test.ts diff --git a/x-pack/plugins/security/server/authorization/check_privileges.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_privileges.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_privileges.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_privileges.ts diff --git a/x-pack/plugins/security/server/authorization/check_privileges_dynamically.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_privileges_dynamically.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_privileges_dynamically.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_privileges_dynamically.test.ts diff --git a/x-pack/plugins/security/server/authorization/check_privileges_dynamically.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_privileges_dynamically.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_privileges_dynamically.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_privileges_dynamically.ts diff --git a/x-pack/plugins/security/server/authorization/check_saved_objects_privileges.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_saved_objects_privileges.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_saved_objects_privileges.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_saved_objects_privileges.test.ts diff --git a/x-pack/plugins/security/server/authorization/check_saved_objects_privileges.ts b/x-pack/platform/plugins/shared/security/server/authorization/check_saved_objects_privileges.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/check_saved_objects_privileges.ts rename to x-pack/platform/plugins/shared/security/server/authorization/check_saved_objects_privileges.ts diff --git a/x-pack/plugins/security/server/authorization/disable_ui_capabilities.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/disable_ui_capabilities.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/disable_ui_capabilities.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/disable_ui_capabilities.test.ts diff --git a/x-pack/plugins/security/server/authorization/disable_ui_capabilities.ts b/x-pack/platform/plugins/shared/security/server/authorization/disable_ui_capabilities.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/disable_ui_capabilities.ts rename to x-pack/platform/plugins/shared/security/server/authorization/disable_ui_capabilities.ts diff --git a/x-pack/plugins/security/server/authorization/index.mock.ts b/x-pack/platform/plugins/shared/security/server/authorization/index.mock.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/index.mock.ts rename to x-pack/platform/plugins/shared/security/server/authorization/index.mock.ts diff --git a/x-pack/plugins/security/server/authorization/index.ts b/x-pack/platform/plugins/shared/security/server/authorization/index.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/index.ts rename to x-pack/platform/plugins/shared/security/server/authorization/index.ts diff --git a/x-pack/plugins/security/server/authorization/mode.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/mode.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/mode.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/mode.test.ts diff --git a/x-pack/plugins/security/server/authorization/mode.ts b/x-pack/platform/plugins/shared/security/server/authorization/mode.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/mode.ts rename to x-pack/platform/plugins/shared/security/server/authorization/mode.ts diff --git a/x-pack/plugins/security/server/authorization/privilege_serializer.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/privilege_serializer.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/privilege_serializer.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/privilege_serializer.test.ts diff --git a/x-pack/plugins/security/server/authorization/privilege_serializer.ts b/x-pack/platform/plugins/shared/security/server/authorization/privilege_serializer.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/privilege_serializer.ts rename to x-pack/platform/plugins/shared/security/server/authorization/privilege_serializer.ts diff --git a/x-pack/plugins/security/server/authorization/privileges_serializer.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/privileges_serializer.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/privileges_serializer.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/privileges_serializer.test.ts diff --git a/x-pack/plugins/security/server/authorization/privileges_serializer.ts b/x-pack/platform/plugins/shared/security/server/authorization/privileges_serializer.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/privileges_serializer.ts rename to x-pack/platform/plugins/shared/security/server/authorization/privileges_serializer.ts diff --git a/x-pack/plugins/security/server/authorization/register_privileges_with_cluster.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/register_privileges_with_cluster.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/register_privileges_with_cluster.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/register_privileges_with_cluster.test.ts diff --git a/x-pack/plugins/security/server/authorization/register_privileges_with_cluster.ts b/x-pack/platform/plugins/shared/security/server/authorization/register_privileges_with_cluster.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/register_privileges_with_cluster.ts rename to x-pack/platform/plugins/shared/security/server/authorization/register_privileges_with_cluster.ts diff --git a/x-pack/plugins/security/server/authorization/reset_session_page.test.tsx b/x-pack/platform/plugins/shared/security/server/authorization/reset_session_page.test.tsx similarity index 100% rename from x-pack/plugins/security/server/authorization/reset_session_page.test.tsx rename to x-pack/platform/plugins/shared/security/server/authorization/reset_session_page.test.tsx diff --git a/x-pack/plugins/security/server/authorization/reset_session_page.tsx b/x-pack/platform/plugins/shared/security/server/authorization/reset_session_page.tsx similarity index 100% rename from x-pack/plugins/security/server/authorization/reset_session_page.tsx rename to x-pack/platform/plugins/shared/security/server/authorization/reset_session_page.tsx diff --git a/x-pack/plugins/security/server/authorization/resource_serializer.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/resource_serializer.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/resource_serializer.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/resource_serializer.test.ts diff --git a/x-pack/plugins/security/server/authorization/resource_serializer.ts b/x-pack/platform/plugins/shared/security/server/authorization/resource_serializer.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/resource_serializer.ts rename to x-pack/platform/plugins/shared/security/server/authorization/resource_serializer.ts diff --git a/x-pack/plugins/security/server/authorization/roles/elasticsearch_role.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/roles/elasticsearch_role.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/roles/elasticsearch_role.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/roles/elasticsearch_role.test.ts diff --git a/x-pack/plugins/security/server/authorization/roles/elasticsearch_role.ts b/x-pack/platform/plugins/shared/security/server/authorization/roles/elasticsearch_role.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/roles/elasticsearch_role.ts rename to x-pack/platform/plugins/shared/security/server/authorization/roles/elasticsearch_role.ts diff --git a/x-pack/plugins/security/server/authorization/roles/index.ts b/x-pack/platform/plugins/shared/security/server/authorization/roles/index.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/roles/index.ts rename to x-pack/platform/plugins/shared/security/server/authorization/roles/index.ts diff --git a/x-pack/plugins/security/server/authorization/service.test.mocks.ts b/x-pack/platform/plugins/shared/security/server/authorization/service.test.mocks.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/service.test.mocks.ts rename to x-pack/platform/plugins/shared/security/server/authorization/service.test.mocks.ts diff --git a/x-pack/plugins/security/server/authorization/validate_es_response.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_es_response.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_es_response.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_es_response.test.ts diff --git a/x-pack/plugins/security/server/authorization/validate_es_response.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_es_response.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_es_response.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_es_response.ts diff --git a/x-pack/plugins/security/server/authorization/validate_feature_privileges.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_feature_privileges.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_feature_privileges.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_feature_privileges.test.ts diff --git a/x-pack/plugins/security/server/authorization/validate_feature_privileges.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_feature_privileges.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_feature_privileges.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_feature_privileges.ts diff --git a/x-pack/plugins/security/server/authorization/validate_reserved_privileges.test.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_reserved_privileges.test.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_reserved_privileges.test.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_reserved_privileges.test.ts diff --git a/x-pack/plugins/security/server/authorization/validate_reserved_privileges.ts b/x-pack/platform/plugins/shared/security/server/authorization/validate_reserved_privileges.ts similarity index 100% rename from x-pack/plugins/security/server/authorization/validate_reserved_privileges.ts rename to x-pack/platform/plugins/shared/security/server/authorization/validate_reserved_privileges.ts diff --git a/x-pack/plugins/security/server/build_delegate_apis.test.ts b/x-pack/platform/plugins/shared/security/server/build_delegate_apis.test.ts similarity index 100% rename from x-pack/plugins/security/server/build_delegate_apis.test.ts rename to x-pack/platform/plugins/shared/security/server/build_delegate_apis.test.ts diff --git a/x-pack/plugins/security/server/build_delegate_apis.ts b/x-pack/platform/plugins/shared/security/server/build_delegate_apis.ts similarity index 100% rename from x-pack/plugins/security/server/build_delegate_apis.ts rename to x-pack/platform/plugins/shared/security/server/build_delegate_apis.ts diff --git a/x-pack/plugins/security/server/config.test.ts b/x-pack/platform/plugins/shared/security/server/config.test.ts similarity index 100% rename from x-pack/plugins/security/server/config.test.ts rename to x-pack/platform/plugins/shared/security/server/config.test.ts diff --git a/x-pack/plugins/security/server/config.ts b/x-pack/platform/plugins/shared/security/server/config.ts similarity index 100% rename from x-pack/plugins/security/server/config.ts rename to x-pack/platform/plugins/shared/security/server/config.ts diff --git a/x-pack/plugins/security/server/config_deprecations.test.ts b/x-pack/platform/plugins/shared/security/server/config_deprecations.test.ts similarity index 100% rename from x-pack/plugins/security/server/config_deprecations.test.ts rename to x-pack/platform/plugins/shared/security/server/config_deprecations.test.ts diff --git a/x-pack/plugins/security/server/config_deprecations.ts b/x-pack/platform/plugins/shared/security/server/config_deprecations.ts similarity index 100% rename from x-pack/plugins/security/server/config_deprecations.ts rename to x-pack/platform/plugins/shared/security/server/config_deprecations.ts diff --git a/x-pack/plugins/security/server/deprecations/index.ts b/x-pack/platform/plugins/shared/security/server/deprecations/index.ts similarity index 100% rename from x-pack/plugins/security/server/deprecations/index.ts rename to x-pack/platform/plugins/shared/security/server/deprecations/index.ts diff --git a/x-pack/plugins/security/server/deprecations/kibana_user_role.test.ts b/x-pack/platform/plugins/shared/security/server/deprecations/kibana_user_role.test.ts similarity index 100% rename from x-pack/plugins/security/server/deprecations/kibana_user_role.test.ts rename to x-pack/platform/plugins/shared/security/server/deprecations/kibana_user_role.test.ts diff --git a/x-pack/plugins/security/server/deprecations/kibana_user_role.ts b/x-pack/platform/plugins/shared/security/server/deprecations/kibana_user_role.ts similarity index 100% rename from x-pack/plugins/security/server/deprecations/kibana_user_role.ts rename to x-pack/platform/plugins/shared/security/server/deprecations/kibana_user_role.ts diff --git a/x-pack/plugins/security/server/deprecations/privilege_deprecations.test.ts b/x-pack/platform/plugins/shared/security/server/deprecations/privilege_deprecations.test.ts similarity index 100% rename from x-pack/plugins/security/server/deprecations/privilege_deprecations.test.ts rename to x-pack/platform/plugins/shared/security/server/deprecations/privilege_deprecations.test.ts diff --git a/x-pack/plugins/security/server/deprecations/privilege_deprecations.ts b/x-pack/platform/plugins/shared/security/server/deprecations/privilege_deprecations.ts similarity index 100% rename from x-pack/plugins/security/server/deprecations/privilege_deprecations.ts rename to x-pack/platform/plugins/shared/security/server/deprecations/privilege_deprecations.ts diff --git a/x-pack/plugins/security/server/elasticsearch/elasticsearch_service.test.ts b/x-pack/platform/plugins/shared/security/server/elasticsearch/elasticsearch_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/elasticsearch/elasticsearch_service.test.ts rename to x-pack/platform/plugins/shared/security/server/elasticsearch/elasticsearch_service.test.ts diff --git a/x-pack/plugins/security/server/elasticsearch/elasticsearch_service.ts b/x-pack/platform/plugins/shared/security/server/elasticsearch/elasticsearch_service.ts similarity index 100% rename from x-pack/plugins/security/server/elasticsearch/elasticsearch_service.ts rename to x-pack/platform/plugins/shared/security/server/elasticsearch/elasticsearch_service.ts diff --git a/x-pack/plugins/security/server/elasticsearch/index.ts b/x-pack/platform/plugins/shared/security/server/elasticsearch/index.ts similarity index 100% rename from x-pack/plugins/security/server/elasticsearch/index.ts rename to x-pack/platform/plugins/shared/security/server/elasticsearch/index.ts diff --git a/x-pack/plugins/security/server/errors.test.ts b/x-pack/platform/plugins/shared/security/server/errors.test.ts similarity index 100% rename from x-pack/plugins/security/server/errors.test.ts rename to x-pack/platform/plugins/shared/security/server/errors.test.ts diff --git a/x-pack/plugins/security/server/errors.ts b/x-pack/platform/plugins/shared/security/server/errors.ts similarity index 100% rename from x-pack/plugins/security/server/errors.ts rename to x-pack/platform/plugins/shared/security/server/errors.ts diff --git a/x-pack/plugins/security/server/feature_usage/feature_usage_service.test.ts b/x-pack/platform/plugins/shared/security/server/feature_usage/feature_usage_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/feature_usage/feature_usage_service.test.ts rename to x-pack/platform/plugins/shared/security/server/feature_usage/feature_usage_service.test.ts diff --git a/x-pack/plugins/security/server/feature_usage/feature_usage_service.ts b/x-pack/platform/plugins/shared/security/server/feature_usage/feature_usage_service.ts similarity index 100% rename from x-pack/plugins/security/server/feature_usage/feature_usage_service.ts rename to x-pack/platform/plugins/shared/security/server/feature_usage/feature_usage_service.ts diff --git a/x-pack/plugins/security/server/feature_usage/index.mock.ts b/x-pack/platform/plugins/shared/security/server/feature_usage/index.mock.ts similarity index 100% rename from x-pack/plugins/security/server/feature_usage/index.mock.ts rename to x-pack/platform/plugins/shared/security/server/feature_usage/index.mock.ts diff --git a/x-pack/plugins/security/server/feature_usage/index.ts b/x-pack/platform/plugins/shared/security/server/feature_usage/index.ts similarity index 100% rename from x-pack/plugins/security/server/feature_usage/index.ts rename to x-pack/platform/plugins/shared/security/server/feature_usage/index.ts diff --git a/x-pack/plugins/security/server/features/index.ts b/x-pack/platform/plugins/shared/security/server/features/index.ts similarity index 100% rename from x-pack/plugins/security/server/features/index.ts rename to x-pack/platform/plugins/shared/security/server/features/index.ts diff --git a/x-pack/plugins/security/server/features/security_features.ts b/x-pack/platform/plugins/shared/security/server/features/security_features.ts similarity index 100% rename from x-pack/plugins/security/server/features/security_features.ts rename to x-pack/platform/plugins/shared/security/server/features/security_features.ts diff --git a/x-pack/plugins/security/server/fips/fips_service.test.ts b/x-pack/platform/plugins/shared/security/server/fips/fips_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/fips/fips_service.test.ts rename to x-pack/platform/plugins/shared/security/server/fips/fips_service.test.ts diff --git a/x-pack/plugins/security/server/fips/fips_service.ts b/x-pack/platform/plugins/shared/security/server/fips/fips_service.ts similarity index 100% rename from x-pack/plugins/security/server/fips/fips_service.ts rename to x-pack/platform/plugins/shared/security/server/fips/fips_service.ts diff --git a/x-pack/plugins/security/server/fips/index.ts b/x-pack/platform/plugins/shared/security/server/fips/index.ts similarity index 100% rename from x-pack/plugins/security/server/fips/index.ts rename to x-pack/platform/plugins/shared/security/server/fips/index.ts diff --git a/x-pack/plugins/security/server/index.ts b/x-pack/platform/plugins/shared/security/server/index.ts similarity index 100% rename from x-pack/plugins/security/server/index.ts rename to x-pack/platform/plugins/shared/security/server/index.ts diff --git a/x-pack/plugins/security/server/lib/flatten_object.test.ts b/x-pack/platform/plugins/shared/security/server/lib/flatten_object.test.ts similarity index 100% rename from x-pack/plugins/security/server/lib/flatten_object.test.ts rename to x-pack/platform/plugins/shared/security/server/lib/flatten_object.test.ts diff --git a/x-pack/plugins/security/server/lib/flatten_object.ts b/x-pack/platform/plugins/shared/security/server/lib/flatten_object.ts similarity index 100% rename from x-pack/plugins/security/server/lib/flatten_object.ts rename to x-pack/platform/plugins/shared/security/server/lib/flatten_object.ts diff --git a/x-pack/plugins/security/server/lib/index.ts b/x-pack/platform/plugins/shared/security/server/lib/index.ts similarity index 100% rename from x-pack/plugins/security/server/lib/index.ts rename to x-pack/platform/plugins/shared/security/server/lib/index.ts diff --git a/x-pack/plugins/security/server/lib/role_utils.test.ts b/x-pack/platform/plugins/shared/security/server/lib/role_utils.test.ts similarity index 100% rename from x-pack/plugins/security/server/lib/role_utils.test.ts rename to x-pack/platform/plugins/shared/security/server/lib/role_utils.test.ts diff --git a/x-pack/plugins/security/server/lib/role_utils.ts b/x-pack/platform/plugins/shared/security/server/lib/role_utils.ts similarity index 100% rename from x-pack/plugins/security/server/lib/role_utils.ts rename to x-pack/platform/plugins/shared/security/server/lib/role_utils.ts diff --git a/x-pack/plugins/security/server/mocks.ts b/x-pack/platform/plugins/shared/security/server/mocks.ts similarity index 100% rename from x-pack/plugins/security/server/mocks.ts rename to x-pack/platform/plugins/shared/security/server/mocks.ts diff --git a/x-pack/plugins/security/server/plugin.test.ts b/x-pack/platform/plugins/shared/security/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/security/server/plugin.test.ts rename to x-pack/platform/plugins/shared/security/server/plugin.test.ts diff --git a/x-pack/plugins/security/server/plugin.ts b/x-pack/platform/plugins/shared/security/server/plugin.ts similarity index 100% rename from x-pack/plugins/security/server/plugin.ts rename to x-pack/platform/plugins/shared/security/server/plugin.ts diff --git a/x-pack/plugins/security/server/prompt_page.test.tsx b/x-pack/platform/plugins/shared/security/server/prompt_page.test.tsx similarity index 100% rename from x-pack/plugins/security/server/prompt_page.test.tsx rename to x-pack/platform/plugins/shared/security/server/prompt_page.test.tsx diff --git a/x-pack/plugins/security/server/prompt_page.tsx b/x-pack/platform/plugins/shared/security/server/prompt_page.tsx similarity index 100% rename from x-pack/plugins/security/server/prompt_page.tsx rename to x-pack/platform/plugins/shared/security/server/prompt_page.tsx diff --git a/x-pack/plugins/security/server/routes/analytics/authentication_type.test.ts b/x-pack/platform/plugins/shared/security/server/routes/analytics/authentication_type.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/analytics/authentication_type.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/analytics/authentication_type.test.ts diff --git a/x-pack/plugins/security/server/routes/analytics/authentication_type.ts b/x-pack/platform/plugins/shared/security/server/routes/analytics/authentication_type.ts similarity index 100% rename from x-pack/plugins/security/server/routes/analytics/authentication_type.ts rename to x-pack/platform/plugins/shared/security/server/routes/analytics/authentication_type.ts diff --git a/x-pack/plugins/security/server/routes/analytics/index.ts b/x-pack/platform/plugins/shared/security/server/routes/analytics/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/analytics/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/analytics/index.ts diff --git a/x-pack/plugins/security/server/routes/analytics/record_violations.test.ts b/x-pack/platform/plugins/shared/security/server/routes/analytics/record_violations.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/analytics/record_violations.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/analytics/record_violations.test.ts diff --git a/x-pack/plugins/security/server/routes/analytics/record_violations.ts b/x-pack/platform/plugins/shared/security/server/routes/analytics/record_violations.ts similarity index 100% rename from x-pack/plugins/security/server/routes/analytics/record_violations.ts rename to x-pack/platform/plugins/shared/security/server/routes/analytics/record_violations.ts diff --git a/x-pack/plugins/security/server/routes/anonymous_access/get_capabilities.test.ts b/x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_capabilities.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/anonymous_access/get_capabilities.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_capabilities.test.ts diff --git a/x-pack/plugins/security/server/routes/anonymous_access/get_capabilities.ts b/x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_capabilities.ts similarity index 100% rename from x-pack/plugins/security/server/routes/anonymous_access/get_capabilities.ts rename to x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_capabilities.ts diff --git a/x-pack/plugins/security/server/routes/anonymous_access/get_state.test.ts b/x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_state.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/anonymous_access/get_state.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_state.test.ts diff --git a/x-pack/plugins/security/server/routes/anonymous_access/get_state.ts b/x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_state.ts similarity index 100% rename from x-pack/plugins/security/server/routes/anonymous_access/get_state.ts rename to x-pack/platform/plugins/shared/security/server/routes/anonymous_access/get_state.ts diff --git a/x-pack/plugins/security/server/routes/anonymous_access/index.ts b/x-pack/platform/plugins/shared/security/server/routes/anonymous_access/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/anonymous_access/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/anonymous_access/index.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/create.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/create.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/create.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/create.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/create.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/create.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/create.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/create.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/enabled.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/enabled.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/enabled.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/enabled.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/enabled.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/enabled.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/enabled.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/enabled.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/has_active.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/has_active.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/has_active.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/has_active.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/has_active.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/has_active.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/has_active.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/has_active.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/index.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/index.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/invalidate.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/invalidate.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/invalidate.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/invalidate.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/invalidate.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/invalidate.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/invalidate.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/invalidate.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/query.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/query.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/query.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/query.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/query.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/query.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/query.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/query.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/update.test.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/update.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/update.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/update.test.ts diff --git a/x-pack/plugins/security/server/routes/api_keys/update.ts b/x-pack/platform/plugins/shared/security/server/routes/api_keys/update.ts similarity index 100% rename from x-pack/plugins/security/server/routes/api_keys/update.ts rename to x-pack/platform/plugins/shared/security/server/routes/api_keys/update.ts diff --git a/x-pack/plugins/security/server/routes/authentication/common.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/common.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/common.test.ts diff --git a/x-pack/plugins/security/server/routes/authentication/common.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/common.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/common.ts diff --git a/x-pack/plugins/security/server/routes/authentication/index.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/index.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/index.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/index.test.ts diff --git a/x-pack/plugins/security/server/routes/authentication/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/index.ts diff --git a/x-pack/plugins/security/server/routes/authentication/oidc.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/oidc.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/oidc.ts diff --git a/x-pack/plugins/security/server/routes/authentication/saml.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/saml.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/saml.test.ts diff --git a/x-pack/plugins/security/server/routes/authentication/saml.ts b/x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authentication/saml.ts rename to x-pack/platform/plugins/shared/security/server/routes/authentication/saml.ts diff --git a/x-pack/plugins/security/server/routes/authorization/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/privileges/get.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/privileges/get.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/privileges/get.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/privileges/get.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get.ts diff --git a/x-pack/plugins/security/server/routes/authorization/privileges/get_builtin.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get_builtin.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/privileges/get_builtin.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/get_builtin.ts diff --git a/x-pack/plugins/security/server/routes/authorization/privileges/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/privileges/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/privileges/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/reset_session_page.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/reset_session_page.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/reset_session_page.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/reset_session_page.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/delete.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/delete.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/delete.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/delete.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/delete.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get_all.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get_all.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get_all.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get_all.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get_all_by_space.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all_by_space.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get_all_by_space.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all_by_space.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/get_all_by_space.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all_by_space.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/get_all_by_space.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/get_all_by_space.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/lib/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/lib/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/lib/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/lib/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/lib/role_privileges.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/lib/role_privileges.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/lib/role_privileges.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/lib/role_privileges.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/bulk_create_or_update_payload.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/model/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/model/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/model/put_payload.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/put_payload.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/model/put_payload.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/put_payload.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/model/put_payload.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/put_payload.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/model/put_payload.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/model/put_payload.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/post.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/post.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/post.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/post.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/post.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/put.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/put.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/roles/put.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/roles/put.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/roles/put.ts diff --git a/x-pack/plugins/security/server/routes/authorization/spaces/index.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/spaces/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/index.ts diff --git a/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/share_saved_object_permissions.test.ts diff --git a/x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.ts b/x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/share_saved_object_permissions.ts similarity index 100% rename from x-pack/plugins/security/server/routes/authorization/spaces/share_saved_object_permissions.ts rename to x-pack/platform/plugins/shared/security/server/routes/authorization/spaces/share_saved_object_permissions.ts diff --git a/x-pack/plugins/security/server/routes/deprecations/index.ts b/x-pack/platform/plugins/shared/security/server/routes/deprecations/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/deprecations/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/deprecations/index.ts diff --git a/x-pack/plugins/security/server/routes/deprecations/kibana_user_role.test.ts b/x-pack/platform/plugins/shared/security/server/routes/deprecations/kibana_user_role.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/deprecations/kibana_user_role.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/deprecations/kibana_user_role.test.ts diff --git a/x-pack/plugins/security/server/routes/deprecations/kibana_user_role.ts b/x-pack/platform/plugins/shared/security/server/routes/deprecations/kibana_user_role.ts similarity index 100% rename from x-pack/plugins/security/server/routes/deprecations/kibana_user_role.ts rename to x-pack/platform/plugins/shared/security/server/routes/deprecations/kibana_user_role.ts diff --git a/x-pack/plugins/security/server/routes/feature_check/feature_check.test.ts b/x-pack/platform/plugins/shared/security/server/routes/feature_check/feature_check.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/feature_check/feature_check.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/feature_check/feature_check.test.ts diff --git a/x-pack/plugins/security/server/routes/feature_check/feature_check.ts b/x-pack/platform/plugins/shared/security/server/routes/feature_check/feature_check.ts similarity index 100% rename from x-pack/plugins/security/server/routes/feature_check/feature_check.ts rename to x-pack/platform/plugins/shared/security/server/routes/feature_check/feature_check.ts diff --git a/x-pack/plugins/security/server/routes/feature_check/index.ts b/x-pack/platform/plugins/shared/security/server/routes/feature_check/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/feature_check/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/feature_check/index.ts diff --git a/x-pack/plugins/security/server/routes/index.mock.ts b/x-pack/platform/plugins/shared/security/server/routes/index.mock.ts similarity index 100% rename from x-pack/plugins/security/server/routes/index.mock.ts rename to x-pack/platform/plugins/shared/security/server/routes/index.mock.ts diff --git a/x-pack/plugins/security/server/routes/index.ts b/x-pack/platform/plugins/shared/security/server/routes/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/index.ts diff --git a/x-pack/plugins/security/server/routes/indices/get_fields.test.ts b/x-pack/platform/plugins/shared/security/server/routes/indices/get_fields.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/indices/get_fields.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/indices/get_fields.test.ts diff --git a/x-pack/plugins/security/server/routes/indices/get_fields.ts b/x-pack/platform/plugins/shared/security/server/routes/indices/get_fields.ts similarity index 100% rename from x-pack/plugins/security/server/routes/indices/get_fields.ts rename to x-pack/platform/plugins/shared/security/server/routes/indices/get_fields.ts diff --git a/x-pack/plugins/security/server/routes/indices/index.ts b/x-pack/platform/plugins/shared/security/server/routes/indices/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/indices/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/indices/index.ts diff --git a/x-pack/plugins/security/server/routes/licensed_route_handler.ts b/x-pack/platform/plugins/shared/security/server/routes/licensed_route_handler.ts similarity index 100% rename from x-pack/plugins/security/server/routes/licensed_route_handler.ts rename to x-pack/platform/plugins/shared/security/server/routes/licensed_route_handler.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/delete.test.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/delete.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/delete.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/delete.test.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/delete.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/delete.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/delete.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/delete.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/get.test.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/get.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/get.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/get.test.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/get.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/get.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/get.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/get.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/index.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/index.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/post.test.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/post.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/post.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/post.test.ts diff --git a/x-pack/plugins/security/server/routes/role_mapping/post.ts b/x-pack/platform/plugins/shared/security/server/routes/role_mapping/post.ts similarity index 100% rename from x-pack/plugins/security/server/routes/role_mapping/post.ts rename to x-pack/platform/plugins/shared/security/server/routes/role_mapping/post.ts diff --git a/x-pack/plugins/security/server/routes/security_checkup/get_state.test.mock.ts b/x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.test.mock.ts similarity index 100% rename from x-pack/plugins/security/server/routes/security_checkup/get_state.test.mock.ts rename to x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.test.mock.ts diff --git a/x-pack/plugins/security/server/routes/security_checkup/get_state.test.ts b/x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/security_checkup/get_state.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.test.ts diff --git a/x-pack/plugins/security/server/routes/security_checkup/get_state.ts b/x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.ts similarity index 100% rename from x-pack/plugins/security/server/routes/security_checkup/get_state.ts rename to x-pack/platform/plugins/shared/security/server/routes/security_checkup/get_state.ts diff --git a/x-pack/plugins/security/server/routes/security_checkup/index.ts b/x-pack/platform/plugins/shared/security/server/routes/security_checkup/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/security_checkup/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/security_checkup/index.ts diff --git a/x-pack/plugins/security/server/routes/session_management/extend.test.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/extend.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/extend.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/extend.test.ts diff --git a/x-pack/plugins/security/server/routes/session_management/extend.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/extend.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/extend.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/extend.ts diff --git a/x-pack/plugins/security/server/routes/session_management/index.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/index.ts diff --git a/x-pack/plugins/security/server/routes/session_management/info.test.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/info.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/info.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/info.test.ts diff --git a/x-pack/plugins/security/server/routes/session_management/info.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/info.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/info.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/info.ts diff --git a/x-pack/plugins/security/server/routes/session_management/invalidate.test.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/invalidate.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/invalidate.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/invalidate.test.ts diff --git a/x-pack/plugins/security/server/routes/session_management/invalidate.ts b/x-pack/platform/plugins/shared/security/server/routes/session_management/invalidate.ts similarity index 100% rename from x-pack/plugins/security/server/routes/session_management/invalidate.ts rename to x-pack/platform/plugins/shared/security/server/routes/session_management/invalidate.ts diff --git a/x-pack/plugins/security/server/routes/tags.ts b/x-pack/platform/plugins/shared/security/server/routes/tags.ts similarity index 100% rename from x-pack/plugins/security/server/routes/tags.ts rename to x-pack/platform/plugins/shared/security/server/routes/tags.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/bulk_get.test.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/bulk_get.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/bulk_get.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/bulk_get.test.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/bulk_get.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/bulk_get.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/bulk_get.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/bulk_get.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/get_current.test.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/get_current.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/get_current.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/get_current.test.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/get_current.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/get_current.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/get_current.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/get_current.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/index.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/index.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/update.test.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/update.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/update.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/update.test.ts diff --git a/x-pack/plugins/security/server/routes/user_profile/update.ts b/x-pack/platform/plugins/shared/security/server/routes/user_profile/update.ts similarity index 100% rename from x-pack/plugins/security/server/routes/user_profile/update.ts rename to x-pack/platform/plugins/shared/security/server/routes/user_profile/update.ts diff --git a/x-pack/plugins/security/server/routes/users/change_password.test.ts b/x-pack/platform/plugins/shared/security/server/routes/users/change_password.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/change_password.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/change_password.test.ts diff --git a/x-pack/plugins/security/server/routes/users/change_password.ts b/x-pack/platform/plugins/shared/security/server/routes/users/change_password.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/change_password.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/change_password.ts diff --git a/x-pack/plugins/security/server/routes/users/create_or_update.ts b/x-pack/platform/plugins/shared/security/server/routes/users/create_or_update.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/create_or_update.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/create_or_update.ts diff --git a/x-pack/plugins/security/server/routes/users/delete.ts b/x-pack/platform/plugins/shared/security/server/routes/users/delete.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/delete.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/delete.ts diff --git a/x-pack/plugins/security/server/routes/users/disable.ts b/x-pack/platform/plugins/shared/security/server/routes/users/disable.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/disable.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/disable.ts diff --git a/x-pack/plugins/security/server/routes/users/enable.ts b/x-pack/platform/plugins/shared/security/server/routes/users/enable.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/enable.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/enable.ts diff --git a/x-pack/plugins/security/server/routes/users/get.ts b/x-pack/platform/plugins/shared/security/server/routes/users/get.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/get.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/get.ts diff --git a/x-pack/plugins/security/server/routes/users/get_all.ts b/x-pack/platform/plugins/shared/security/server/routes/users/get_all.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/get_all.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/get_all.ts diff --git a/x-pack/plugins/security/server/routes/users/index.ts b/x-pack/platform/plugins/shared/security/server/routes/users/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/users/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/users/index.ts diff --git a/x-pack/plugins/security/server/routes/views/access_agreement.test.ts b/x-pack/platform/plugins/shared/security/server/routes/views/access_agreement.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/access_agreement.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/access_agreement.test.ts diff --git a/x-pack/plugins/security/server/routes/views/access_agreement.ts b/x-pack/platform/plugins/shared/security/server/routes/views/access_agreement.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/access_agreement.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/access_agreement.ts diff --git a/x-pack/plugins/security/server/routes/views/account_management.ts b/x-pack/platform/plugins/shared/security/server/routes/views/account_management.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/account_management.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/account_management.ts diff --git a/x-pack/plugins/security/server/routes/views/capture_url.test.ts b/x-pack/platform/plugins/shared/security/server/routes/views/capture_url.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/capture_url.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/capture_url.test.ts diff --git a/x-pack/plugins/security/server/routes/views/capture_url.ts b/x-pack/platform/plugins/shared/security/server/routes/views/capture_url.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/capture_url.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/capture_url.ts diff --git a/x-pack/plugins/security/server/routes/views/index.test.ts b/x-pack/platform/plugins/shared/security/server/routes/views/index.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/index.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/index.test.ts diff --git a/x-pack/plugins/security/server/routes/views/index.ts b/x-pack/platform/plugins/shared/security/server/routes/views/index.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/index.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/index.ts diff --git a/x-pack/plugins/security/server/routes/views/logged_out.test.ts b/x-pack/platform/plugins/shared/security/server/routes/views/logged_out.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/logged_out.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/logged_out.test.ts diff --git a/x-pack/plugins/security/server/routes/views/logged_out.ts b/x-pack/platform/plugins/shared/security/server/routes/views/logged_out.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/logged_out.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/logged_out.ts diff --git a/x-pack/plugins/security/server/routes/views/login.test.ts b/x-pack/platform/plugins/shared/security/server/routes/views/login.test.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/login.test.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/login.test.ts diff --git a/x-pack/plugins/security/server/routes/views/login.ts b/x-pack/platform/plugins/shared/security/server/routes/views/login.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/login.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/login.ts diff --git a/x-pack/plugins/security/server/routes/views/logout.ts b/x-pack/platform/plugins/shared/security/server/routes/views/logout.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/logout.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/logout.ts diff --git a/x-pack/plugins/security/server/routes/views/overwritten_session.ts b/x-pack/platform/plugins/shared/security/server/routes/views/overwritten_session.ts similarity index 100% rename from x-pack/plugins/security/server/routes/views/overwritten_session.ts rename to x-pack/platform/plugins/shared/security/server/routes/views/overwritten_session.ts diff --git a/x-pack/plugins/security/server/saved_objects/authorization_utils.test.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/authorization_utils.test.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/authorization_utils.test.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/authorization_utils.test.ts diff --git a/x-pack/plugins/security/server/saved_objects/authorization_utils.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/authorization_utils.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/authorization_utils.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/authorization_utils.ts diff --git a/x-pack/plugins/security/server/saved_objects/ensure_authorized.test.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/ensure_authorized.test.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/ensure_authorized.test.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/ensure_authorized.test.ts diff --git a/x-pack/plugins/security/server/saved_objects/ensure_authorized.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/ensure_authorized.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/ensure_authorized.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/ensure_authorized.ts diff --git a/x-pack/plugins/security/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/index.ts diff --git a/x-pack/plugins/security/server/saved_objects/saved_objects_security_extension.test.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.test.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/saved_objects_security_extension.test.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.test.ts diff --git a/x-pack/plugins/security/server/saved_objects/saved_objects_security_extension.ts b/x-pack/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.ts similarity index 100% rename from x-pack/plugins/security/server/saved_objects/saved_objects_security_extension.ts rename to x-pack/platform/plugins/shared/security/server/saved_objects/saved_objects_security_extension.ts diff --git a/x-pack/plugins/security/server/security_checkup/check_cluster_data.test.ts b/x-pack/platform/plugins/shared/security/server/security_checkup/check_cluster_data.test.ts similarity index 100% rename from x-pack/plugins/security/server/security_checkup/check_cluster_data.test.ts rename to x-pack/platform/plugins/shared/security/server/security_checkup/check_cluster_data.test.ts diff --git a/x-pack/plugins/security/server/security_checkup/check_cluster_data.ts b/x-pack/platform/plugins/shared/security/server/security_checkup/check_cluster_data.ts similarity index 100% rename from x-pack/plugins/security/server/security_checkup/check_cluster_data.ts rename to x-pack/platform/plugins/shared/security/server/security_checkup/check_cluster_data.ts diff --git a/x-pack/plugins/security/server/security_checkup/index.ts b/x-pack/platform/plugins/shared/security/server/security_checkup/index.ts similarity index 100% rename from x-pack/plugins/security/server/security_checkup/index.ts rename to x-pack/platform/plugins/shared/security/server/security_checkup/index.ts diff --git a/x-pack/plugins/security/server/session_management/index.mock.ts b/x-pack/platform/plugins/shared/security/server/session_management/index.mock.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/index.mock.ts rename to x-pack/platform/plugins/shared/security/server/session_management/index.mock.ts diff --git a/x-pack/plugins/security/server/session_management/index.ts b/x-pack/platform/plugins/shared/security/server/session_management/index.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/index.ts rename to x-pack/platform/plugins/shared/security/server/session_management/index.ts diff --git a/x-pack/plugins/security/server/session_management/session.mock.ts b/x-pack/platform/plugins/shared/security/server/session_management/session.mock.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session.mock.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session.mock.ts diff --git a/x-pack/plugins/security/server/session_management/session.test.ts b/x-pack/platform/plugins/shared/security/server/session_management/session.test.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session.test.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session.test.ts diff --git a/x-pack/plugins/security/server/session_management/session.ts b/x-pack/platform/plugins/shared/security/server/session_management/session.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session.ts diff --git a/x-pack/plugins/security/server/session_management/session_cookie.mock.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_cookie.mock.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_cookie.mock.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_cookie.mock.ts diff --git a/x-pack/plugins/security/server/session_management/session_cookie.test.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_cookie.test.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_cookie.test.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_cookie.test.ts diff --git a/x-pack/plugins/security/server/session_management/session_cookie.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_cookie.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_cookie.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_cookie.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/index.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/index.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/index.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/index.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/session_concurrency_limit_error.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_concurrency_limit_error.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/session_concurrency_limit_error.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_concurrency_limit_error.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/session_error.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_error.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/session_error.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_error.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/session_expired_error.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_expired_error.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/session_expired_error.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_expired_error.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/session_missing_error.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_missing_error.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/session_missing_error.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_missing_error.ts diff --git a/x-pack/plugins/security/server/session_management/session_errors/session_unexpected_error.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_unexpected_error.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_errors/session_unexpected_error.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_errors/session_unexpected_error.ts diff --git a/x-pack/plugins/security/server/session_management/session_index.mock.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_index.mock.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_index.mock.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_index.mock.ts diff --git a/x-pack/plugins/security/server/session_management/session_index.test.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_index.test.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_index.test.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_index.test.ts diff --git a/x-pack/plugins/security/server/session_management/session_index.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_index.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_index.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_index.ts diff --git a/x-pack/plugins/security/server/session_management/session_management_service.test.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_management_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_management_service.test.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_management_service.test.ts diff --git a/x-pack/plugins/security/server/session_management/session_management_service.ts b/x-pack/platform/plugins/shared/security/server/session_management/session_management_service.ts similarity index 100% rename from x-pack/plugins/security/server/session_management/session_management_service.ts rename to x-pack/platform/plugins/shared/security/server/session_management/session_management_service.ts diff --git a/x-pack/plugins/security/server/spaces/index.ts b/x-pack/platform/plugins/shared/security/server/spaces/index.ts similarity index 100% rename from x-pack/plugins/security/server/spaces/index.ts rename to x-pack/platform/plugins/shared/security/server/spaces/index.ts diff --git a/x-pack/plugins/security/server/spaces/secure_spaces_client_wrapper.test.ts b/x-pack/platform/plugins/shared/security/server/spaces/secure_spaces_client_wrapper.test.ts similarity index 100% rename from x-pack/plugins/security/server/spaces/secure_spaces_client_wrapper.test.ts rename to x-pack/platform/plugins/shared/security/server/spaces/secure_spaces_client_wrapper.test.ts diff --git a/x-pack/plugins/security/server/spaces/secure_spaces_client_wrapper.ts b/x-pack/platform/plugins/shared/security/server/spaces/secure_spaces_client_wrapper.ts similarity index 100% rename from x-pack/plugins/security/server/spaces/secure_spaces_client_wrapper.ts rename to x-pack/platform/plugins/shared/security/server/spaces/secure_spaces_client_wrapper.ts diff --git a/x-pack/plugins/security/server/spaces/setup_spaces_client.test.ts b/x-pack/platform/plugins/shared/security/server/spaces/setup_spaces_client.test.ts similarity index 100% rename from x-pack/plugins/security/server/spaces/setup_spaces_client.test.ts rename to x-pack/platform/plugins/shared/security/server/spaces/setup_spaces_client.test.ts diff --git a/x-pack/plugins/security/server/spaces/setup_spaces_client.ts b/x-pack/platform/plugins/shared/security/server/spaces/setup_spaces_client.ts similarity index 100% rename from x-pack/plugins/security/server/spaces/setup_spaces_client.ts rename to x-pack/platform/plugins/shared/security/server/spaces/setup_spaces_client.ts diff --git a/x-pack/plugins/security/server/types.ts b/x-pack/platform/plugins/shared/security/server/types.ts similarity index 100% rename from x-pack/plugins/security/server/types.ts rename to x-pack/platform/plugins/shared/security/server/types.ts diff --git a/x-pack/plugins/security/server/usage_collector/index.ts b/x-pack/platform/plugins/shared/security/server/usage_collector/index.ts similarity index 100% rename from x-pack/plugins/security/server/usage_collector/index.ts rename to x-pack/platform/plugins/shared/security/server/usage_collector/index.ts diff --git a/x-pack/plugins/security/server/usage_collector/security_usage_collector.test.ts b/x-pack/platform/plugins/shared/security/server/usage_collector/security_usage_collector.test.ts similarity index 100% rename from x-pack/plugins/security/server/usage_collector/security_usage_collector.test.ts rename to x-pack/platform/plugins/shared/security/server/usage_collector/security_usage_collector.test.ts diff --git a/x-pack/plugins/security/server/usage_collector/security_usage_collector.ts b/x-pack/platform/plugins/shared/security/server/usage_collector/security_usage_collector.ts similarity index 100% rename from x-pack/plugins/security/server/usage_collector/security_usage_collector.ts rename to x-pack/platform/plugins/shared/security/server/usage_collector/security_usage_collector.ts diff --git a/x-pack/plugins/security/server/user_profile/index.ts b/x-pack/platform/plugins/shared/security/server/user_profile/index.ts similarity index 100% rename from x-pack/plugins/security/server/user_profile/index.ts rename to x-pack/platform/plugins/shared/security/server/user_profile/index.ts diff --git a/x-pack/plugins/security/server/user_profile/user_profile_grant.ts b/x-pack/platform/plugins/shared/security/server/user_profile/user_profile_grant.ts similarity index 100% rename from x-pack/plugins/security/server/user_profile/user_profile_grant.ts rename to x-pack/platform/plugins/shared/security/server/user_profile/user_profile_grant.ts diff --git a/x-pack/plugins/security/server/user_profile/user_profile_service.mock.ts b/x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.mock.ts similarity index 100% rename from x-pack/plugins/security/server/user_profile/user_profile_service.mock.ts rename to x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.mock.ts diff --git a/x-pack/plugins/security/server/user_profile/user_profile_service.test.ts b/x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.test.ts similarity index 100% rename from x-pack/plugins/security/server/user_profile/user_profile_service.test.ts rename to x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.test.ts diff --git a/x-pack/plugins/security/server/user_profile/user_profile_service.ts b/x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.ts similarity index 100% rename from x-pack/plugins/security/server/user_profile/user_profile_service.ts rename to x-pack/platform/plugins/shared/security/server/user_profile/user_profile_service.ts diff --git a/x-pack/plugins/security/tsconfig.json b/x-pack/platform/plugins/shared/security/tsconfig.json similarity index 98% rename from x-pack/plugins/security/tsconfig.json rename to x-pack/platform/plugins/shared/security/tsconfig.json index 518af73f96877..8a9cce007e828 100644 --- a/x-pack/plugins/security/tsconfig.json +++ b/x-pack/platform/plugins/shared/security/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/x-pack/plugins/spaces/README.md b/x-pack/platform/plugins/shared/spaces/README.md similarity index 100% rename from x-pack/plugins/spaces/README.md rename to x-pack/platform/plugins/shared/spaces/README.md diff --git a/x-pack/plugins/spaces/common/constants.ts b/x-pack/platform/plugins/shared/spaces/common/constants.ts similarity index 100% rename from x-pack/plugins/spaces/common/constants.ts rename to x-pack/platform/plugins/shared/spaces/common/constants.ts diff --git a/x-pack/plugins/spaces/common/index.ts b/x-pack/platform/plugins/shared/spaces/common/index.ts similarity index 100% rename from x-pack/plugins/spaces/common/index.ts rename to x-pack/platform/plugins/shared/spaces/common/index.ts diff --git a/x-pack/plugins/spaces/common/is_reserved_space.test.ts b/x-pack/platform/plugins/shared/spaces/common/is_reserved_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/common/is_reserved_space.test.ts rename to x-pack/platform/plugins/shared/spaces/common/is_reserved_space.test.ts diff --git a/x-pack/plugins/spaces/common/is_reserved_space.ts b/x-pack/platform/plugins/shared/spaces/common/is_reserved_space.ts similarity index 100% rename from x-pack/plugins/spaces/common/is_reserved_space.ts rename to x-pack/platform/plugins/shared/spaces/common/is_reserved_space.ts diff --git a/x-pack/plugins/spaces/common/lib/dataurl.ts b/x-pack/platform/plugins/shared/spaces/common/lib/dataurl.ts similarity index 100% rename from x-pack/plugins/spaces/common/lib/dataurl.ts rename to x-pack/platform/plugins/shared/spaces/common/lib/dataurl.ts diff --git a/x-pack/plugins/spaces/common/lib/spaces_url_parser.test.ts b/x-pack/platform/plugins/shared/spaces/common/lib/spaces_url_parser.test.ts similarity index 100% rename from x-pack/plugins/spaces/common/lib/spaces_url_parser.test.ts rename to x-pack/platform/plugins/shared/spaces/common/lib/spaces_url_parser.test.ts diff --git a/x-pack/plugins/spaces/common/lib/spaces_url_parser.ts b/x-pack/platform/plugins/shared/spaces/common/lib/spaces_url_parser.ts similarity index 100% rename from x-pack/plugins/spaces/common/lib/spaces_url_parser.ts rename to x-pack/platform/plugins/shared/spaces/common/lib/spaces_url_parser.ts diff --git a/x-pack/plugins/spaces/common/licensing/index.mock.ts b/x-pack/platform/plugins/shared/spaces/common/licensing/index.mock.ts similarity index 100% rename from x-pack/plugins/spaces/common/licensing/index.mock.ts rename to x-pack/platform/plugins/shared/spaces/common/licensing/index.mock.ts diff --git a/x-pack/plugins/spaces/common/licensing/index.ts b/x-pack/platform/plugins/shared/spaces/common/licensing/index.ts similarity index 100% rename from x-pack/plugins/spaces/common/licensing/index.ts rename to x-pack/platform/plugins/shared/spaces/common/licensing/index.ts diff --git a/x-pack/plugins/spaces/common/licensing/license_service.test.ts b/x-pack/platform/plugins/shared/spaces/common/licensing/license_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/common/licensing/license_service.test.ts rename to x-pack/platform/plugins/shared/spaces/common/licensing/license_service.test.ts diff --git a/x-pack/plugins/spaces/common/licensing/license_service.ts b/x-pack/platform/plugins/shared/spaces/common/licensing/license_service.ts similarity index 100% rename from x-pack/plugins/spaces/common/licensing/license_service.ts rename to x-pack/platform/plugins/shared/spaces/common/licensing/license_service.ts diff --git a/x-pack/plugins/spaces/common/types/index.ts b/x-pack/platform/plugins/shared/spaces/common/types/index.ts similarity index 100% rename from x-pack/plugins/spaces/common/types/index.ts rename to x-pack/platform/plugins/shared/spaces/common/types/index.ts diff --git a/x-pack/plugins/spaces/common/types/latest.ts b/x-pack/platform/plugins/shared/spaces/common/types/latest.ts similarity index 100% rename from x-pack/plugins/spaces/common/types/latest.ts rename to x-pack/platform/plugins/shared/spaces/common/types/latest.ts diff --git a/x-pack/plugins/spaces/common/types/space/v1.ts b/x-pack/platform/plugins/shared/spaces/common/types/space/v1.ts similarity index 100% rename from x-pack/plugins/spaces/common/types/space/v1.ts rename to x-pack/platform/plugins/shared/spaces/common/types/space/v1.ts diff --git a/x-pack/packages/security/ui_components/jest.config.js b/x-pack/platform/plugins/shared/spaces/jest.config.js similarity index 61% rename from x-pack/packages/security/ui_components/jest.config.js rename to x-pack/platform/plugins/shared/spaces/jest.config.js index 12c8dfc44691b..73d6a7736d7e9 100644 --- a/x-pack/packages/security/ui_components/jest.config.js +++ b/x-pack/platform/plugins/shared/spaces/jest.config.js @@ -6,10 +6,12 @@ */ module.exports = { - coverageDirectory: '/target/kibana-coverage/jest/x-pack/packages/security/ui_components', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/packages/security/ui_components/**/*.{ts,tsx}'], preset: '@kbn/test', - rootDir: '../../../..', - roots: ['/x-pack/packages/security/ui_components'], + rootDir: '../../../../..', + roots: ['/x-pack/platform/plugins/shared/spaces'], + coverageDirectory: '/target/kibana-coverage/jest/x-pack/platform/plugins/shared/spaces', + coverageReporters: ['text', 'html'], + collectCoverageFrom: [ + '/x-pack/platform/plugins/shared/spaces/{common,public,server}/**/*.{ts,tsx}', + ], }; diff --git a/x-pack/plugins/spaces/kibana.jsonc b/x-pack/platform/plugins/shared/spaces/kibana.jsonc similarity index 100% rename from x-pack/plugins/spaces/kibana.jsonc rename to x-pack/platform/plugins/shared/spaces/kibana.jsonc diff --git a/x-pack/plugins/spaces/public/analytics/event_tracker.ts b/x-pack/platform/plugins/shared/spaces/public/analytics/event_tracker.ts similarity index 100% rename from x-pack/plugins/spaces/public/analytics/event_tracker.ts rename to x-pack/platform/plugins/shared/spaces/public/analytics/event_tracker.ts diff --git a/x-pack/plugins/spaces/public/analytics/index.ts b/x-pack/platform/plugins/shared/spaces/public/analytics/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/analytics/index.ts rename to x-pack/platform/plugins/shared/spaces/public/analytics/index.ts diff --git a/x-pack/plugins/spaces/public/analytics/register_analytics_context.ts b/x-pack/platform/plugins/shared/spaces/public/analytics/register_analytics_context.ts similarity index 100% rename from x-pack/plugins/spaces/public/analytics/register_analytics_context.ts rename to x-pack/platform/plugins/shared/spaces/public/analytics/register_analytics_context.ts diff --git a/x-pack/plugins/spaces/public/analytics/register_event_types.ts b/x-pack/platform/plugins/shared/spaces/public/analytics/register_event_types.ts similarity index 100% rename from x-pack/plugins/spaces/public/analytics/register_event_types.ts rename to x-pack/platform/plugins/shared/spaces/public/analytics/register_event_types.ts diff --git a/x-pack/plugins/spaces/public/config.ts b/x-pack/platform/plugins/shared/spaces/public/config.ts similarity index 100% rename from x-pack/plugins/spaces/public/config.ts rename to x-pack/platform/plugins/shared/spaces/public/config.ts diff --git a/x-pack/plugins/spaces/public/constants.ts b/x-pack/platform/plugins/shared/spaces/public/constants.ts similarity index 100% rename from x-pack/plugins/spaces/public/constants.ts rename to x-pack/platform/plugins/shared/spaces/public/constants.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.test.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.test.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_mode_control.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_indicator.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_indicator.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_indicator.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_indicator.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.scss b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.scss similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.scss rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.scss diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_status_summary_indicator.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_footer.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_footer.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_footer.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_footer.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.test.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_flyout_internal.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_form.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_form.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/copy_to_space_form.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/copy_to_space_form.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/index.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/index.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/index.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/processing_copy_to_space.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/processing_copy_to_space.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/processing_copy_to_space.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/processing_copy_to_space.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.scss b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.scss similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.scss rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.scss diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.test.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.test.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/resolve_all_conflicts.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.scss b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.scss similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.scss rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.scss diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/selectable_spaces_control.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result.scss b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result.scss similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result.scss rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result.scss diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result_details.scss b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result_details.scss similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result_details.scss rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result_details.scss diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result_details.tsx b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result_details.tsx similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/components/space_result_details.tsx rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/components/space_result_details.tsx diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/index.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/index.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/index.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/index.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/index.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/index.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/process_import_response.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/process_import_response.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/process_import_response.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/process_import_response.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.test.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.test.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.test.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/lib/summarize_copy_result.ts diff --git a/x-pack/plugins/spaces/public/copy_saved_objects_to_space/types.ts b/x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/copy_saved_objects_to_space/types.ts rename to x-pack/platform/plugins/shared/spaces/public/copy_saved_objects_to_space/types.ts diff --git a/x-pack/plugins/spaces/public/create_feature_catalogue_entry.ts b/x-pack/platform/plugins/shared/spaces/public/create_feature_catalogue_entry.ts similarity index 100% rename from x-pack/plugins/spaces/public/create_feature_catalogue_entry.ts rename to x-pack/platform/plugins/shared/spaces/public/create_feature_catalogue_entry.ts diff --git a/x-pack/plugins/spaces/public/index.ts b/x-pack/platform/plugins/shared/spaces/public/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/index.ts rename to x-pack/platform/plugins/shared/spaces/public/index.ts diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict.tsx b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict.tsx similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict.tsx rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict.tsx diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/embeddable_legacy_url_conflict_internal.tsx diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/index.ts b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/index.ts rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/index.ts diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict.tsx b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict.tsx similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict.tsx rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict.tsx diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict_internal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict_internal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict_internal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict_internal.test.tsx diff --git a/x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/components/legacy_url_conflict_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/components/legacy_url_conflict_internal.tsx diff --git a/x-pack/plugins/spaces/public/legacy_urls/index.ts b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/index.ts rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/index.ts diff --git a/x-pack/plugins/spaces/public/legacy_urls/redirect_legacy_url.test.ts b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/redirect_legacy_url.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/redirect_legacy_url.test.ts rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/redirect_legacy_url.test.ts diff --git a/x-pack/plugins/spaces/public/legacy_urls/redirect_legacy_url.ts b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/redirect_legacy_url.ts similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/redirect_legacy_url.ts rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/redirect_legacy_url.ts diff --git a/x-pack/plugins/spaces/public/legacy_urls/types.ts b/x-pack/platform/plugins/shared/spaces/public/legacy_urls/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/legacy_urls/types.ts rename to x-pack/platform/plugins/shared/spaces/public/legacy_urls/types.ts diff --git a/x-pack/plugins/spaces/public/management/components/__snapshots__/delete_spaces_button.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/__snapshots__/delete_spaces_button.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/__snapshots__/delete_spaces_button.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/__snapshots__/delete_spaces_button.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/__snapshots__/confirm_alter_active_space_modal.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/__snapshots__/confirm_alter_active_space_modal.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/__snapshots__/confirm_alter_active_space_modal.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/__snapshots__/confirm_alter_active_space_modal.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/confirm_alter_active_space_modal.tsx diff --git a/x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_alter_active_space_modal/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_alter_active_space_modal/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/confirm_delete_modal.tsx diff --git a/x-pack/plugins/spaces/public/management/components/confirm_delete_modal/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/confirm_delete_modal/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/confirm_delete_modal/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/customize_avatar/__snapshots__/customize_space_avatar.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/__snapshots__/customize_space_avatar.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_avatar/__snapshots__/customize_space_avatar.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/__snapshots__/customize_space_avatar.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/customize_avatar/customize_avatar.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_avatar.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_avatar/customize_avatar.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_avatar.tsx diff --git a/x-pack/plugins/spaces/public/management/components/customize_avatar/customize_space_avatar.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_space_avatar.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_avatar/customize_space_avatar.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_space_avatar.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/customize_avatar/customize_space_avatar.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_space_avatar.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_avatar/customize_space_avatar.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/customize_space_avatar.tsx diff --git a/x-pack/plugins/spaces/public/management/components/customize_avatar/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_avatar/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_avatar/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/customize_space/__snapshots__/customize_space.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/__snapshots__/customize_space.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_space/__snapshots__/customize_space.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/__snapshots__/customize_space.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/customize_space/customize_space.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/customize_space.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_space/customize_space.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/customize_space.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/customize_space/customize_space.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/customize_space.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_space/customize_space.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/customize_space.tsx diff --git a/x-pack/plugins/spaces/public/management/components/customize_space/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/customize_space/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/customize_space/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/delete_spaces_button.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/delete_spaces_button.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/delete_spaces_button.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/delete_spaces_button.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/delete_spaces_button.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/delete_spaces_button.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/delete_spaces_button.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/delete_spaces_button.tsx diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/__snapshots__/enabled_features.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/__snapshots__/enabled_features.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/__snapshots__/enabled_features.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/__snapshots__/enabled_features.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/enabled_features.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/enabled_features.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/enabled_features.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/enabled_features.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/enabled_features.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/enabled_features.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/enabled_features.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/enabled_features.tsx diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/feature_table.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/feature_table.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/feature_table.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/feature_table.tsx diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/toggle_all_features.scss b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/toggle_all_features.scss similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/toggle_all_features.scss rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/toggle_all_features.scss diff --git a/x-pack/plugins/spaces/public/management/components/enabled_features/toggle_all_features.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/toggle_all_features.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/enabled_features/toggle_all_features.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/enabled_features/toggle_all_features.tsx diff --git a/x-pack/plugins/spaces/public/management/components/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/section_panel/__snapshots__/section_panel.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/__snapshots__/section_panel.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/section_panel/__snapshots__/section_panel.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/__snapshots__/section_panel.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/section_panel/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/section_panel/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/section_panel/section_panel.scss b/x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.scss similarity index 100% rename from x-pack/plugins/spaces/public/management/components/section_panel/section_panel.scss rename to x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.scss diff --git a/x-pack/plugins/spaces/public/management/components/section_panel/section_panel.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/section_panel/section_panel.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/section_panel/section_panel.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/section_panel/section_panel.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/section_panel/section_panel.tsx diff --git a/x-pack/plugins/spaces/public/management/components/solution_view/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/solution_view/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/solution_view/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/solution_view/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/solution_view/solution_view.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/solution_view/solution_view.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/solution_view/solution_view.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/solution_view/solution_view.tsx diff --git a/x-pack/plugins/spaces/public/management/components/unauthorized_prompt/__snapshots__/unauthorized_prompt.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/__snapshots__/unauthorized_prompt.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/management/components/unauthorized_prompt/__snapshots__/unauthorized_prompt.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/__snapshots__/unauthorized_prompt.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/management/components/unauthorized_prompt/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/components/unauthorized_prompt/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/index.ts diff --git a/x-pack/plugins/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.test.tsx diff --git a/x-pack/plugins/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.tsx b/x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/components/unauthorized_prompt/unauthorized_prompt.tsx diff --git a/x-pack/plugins/spaces/public/management/create_space/create_space_page.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/create_space/create_space_page.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/create_space/create_space_page.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/create_space/create_space_page.test.tsx diff --git a/x-pack/plugins/spaces/public/management/create_space/create_space_page.tsx b/x-pack/platform/plugins/shared/spaces/public/management/create_space/create_space_page.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/create_space/create_space_page.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/create_space/create_space_page.tsx diff --git a/x-pack/plugins/spaces/public/management/create_space/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/create_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/create_space/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/create_space/index.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/constants.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/constants.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/constants.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/constants.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_content_tab.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_content_tab.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_content_tab.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_content_tab.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_content_tab.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_content_tab.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_content_tab.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_content_tab.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_general_tab.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_general_tab.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_general_tab.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_general_tab.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_general_tab.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_page.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_page.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_page.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_page.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_roles_tab.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_roles_tab.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_roles_tab.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_roles_tab.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_roles_tab.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_roles_tab.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_roles_tab.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_roles_tab.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_tabs.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_tabs.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_tabs.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_tabs.test.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/edit_space_tabs.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_tabs.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/edit_space_tabs.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/edit_space_tabs.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/footer.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/footer.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/footer.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/footer.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/handle_api_error.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/handle_api_error.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/handle_api_error.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/handle_api_error.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/hooks/use_tabs.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/hooks/use_tabs.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/hooks/use_tabs.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/hooks/use_tabs.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/index.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/provider/edit_space_provider.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/edit_space_provider.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/provider/edit_space_provider.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/edit_space_provider.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/provider/edit_space_provider.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/edit_space_provider.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/provider/edit_space_provider.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/edit_space_provider.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/provider/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/provider/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/index.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/provider/reducers/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/reducers/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/provider/reducers/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/provider/reducers/index.ts diff --git a/x-pack/plugins/spaces/public/management/edit_space/reserved_space_badge.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/reserved_space_badge.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/reserved_space_badge.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/reserved_space_badge.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/reserved_space_badge.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/reserved_space_badge.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/reserved_space_badge.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/reserved_space_badge.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assign_role_privilege_form.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.test.tsx diff --git a/x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx b/x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/edit_space/roles/component/space_assigned_roles_table.tsx diff --git a/x-pack/plugins/spaces/public/management/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/index.ts diff --git a/x-pack/plugins/spaces/public/management/lib/feature_utils.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/feature_utils.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/feature_utils.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/feature_utils.test.ts diff --git a/x-pack/plugins/spaces/public/management/lib/feature_utils.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/feature_utils.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/feature_utils.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/feature_utils.ts diff --git a/x-pack/plugins/spaces/public/management/lib/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/index.ts diff --git a/x-pack/plugins/spaces/public/management/lib/sort_roles.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/sort_roles.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/sort_roles.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/sort_roles.test.ts diff --git a/x-pack/plugins/spaces/public/management/lib/sort_roles.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/sort_roles.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/sort_roles.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/sort_roles.ts diff --git a/x-pack/plugins/spaces/public/management/lib/space_identifier_utils.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/space_identifier_utils.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/space_identifier_utils.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/space_identifier_utils.test.ts diff --git a/x-pack/plugins/spaces/public/management/lib/space_identifier_utils.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/space_identifier_utils.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/space_identifier_utils.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/space_identifier_utils.ts diff --git a/x-pack/plugins/spaces/public/management/lib/validate_space.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/validate_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/validate_space.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/validate_space.test.ts diff --git a/x-pack/plugins/spaces/public/management/lib/validate_space.ts b/x-pack/platform/plugins/shared/spaces/public/management/lib/validate_space.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/lib/validate_space.ts rename to x-pack/platform/plugins/shared/spaces/public/management/lib/validate_space.ts diff --git a/x-pack/plugins/spaces/public/management/management_service.test.ts b/x-pack/platform/plugins/shared/spaces/public/management/management_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/management_service.test.ts rename to x-pack/platform/plugins/shared/spaces/public/management/management_service.test.ts diff --git a/x-pack/plugins/spaces/public/management/management_service.tsx b/x-pack/platform/plugins/shared/spaces/public/management/management_service.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/management_service.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/management_service.tsx diff --git a/x-pack/plugins/spaces/public/management/privilege_api_client.mock.ts b/x-pack/platform/plugins/shared/spaces/public/management/privilege_api_client.mock.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/privilege_api_client.mock.ts rename to x-pack/platform/plugins/shared/spaces/public/management/privilege_api_client.mock.ts diff --git a/x-pack/plugins/spaces/public/management/roles_api_client.mock.ts b/x-pack/platform/plugins/shared/spaces/public/management/roles_api_client.mock.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/roles_api_client.mock.ts rename to x-pack/platform/plugins/shared/spaces/public/management/roles_api_client.mock.ts diff --git a/x-pack/plugins/spaces/public/management/security_license.mock.ts b/x-pack/platform/plugins/shared/spaces/public/management/security_license.mock.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/security_license.mock.ts rename to x-pack/platform/plugins/shared/spaces/public/management/security_license.mock.ts diff --git a/x-pack/plugins/spaces/public/management/spaces_grid/index.ts b/x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/spaces_grid/index.ts rename to x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/index.ts diff --git a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/spaces_grid_page.test.tsx diff --git a/x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx b/x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/spaces_grid_page.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/spaces_grid/spaces_grid_page.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/spaces_grid/spaces_grid_page.tsx diff --git a/x-pack/plugins/spaces/public/management/spaces_management_app.test.tsx b/x-pack/platform/plugins/shared/spaces/public/management/spaces_management_app.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/spaces_management_app.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/spaces_management_app.test.tsx diff --git a/x-pack/plugins/spaces/public/management/spaces_management_app.tsx b/x-pack/platform/plugins/shared/spaces/public/management/spaces_management_app.tsx similarity index 100% rename from x-pack/plugins/spaces/public/management/spaces_management_app.tsx rename to x-pack/platform/plugins/shared/spaces/public/management/spaces_management_app.tsx diff --git a/x-pack/plugins/spaces/public/management/types.ts b/x-pack/platform/plugins/shared/spaces/public/management/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/management/types.ts rename to x-pack/platform/plugins/shared/spaces/public/management/types.ts diff --git a/x-pack/plugins/spaces/public/mocks.ts b/x-pack/platform/plugins/shared/spaces/public/mocks.ts similarity index 100% rename from x-pack/plugins/spaces/public/mocks.ts rename to x-pack/platform/plugins/shared/spaces/public/mocks.ts diff --git a/x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/nav_control/__snapshots__/nav_control_popover.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/nav_control/components/__snapshots__/manage_spaces_button.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/__snapshots__/manage_spaces_button.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/__snapshots__/manage_spaces_button.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/__snapshots__/manage_spaces_button.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/nav_control/components/manage_spaces_button.test.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/manage_spaces_button.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/manage_spaces_button.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/manage_spaces_button.test.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/components/manage_spaces_button.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/manage_spaces_button.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/manage_spaces_button.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/manage_spaces_button.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/components/spaces_description.scss b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_description.scss similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/spaces_description.scss rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_description.scss diff --git a/x-pack/plugins/spaces/public/nav_control/components/spaces_description.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_description.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/spaces_description.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_description.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/components/spaces_menu.scss b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_menu.scss similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/spaces_menu.scss rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_menu.scss diff --git a/x-pack/plugins/spaces/public/nav_control/components/spaces_menu.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_menu.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/components/spaces_menu.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/components/spaces_menu.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/index.ts b/x-pack/platform/plugins/shared/spaces/public/nav_control/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/index.ts rename to x-pack/platform/plugins/shared/spaces/public/nav_control/index.ts diff --git a/x-pack/plugins/spaces/public/nav_control/nav_control.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/nav_control.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/nav_control_popover.test.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control_popover.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/nav_control_popover.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control_popover.test.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/nav_control_popover.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control_popover.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/nav_control_popover.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/nav_control_popover.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/solution_view_tour/index.ts b/x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/solution_view_tour/index.ts rename to x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/index.ts diff --git a/x-pack/plugins/spaces/public/nav_control/solution_view_tour/lib.ts b/x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/lib.ts similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/solution_view_tour/lib.ts rename to x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/lib.ts diff --git a/x-pack/plugins/spaces/public/nav_control/solution_view_tour/solution_view_tour.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/solution_view_tour.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/solution_view_tour/solution_view_tour.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/solution_view_tour/solution_view_tour.tsx diff --git a/x-pack/plugins/spaces/public/nav_control/types.tsx b/x-pack/platform/plugins/shared/spaces/public/nav_control/types.tsx similarity index 100% rename from x-pack/plugins/spaces/public/nav_control/types.tsx rename to x-pack/platform/plugins/shared/spaces/public/nav_control/types.tsx diff --git a/x-pack/plugins/spaces/public/plugin.test.ts b/x-pack/platform/plugins/shared/spaces/public/plugin.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/plugin.test.ts rename to x-pack/platform/plugins/shared/spaces/public/plugin.test.ts diff --git a/x-pack/plugins/spaces/public/plugin.tsx b/x-pack/platform/plugins/shared/spaces/public/plugin.tsx similarity index 100% rename from x-pack/plugins/spaces/public/plugin.tsx rename to x-pack/platform/plugins/shared/spaces/public/plugin.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/alias_table.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/alias_table.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/alias_table.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/alias_table.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/index.ts b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/index.ts rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/index.ts diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/no_spaces_available.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/no_spaces_available.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/no_spaces_available.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/no_spaces_available.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/relatives_footer.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/relatives_footer.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/relatives_footer.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/relatives_footer.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.scss b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.scss similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.scss rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.scss diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/selectable_spaces_control.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_mode_control.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.scss b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.scss similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.scss rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.scss diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.test.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_flyout_internal.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/share_to_space_form.tsx diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/components/types.ts b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/components/types.ts rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/components/types.ts diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/index.ts b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/index.ts rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/index.ts diff --git a/x-pack/plugins/spaces/public/share_saved_objects_to_space/types.ts b/x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/share_saved_objects_to_space/types.ts rename to x-pack/platform/plugins/shared/spaces/public/share_saved_objects_to_space/types.ts diff --git a/x-pack/plugins/spaces/public/space_avatar/index.ts b/x-pack/platform/plugins/shared/spaces/public/space_avatar/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/index.ts rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/index.ts diff --git a/x-pack/plugins/spaces/public/space_avatar/space_attributes.test.ts b/x-pack/platform/plugins/shared/spaces/public/space_avatar/space_attributes.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/space_attributes.test.ts rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/space_attributes.test.ts diff --git a/x-pack/plugins/spaces/public/space_avatar/space_attributes.ts b/x-pack/platform/plugins/shared/spaces/public/space_avatar/space_attributes.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/space_attributes.ts rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/space_attributes.ts diff --git a/x-pack/plugins/spaces/public/space_avatar/space_avatar.tsx b/x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/space_avatar.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar.tsx diff --git a/x-pack/plugins/spaces/public/space_avatar/space_avatar_internal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar_internal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/space_avatar_internal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar_internal.test.tsx diff --git a/x-pack/plugins/spaces/public/space_avatar/space_avatar_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/space_avatar_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/space_avatar_internal.tsx diff --git a/x-pack/plugins/spaces/public/space_avatar/types.ts b/x-pack/platform/plugins/shared/spaces/public/space_avatar/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_avatar/types.ts rename to x-pack/platform/plugins/shared/spaces/public/space_avatar/types.ts diff --git a/x-pack/plugins/spaces/public/space_list/index.ts b/x-pack/platform/plugins/shared/spaces/public/space_list/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_list/index.ts rename to x-pack/platform/plugins/shared/spaces/public/space_list/index.ts diff --git a/x-pack/plugins/spaces/public/space_list/space_list.tsx b/x-pack/platform/plugins/shared/spaces/public/space_list/space_list.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_list/space_list.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_list/space_list.tsx diff --git a/x-pack/plugins/spaces/public/space_list/space_list_internal.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_list/space_list_internal.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_list/space_list_internal.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_list/space_list_internal.test.tsx diff --git a/x-pack/plugins/spaces/public/space_list/space_list_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/space_list/space_list_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_list/space_list_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_list/space_list_internal.tsx diff --git a/x-pack/plugins/spaces/public/space_list/types.ts b/x-pack/platform/plugins/shared/spaces/public/space_list/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_list/types.ts rename to x-pack/platform/plugins/shared/spaces/public/space_list/types.ts diff --git a/x-pack/plugins/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/space_selector/__snapshots__/space_selector.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/space_selector/components/index.ts b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/index.ts rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/index.ts diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_card.scss b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.scss similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_card.scss rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.scss diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_card.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_card.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.test.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_card.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_card.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_card.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_cards.scss b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.scss similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_cards.scss rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.scss diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_cards.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_cards.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.test.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/components/space_cards.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/components/space_cards.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/components/space_cards.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/index.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/index.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/index.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/index.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/space_selector.scss b/x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.scss similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/space_selector.scss rename to x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.scss diff --git a/x-pack/plugins/spaces/public/space_selector/space_selector.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/space_selector.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.test.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/space_selector.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/space_selector.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector.tsx diff --git a/x-pack/plugins/spaces/public/space_selector/space_selector_app.tsx b/x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector_app.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_selector/space_selector_app.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_selector/space_selector_app.tsx diff --git a/x-pack/plugins/spaces/public/space_solution_badge/__snapshots__/badge.test.tsx.snap b/x-pack/platform/plugins/shared/spaces/public/space_solution_badge/__snapshots__/badge.test.tsx.snap similarity index 100% rename from x-pack/plugins/spaces/public/space_solution_badge/__snapshots__/badge.test.tsx.snap rename to x-pack/platform/plugins/shared/spaces/public/space_solution_badge/__snapshots__/badge.test.tsx.snap diff --git a/x-pack/plugins/spaces/public/space_solution_badge/badge.test.tsx b/x-pack/platform/plugins/shared/spaces/public/space_solution_badge/badge.test.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_solution_badge/badge.test.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_solution_badge/badge.test.tsx diff --git a/x-pack/plugins/spaces/public/space_solution_badge/badge.tsx b/x-pack/platform/plugins/shared/spaces/public/space_solution_badge/badge.tsx similarity index 100% rename from x-pack/plugins/spaces/public/space_solution_badge/badge.tsx rename to x-pack/platform/plugins/shared/spaces/public/space_solution_badge/badge.tsx diff --git a/x-pack/plugins/spaces/public/space_solution_badge/index.ts b/x-pack/platform/plugins/shared/spaces/public/space_solution_badge/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/space_solution_badge/index.ts rename to x-pack/platform/plugins/shared/spaces/public/space_solution_badge/index.ts diff --git a/x-pack/plugins/spaces/public/spaces_context/context.tsx b/x-pack/platform/plugins/shared/spaces/public/spaces_context/context.tsx similarity index 100% rename from x-pack/plugins/spaces/public/spaces_context/context.tsx rename to x-pack/platform/plugins/shared/spaces/public/spaces_context/context.tsx diff --git a/x-pack/plugins/spaces/public/spaces_context/index.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_context/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_context/index.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_context/index.ts diff --git a/x-pack/plugins/spaces/public/spaces_context/types.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_context/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_context/types.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_context/types.ts diff --git a/x-pack/plugins/spaces/public/spaces_context/wrapper.tsx b/x-pack/platform/plugins/shared/spaces/public/spaces_context/wrapper.tsx similarity index 100% rename from x-pack/plugins/spaces/public/spaces_context/wrapper.tsx rename to x-pack/platform/plugins/shared/spaces/public/spaces_context/wrapper.tsx diff --git a/x-pack/plugins/spaces/public/spaces_context/wrapper_internal.tsx b/x-pack/platform/plugins/shared/spaces/public/spaces_context/wrapper_internal.tsx similarity index 100% rename from x-pack/plugins/spaces/public/spaces_context/wrapper_internal.tsx rename to x-pack/platform/plugins/shared/spaces/public/spaces_context/wrapper_internal.tsx diff --git a/x-pack/plugins/spaces/public/spaces_manager/index.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_manager/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_manager/index.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_manager/index.ts diff --git a/x-pack/plugins/spaces/public/spaces_manager/mocks.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_manager/mocks.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_manager/mocks.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_manager/mocks.ts diff --git a/x-pack/plugins/spaces/public/spaces_manager/spaces_manager.mock.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.mock.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_manager/spaces_manager.mock.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.mock.ts diff --git a/x-pack/plugins/spaces/public/spaces_manager/spaces_manager.test.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.test.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_manager/spaces_manager.test.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.test.ts diff --git a/x-pack/plugins/spaces/public/spaces_manager/spaces_manager.ts b/x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.ts similarity index 100% rename from x-pack/plugins/spaces/public/spaces_manager/spaces_manager.ts rename to x-pack/platform/plugins/shared/spaces/public/spaces_manager/spaces_manager.ts diff --git a/x-pack/plugins/spaces/public/suspense_error_boundary/index.ts b/x-pack/platform/plugins/shared/spaces/public/suspense_error_boundary/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/suspense_error_boundary/index.ts rename to x-pack/platform/plugins/shared/spaces/public/suspense_error_boundary/index.ts diff --git a/x-pack/plugins/spaces/public/suspense_error_boundary/suspense_error_boundary.tsx b/x-pack/platform/plugins/shared/spaces/public/suspense_error_boundary/suspense_error_boundary.tsx similarity index 100% rename from x-pack/plugins/spaces/public/suspense_error_boundary/suspense_error_boundary.tsx rename to x-pack/platform/plugins/shared/spaces/public/suspense_error_boundary/suspense_error_boundary.tsx diff --git a/x-pack/plugins/spaces/public/types.ts b/x-pack/platform/plugins/shared/spaces/public/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/types.ts rename to x-pack/platform/plugins/shared/spaces/public/types.ts diff --git a/x-pack/plugins/spaces/public/ui_api/components.tsx b/x-pack/platform/plugins/shared/spaces/public/ui_api/components.tsx similarity index 100% rename from x-pack/plugins/spaces/public/ui_api/components.tsx rename to x-pack/platform/plugins/shared/spaces/public/ui_api/components.tsx diff --git a/x-pack/plugins/spaces/public/ui_api/index.ts b/x-pack/platform/plugins/shared/spaces/public/ui_api/index.ts similarity index 100% rename from x-pack/plugins/spaces/public/ui_api/index.ts rename to x-pack/platform/plugins/shared/spaces/public/ui_api/index.ts diff --git a/x-pack/plugins/spaces/public/ui_api/lazy_wrapper.tsx b/x-pack/platform/plugins/shared/spaces/public/ui_api/lazy_wrapper.tsx similarity index 100% rename from x-pack/plugins/spaces/public/ui_api/lazy_wrapper.tsx rename to x-pack/platform/plugins/shared/spaces/public/ui_api/lazy_wrapper.tsx diff --git a/x-pack/plugins/spaces/public/ui_api/types.ts b/x-pack/platform/plugins/shared/spaces/public/ui_api/types.ts similarity index 100% rename from x-pack/plugins/spaces/public/ui_api/types.ts rename to x-pack/platform/plugins/shared/spaces/public/ui_api/types.ts diff --git a/x-pack/plugins/spaces/server/capabilities/capabilities_provider.test.ts b/x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_provider.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/capabilities/capabilities_provider.test.ts rename to x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_provider.test.ts diff --git a/x-pack/plugins/spaces/server/capabilities/capabilities_provider.ts b/x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_provider.ts similarity index 100% rename from x-pack/plugins/spaces/server/capabilities/capabilities_provider.ts rename to x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_provider.ts diff --git a/x-pack/plugins/spaces/server/capabilities/capabilities_switcher.test.ts b/x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_switcher.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/capabilities/capabilities_switcher.test.ts rename to x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_switcher.test.ts diff --git a/x-pack/plugins/spaces/server/capabilities/capabilities_switcher.ts b/x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_switcher.ts similarity index 100% rename from x-pack/plugins/spaces/server/capabilities/capabilities_switcher.ts rename to x-pack/platform/plugins/shared/spaces/server/capabilities/capabilities_switcher.ts diff --git a/x-pack/plugins/spaces/server/capabilities/index.ts b/x-pack/platform/plugins/shared/spaces/server/capabilities/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/capabilities/index.ts rename to x-pack/platform/plugins/shared/spaces/server/capabilities/index.ts diff --git a/x-pack/plugins/spaces/server/config.test.ts b/x-pack/platform/plugins/shared/spaces/server/config.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/config.test.ts rename to x-pack/platform/plugins/shared/spaces/server/config.test.ts diff --git a/x-pack/plugins/spaces/server/config.ts b/x-pack/platform/plugins/shared/spaces/server/config.ts similarity index 100% rename from x-pack/plugins/spaces/server/config.ts rename to x-pack/platform/plugins/shared/spaces/server/config.ts diff --git a/x-pack/plugins/spaces/server/default_space/create_default_space.test.ts b/x-pack/platform/plugins/shared/spaces/server/default_space/create_default_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/default_space/create_default_space.test.ts rename to x-pack/platform/plugins/shared/spaces/server/default_space/create_default_space.test.ts diff --git a/x-pack/plugins/spaces/server/default_space/create_default_space.ts b/x-pack/platform/plugins/shared/spaces/server/default_space/create_default_space.ts similarity index 100% rename from x-pack/plugins/spaces/server/default_space/create_default_space.ts rename to x-pack/platform/plugins/shared/spaces/server/default_space/create_default_space.ts diff --git a/x-pack/plugins/spaces/server/default_space/default_space_service.test.ts b/x-pack/platform/plugins/shared/spaces/server/default_space/default_space_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/default_space/default_space_service.test.ts rename to x-pack/platform/plugins/shared/spaces/server/default_space/default_space_service.test.ts diff --git a/x-pack/plugins/spaces/server/default_space/default_space_service.ts b/x-pack/platform/plugins/shared/spaces/server/default_space/default_space_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/default_space/default_space_service.ts rename to x-pack/platform/plugins/shared/spaces/server/default_space/default_space_service.ts diff --git a/x-pack/plugins/spaces/server/default_space/index.ts b/x-pack/platform/plugins/shared/spaces/server/default_space/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/default_space/index.ts rename to x-pack/platform/plugins/shared/spaces/server/default_space/index.ts diff --git a/x-pack/plugins/spaces/server/index.ts b/x-pack/platform/plugins/shared/spaces/server/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/index.ts rename to x-pack/platform/plugins/shared/spaces/server/index.ts diff --git a/x-pack/plugins/spaces/server/lib/__fixtures__/index.ts b/x-pack/platform/plugins/shared/spaces/server/lib/__fixtures__/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/__fixtures__/index.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/__fixtures__/index.ts diff --git a/x-pack/plugins/spaces/server/lib/__fixtures__/spaces_config.ts b/x-pack/platform/plugins/shared/spaces/server/lib/__fixtures__/spaces_config.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/__fixtures__/spaces_config.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/__fixtures__/spaces_config.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/copy_to_spaces.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/copy_to_spaces.test.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/copy_to_spaces.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/copy_to_spaces.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/copy_to_spaces.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/index.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/index.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/index.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/create_empty_failure_response.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/create_empty_failure_response.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/create_empty_failure_response.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/create_empty_failure_response.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/get_ineligible_types.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/get_ineligible_types.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/get_ineligible_types.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/get_ineligible_types.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/read_stream_to_completion.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/read_stream_to_completion.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/read_stream_to_completion.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/read_stream_to_completion.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/readable_stream_from_array.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/readable_stream_from_array.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/readable_stream_from_array.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/readable_stream_from_array.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/saved_objects_client_opts.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/saved_objects_client_opts.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/lib/saved_objects_client_opts.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/lib/saved_objects_client_opts.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.test.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/resolve_copy_conflicts.ts diff --git a/x-pack/plugins/spaces/server/lib/copy_to_spaces/types.ts b/x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/types.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/copy_to_spaces/types.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/copy_to_spaces/types.ts diff --git a/x-pack/plugins/spaces/server/lib/errors.ts b/x-pack/platform/plugins/shared/spaces/server/lib/errors.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/errors.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/errors.ts diff --git a/x-pack/plugins/spaces/server/lib/get_space_selector_url.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/get_space_selector_url.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/get_space_selector_url.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/get_space_selector_url.test.ts diff --git a/x-pack/plugins/spaces/server/lib/get_space_selector_url.ts b/x-pack/platform/plugins/shared/spaces/server/lib/get_space_selector_url.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/get_space_selector_url.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/get_space_selector_url.ts diff --git a/x-pack/plugins/spaces/server/lib/request_interceptors/index.ts b/x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/request_interceptors/index.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/index.ts diff --git a/x-pack/plugins/spaces/server/lib/request_interceptors/on_post_auth_interceptor.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_post_auth_interceptor.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/request_interceptors/on_post_auth_interceptor.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_post_auth_interceptor.test.ts diff --git a/x-pack/plugins/spaces/server/lib/request_interceptors/on_post_auth_interceptor.ts b/x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_post_auth_interceptor.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/request_interceptors/on_post_auth_interceptor.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_post_auth_interceptor.ts diff --git a/x-pack/plugins/spaces/server/lib/request_interceptors/on_request_interceptor.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_request_interceptor.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/request_interceptors/on_request_interceptor.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_request_interceptor.test.ts diff --git a/x-pack/plugins/spaces/server/lib/request_interceptors/on_request_interceptor.ts b/x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_request_interceptor.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/request_interceptors/on_request_interceptor.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/request_interceptors/on_request_interceptor.ts diff --git a/x-pack/plugins/spaces/server/lib/space_schema.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/space_schema.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/space_schema.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/space_schema.test.ts diff --git a/x-pack/plugins/spaces/server/lib/space_schema.ts b/x-pack/platform/plugins/shared/spaces/server/lib/space_schema.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/space_schema.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/space_schema.ts diff --git a/x-pack/plugins/spaces/server/lib/spaces_tutorial_context_factory.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/spaces_tutorial_context_factory.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/spaces_tutorial_context_factory.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/spaces_tutorial_context_factory.test.ts diff --git a/x-pack/plugins/spaces/server/lib/spaces_tutorial_context_factory.ts b/x-pack/platform/plugins/shared/spaces/server/lib/spaces_tutorial_context_factory.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/spaces_tutorial_context_factory.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/spaces_tutorial_context_factory.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/__mocks__/index.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/__mocks__/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/__mocks__/index.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/__mocks__/index.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/namespace.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/namespace.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/namespace.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/namespace.test.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/namespace.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/namespace.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/namespace.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/namespace.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/space_solution_disabled_features.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/space_solution_disabled_features.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/space_solution_disabled_features.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/space_solution_disabled_features.test.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/space_solution_disabled_features.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/space_solution_disabled_features.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/space_solution_disabled_features.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/space_solution_disabled_features.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/url.test.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/url.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/url.test.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/url.test.ts diff --git a/x-pack/plugins/spaces/server/lib/utils/url.ts b/x-pack/platform/plugins/shared/spaces/server/lib/utils/url.ts similarity index 100% rename from x-pack/plugins/spaces/server/lib/utils/url.ts rename to x-pack/platform/plugins/shared/spaces/server/lib/utils/url.ts diff --git a/x-pack/plugins/spaces/server/mocks.ts b/x-pack/platform/plugins/shared/spaces/server/mocks.ts similarity index 100% rename from x-pack/plugins/spaces/server/mocks.ts rename to x-pack/platform/plugins/shared/spaces/server/mocks.ts diff --git a/x-pack/plugins/spaces/server/plugin.test.ts b/x-pack/platform/plugins/shared/spaces/server/plugin.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/plugin.test.ts rename to x-pack/platform/plugins/shared/spaces/server/plugin.test.ts diff --git a/x-pack/plugins/spaces/server/plugin.ts b/x-pack/platform/plugins/shared/spaces/server/plugin.ts similarity index 100% rename from x-pack/plugins/spaces/server/plugin.ts rename to x-pack/platform/plugins/shared/spaces/server/plugin.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/create_copy_to_space_mocks.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_copy_to_space_mocks.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/create_copy_to_space_mocks.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_copy_to_space_mocks.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/create_mock_so_repository.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_mock_so_repository.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/create_mock_so_repository.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_mock_so_repository.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/create_mock_so_service.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_mock_so_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/create_mock_so_service.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_mock_so_service.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/create_spaces.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_spaces.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/create_spaces.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/create_spaces.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/index.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/index.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/index.ts diff --git a/x-pack/plugins/spaces/server/routes/api/__fixtures__/route_contexts.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/route_contexts.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/__fixtures__/route_contexts.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/__fixtures__/route_contexts.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/copy_to_space.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/copy_to_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/copy_to_space.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/copy_to_space.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/copy_to_space.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/copy_to_space.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/copy_to_space.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/copy_to_space.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/delete.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/delete.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/delete.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/delete.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/delete.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/delete.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/delete.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/delete.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/disable_legacy_url_aliases.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/disable_legacy_url_aliases.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/disable_legacy_url_aliases.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/disable_legacy_url_aliases.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/disable_legacy_url_aliases.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/disable_legacy_url_aliases.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/disable_legacy_url_aliases.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/disable_legacy_url_aliases.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get_all.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_all.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get_all.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_all.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get_all.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_all.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get_all.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_all.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get_shareable_references.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_shareable_references.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get_shareable_references.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_shareable_references.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/get_shareable_references.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_shareable_references.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/get_shareable_references.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/get_shareable_references.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/index.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/index.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/index.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/post.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/post.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/post.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/post.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/post.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/post.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/post.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/post.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/put.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/put.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/put.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/put.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/put.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/put.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/put.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/put.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/update_objects_spaces.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/update_objects_spaces.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/update_objects_spaces.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/update_objects_spaces.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/external/update_objects_spaces.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/external/update_objects_spaces.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/external/update_objects_spaces.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/external/update_objects_spaces.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/get_active_space.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_active_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/get_active_space.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_active_space.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/get_active_space.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_active_space.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/get_active_space.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_active_space.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/get_content_summary.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_content_summary.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/get_content_summary.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_content_summary.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/get_content_summary.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_content_summary.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/get_content_summary.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/get_content_summary.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/index.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/index.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/index.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/set_solution_space.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/set_solution_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/set_solution_space.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/set_solution_space.test.ts diff --git a/x-pack/plugins/spaces/server/routes/api/internal/set_solution_space.ts b/x-pack/platform/plugins/shared/spaces/server/routes/api/internal/set_solution_space.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/api/internal/set_solution_space.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/api/internal/set_solution_space.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/convert_saved_object_to_space.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/convert_saved_object_to_space.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/convert_saved_object_to_space.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/convert_saved_object_to_space.test.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/convert_saved_object_to_space.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/convert_saved_object_to_space.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/convert_saved_object_to_space.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/convert_saved_object_to_space.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/index.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/index.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/index.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/licensed_route_handler.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/licensed_route_handler.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/licensed_route_handler.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/licensed_route_handler.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/parse_cloud_solution.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/parse_cloud_solution.test.ts diff --git a/x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts b/x-pack/platform/plugins/shared/spaces/server/routes/lib/parse_cloud_solution.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/lib/parse_cloud_solution.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/lib/parse_cloud_solution.ts diff --git a/x-pack/plugins/spaces/server/routes/views/index.test.ts b/x-pack/platform/plugins/shared/spaces/server/routes/views/index.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/views/index.test.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/views/index.test.ts diff --git a/x-pack/plugins/spaces/server/routes/views/index.ts b/x-pack/platform/plugins/shared/spaces/server/routes/views/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/routes/views/index.ts rename to x-pack/platform/plugins/shared/spaces/server/routes/views/index.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/index.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/index.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/index.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/mappings.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/mappings.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/mappings.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/mappings.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/migrations/index.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/migrations/index.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/index.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/migrations/space_migrations.test.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/space_migrations.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/migrations/space_migrations.test.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/space_migrations.test.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/migrations/space_migrations.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/space_migrations.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/migrations/space_migrations.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/space_migrations.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/migrations/usage_stats_migrations.test.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/usage_stats_migrations.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/migrations/usage_stats_migrations.test.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/usage_stats_migrations.test.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/migrations/usage_stats_migrations.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/usage_stats_migrations.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/migrations/usage_stats_migrations.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/migrations/usage_stats_migrations.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/saved_objects_service.test.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/saved_objects_service.test.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_service.test.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/saved_objects_service.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/saved_objects_service.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_service.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.test.mocks.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.test.mocks.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.test.mocks.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.test.mocks.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.test.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.test.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.test.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/saved_objects_spaces_extension.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/saved_objects_spaces_extension.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/schemas.test.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/schemas.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/schemas.test.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/schemas.test.ts diff --git a/x-pack/plugins/spaces/server/saved_objects/schemas.ts b/x-pack/platform/plugins/shared/spaces/server/saved_objects/schemas.ts similarity index 100% rename from x-pack/plugins/spaces/server/saved_objects/schemas.ts rename to x-pack/platform/plugins/shared/spaces/server/saved_objects/schemas.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/index.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/index.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/index.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client.mock.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.mock.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client.mock.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.mock.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client.test.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client.test.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.test.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client_service.mock.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.mock.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client_service.mock.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.mock.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client_service.test.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client_service.test.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.test.ts diff --git a/x-pack/plugins/spaces/server/spaces_client/spaces_client_service.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_client/spaces_client_service.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_client/spaces_client_service.ts diff --git a/x-pack/plugins/spaces/server/spaces_service/index.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_service/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_service/index.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_service/index.ts diff --git a/x-pack/plugins/spaces/server/spaces_service/spaces_service.mock.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.mock.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_service/spaces_service.mock.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.mock.ts diff --git a/x-pack/plugins/spaces/server/spaces_service/spaces_service.test.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_service/spaces_service.test.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.test.ts diff --git a/x-pack/plugins/spaces/server/spaces_service/spaces_service.ts b/x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/spaces_service/spaces_service.ts rename to x-pack/platform/plugins/shared/spaces/server/spaces_service/spaces_service.ts diff --git a/x-pack/plugins/spaces/server/types.ts b/x-pack/platform/plugins/shared/spaces/server/types.ts similarity index 100% rename from x-pack/plugins/spaces/server/types.ts rename to x-pack/platform/plugins/shared/spaces/server/types.ts diff --git a/x-pack/plugins/spaces/server/ui_settings.ts b/x-pack/platform/plugins/shared/spaces/server/ui_settings.ts similarity index 100% rename from x-pack/plugins/spaces/server/ui_settings.ts rename to x-pack/platform/plugins/shared/spaces/server/ui_settings.ts diff --git a/x-pack/plugins/spaces/server/usage_collection/index.ts b/x-pack/platform/plugins/shared/spaces/server/usage_collection/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_collection/index.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_collection/index.ts diff --git a/x-pack/plugins/spaces/server/usage_collection/spaces_usage_collector.test.ts b/x-pack/platform/plugins/shared/spaces/server/usage_collection/spaces_usage_collector.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_collection/spaces_usage_collector.test.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_collection/spaces_usage_collector.test.ts diff --git a/x-pack/plugins/spaces/server/usage_collection/spaces_usage_collector.ts b/x-pack/platform/plugins/shared/spaces/server/usage_collection/spaces_usage_collector.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_collection/spaces_usage_collector.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_collection/spaces_usage_collector.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/constants.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/constants.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/constants.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/constants.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/index.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/index.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/index.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/index.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/types.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/types.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/types.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/types.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_client.mock.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.mock.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_client.mock.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.mock.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_client.test.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_client.test.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.test.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_client.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_client.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_client.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_service.mock.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.mock.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_service.mock.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.mock.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_service.test.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.test.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_service.test.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.test.ts diff --git a/x-pack/plugins/spaces/server/usage_stats/usage_stats_service.ts b/x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.ts similarity index 100% rename from x-pack/plugins/spaces/server/usage_stats/usage_stats_service.ts rename to x-pack/platform/plugins/shared/spaces/server/usage_stats/usage_stats_service.ts diff --git a/x-pack/plugins/spaces/tsconfig.json b/x-pack/platform/plugins/shared/spaces/tsconfig.json similarity index 97% rename from x-pack/plugins/spaces/tsconfig.json rename to x-pack/platform/plugins/shared/spaces/tsconfig.json index 09a763061b5f0..993d446edf354 100644 --- a/x-pack/plugins/spaces/tsconfig.json +++ b/x-pack/platform/plugins/shared/spaces/tsconfig.json @@ -1,5 +1,5 @@ { - "extends": "../../../tsconfig.base.json", + "extends": "../../../../../tsconfig.base.json", "compilerOptions": { "outDir": "target/types", }, diff --git a/x-pack/plugins/encrypted_saved_objects/jest.config.js b/x-pack/plugins/encrypted_saved_objects/jest.config.js deleted file mode 100644 index 78bfae78227db..0000000000000 --- a/x-pack/plugins/encrypted_saved_objects/jest.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/encrypted_saved_objects'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/encrypted_saved_objects', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/encrypted_saved_objects/server/**/*.{ts,tsx}'], -}; diff --git a/x-pack/plugins/security/jest.config.js b/x-pack/plugins/security/jest.config.js deleted file mode 100644 index bc9a651eb78bf..0000000000000 --- a/x-pack/plugins/security/jest.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/security'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/security', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/security/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/x-pack/plugins/spaces/jest.config.js b/x-pack/plugins/spaces/jest.config.js deleted file mode 100644 index 791f82af86ce0..0000000000000 --- a/x-pack/plugins/spaces/jest.config.js +++ /dev/null @@ -1,15 +0,0 @@ -/* - * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one - * or more contributor license agreements. Licensed under the Elastic License - * 2.0; you may not use this file except in compliance with the Elastic License - * 2.0. - */ - -module.exports = { - preset: '@kbn/test', - rootDir: '../../..', - roots: ['/x-pack/plugins/spaces'], - coverageDirectory: '/target/kibana-coverage/jest/x-pack/plugins/spaces', - coverageReporters: ['text', 'html'], - collectCoverageFrom: ['/x-pack/plugins/spaces/{common,public,server}/**/*.{ts,tsx}'], -}; diff --git a/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts b/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts index df985813fea61..8ca1fc6637f8d 100644 --- a/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts +++ b/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/routes/notes/get_notes.ts @@ -152,7 +152,7 @@ export const getNotesRoute = ( if (createdByFilter) { // because the notes createdBy property can be either full_name, email or username // see pickSaveNote (https://github.com/elastic/kibana/blob/main/x-pack/solutions/security/plugins/security_solution/server/lib/timeline/saved_object/notes/saved_object.ts#L302) - // which uses the getUserDisplayName (https://github.com/elastic/kibana/blob/main/packages/kbn-user-profile-components/src/user_profile.ts#L138) + // which uses the getUserDisplayName (https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-user-profile-components/src/user_profile.ts#L138) const [_, { security }] = await startServices(); const users: UserProfile[] = await security.userProfiles.bulkGet({ uids: new Set([createdByFilter]), diff --git a/yarn.lock b/yarn.lock index ecada13e0a67d..a332f1442d7c9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5175,7 +5175,7 @@ version "0.0.0" uid "" -"@kbn/crypto@link:packages/kbn-crypto": +"@kbn/crypto@link:src/platform/packages/shared/kbn-crypto": version "0.0.0" uid "" @@ -5439,7 +5439,7 @@ version "0.0.0" uid "" -"@kbn/encrypted-saved-objects-plugin@link:x-pack/plugins/encrypted_saved_objects": +"@kbn/encrypted-saved-objects-plugin@link:x-pack/platform/plugins/shared/encrypted_saved_objects": version "0.0.0" uid "" @@ -5843,7 +5843,7 @@ version "0.0.0" uid "" -"@kbn/handlebars@link:packages/kbn-handlebars": +"@kbn/handlebars@link:src/platform/packages/private/kbn-handlebars": version "0.0.0" uid "" @@ -5967,7 +5967,7 @@ version "0.0.0" uid "" -"@kbn/interactive-setup-plugin@link:src/plugins/interactive_setup": +"@kbn/interactive-setup-plugin@link:src/platform/plugins/private/interactive_setup": version "0.0.0" uid "" @@ -6843,7 +6843,7 @@ version "0.0.0" uid "" -"@kbn/safer-lodash-set@link:packages/kbn-safer-lodash-set": +"@kbn/safer-lodash-set@link:src/platform/packages/shared/kbn-safer-lodash-set": version "0.0.0" uid "" @@ -7023,43 +7023,43 @@ version "0.0.0" uid "" -"@kbn/security-api-key-management@link:x-pack/packages/security/api_key_management": +"@kbn/security-api-key-management@link:x-pack/platform/packages/shared/security/api_key_management": version "0.0.0" uid "" -"@kbn/security-authorization-core-common@link:x-pack/packages/security/authorization_core_common": +"@kbn/security-authorization-core-common@link:x-pack/platform/packages/private/security/authorization_core_common": version "0.0.0" uid "" -"@kbn/security-authorization-core@link:x-pack/packages/security/authorization_core": +"@kbn/security-authorization-core@link:x-pack/platform/packages/private/security/authorization_core": version "0.0.0" uid "" -"@kbn/security-form-components@link:x-pack/packages/security/form_components": +"@kbn/security-form-components@link:x-pack/platform/packages/shared/security/form_components": version "0.0.0" uid "" -"@kbn/security-hardening@link:packages/kbn-security-hardening": +"@kbn/security-hardening@link:src/platform/packages/shared/kbn-security-hardening": version "0.0.0" uid "" -"@kbn/security-plugin-types-common@link:x-pack/packages/security/plugin_types_common": +"@kbn/security-plugin-types-common@link:x-pack/platform/packages/shared/security/plugin_types_common": version "0.0.0" uid "" -"@kbn/security-plugin-types-public@link:x-pack/packages/security/plugin_types_public": +"@kbn/security-plugin-types-public@link:x-pack/platform/packages/shared/security/plugin_types_public": version "0.0.0" uid "" -"@kbn/security-plugin-types-server@link:x-pack/packages/security/plugin_types_server": +"@kbn/security-plugin-types-server@link:x-pack/platform/packages/shared/security/plugin_types_server": version "0.0.0" uid "" -"@kbn/security-plugin@link:x-pack/plugins/security": +"@kbn/security-plugin@link:x-pack/platform/plugins/shared/security": version "0.0.0" uid "" -"@kbn/security-role-management-model@link:x-pack/packages/security/role_management_model": +"@kbn/security-role-management-model@link:x-pack/platform/packages/private/security/role_management_model": version "0.0.0" uid "" @@ -7107,7 +7107,7 @@ version "0.0.0" uid "" -"@kbn/security-ui-components@link:x-pack/packages/security/ui_components": +"@kbn/security-ui-components@link:x-pack/platform/packages/private/security/ui_components": version "0.0.0" uid "" @@ -7495,7 +7495,7 @@ version "0.0.0" uid "" -"@kbn/spaces-plugin@link:x-pack/plugins/spaces": +"@kbn/spaces-plugin@link:x-pack/platform/plugins/shared/spaces": version "0.0.0" uid "" @@ -7835,7 +7835,7 @@ version "0.0.0" uid "" -"@kbn/user-profile-components@link:packages/kbn-user-profile-components": +"@kbn/user-profile-components@link:src/platform/packages/shared/kbn-user-profile-components": version "0.0.0" uid ""