-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-cloud-security-posture
#202862
Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-cloud-security-posture
#202862
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
Pinging @elastic/kibana-core (Team:Core) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security) |
f78242c
to
8544578
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did a quick check for CSPM plugin and it works.
Fixed linting errors in CI
However, the CI is failing on unused i18n translations but they are in fact used
Thanks for the contributions! The i18n issue might be caused by outdated paths in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code ql config changes LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed lint errors. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Security solutions changes LGTM!
61f8c78
to
949e653
Compare
I needed to run the relocate script again to fix conflicts. |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .github/CODEOWNERS # .github/codeql/codeql-config.yml # package.json # tsconfig.base.json
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .github/CODEOWNERS # .github/codeql/codeql-config.yml # package.json # tsconfig.base.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .github/CODEOWNERS # .github/codeql/codeql-config.yml # package.json # tsconfig.base.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .github/CODEOWNERS # .github/codeql/codeql-config.yml # package.json # tsconfig.base.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .github/CODEOWNERS
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .buildkite/scripts/pipelines/pull_request/pipeline.ts # .github/CODEOWNERS # x-pack/.i18nrc.json # x-pack/plugins/telemetry_collection_xpack/schema/xpack_security.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…na-cloud-security-posture` (elastic#202862) (cherry picked from commit f508ad2) # Conflicts: # .buildkite/scripts/pipelines/pull_request/pipeline.ts # .github/CODEOWNERS # x-pack/.i18nrc.json # x-pack/plugins/telemetry_collection_xpack/schema/xpack_security.json
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
…c/kibana-cloud-security-posture` (#202862) (#204474) # Backport This will backport the following commits from `main` to `8.x`: - [Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-cloud-security-posture` (#202862)](#202862) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"gerard.soldevila@elastic.co"},"sourceCommit":{"committedDate":"2024-12-16T17:56:03Z","message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-cloud-security-posture` (#202862)","sha":"f508ad2bf69745a020cf325089087b29b2d97625","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","Team: SecuritySolution","Team:Cloud Security","backport:prev-minor","ci:cloud-deploy"],"number":202862,"url":"https://github.com/elastic/kibana/pull/202862","mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-cloud-security-posture` (#202862)","sha":"f508ad2bf69745a020cf325089087b29b2d97625"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/202862","number":202862,"mergeCommit":{"message":"Sustainable Kibana Architecture: Move modules owned by `@elastic/kibana-cloud-security-posture` (#202862)","sha":"f508ad2bf69745a020cf325089087b29b2d97625"}}]}] BACKPORT--> --------- Co-authored-by: Gerard Soldevila <gerard.soldevila@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…r Kibana sustainability (#204500) ## Summary Move @kbn/cloud-security-posture-storybook-config package to `x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook` Renamed removed the `config` folder to align with the `.storybook` [naming convention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21). ![Screenshot 2024-12-16 at 5 50 53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43) ### Related Issues - #202862 --------- Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
…r Kibana sustainability (elastic#204500) ## Summary Move @kbn/cloud-security-posture-storybook-config package to `x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook` Renamed removed the `config` folder to align with the `.storybook` [naming convention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21). ![Screenshot 2024-12-16 at 5 50 53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43) ### Related Issues - elastic#202862 --------- Co-authored-by: Brad White <Ikuni17@users.noreply.github.com> (cherry picked from commit d6cb398)
## Summary Clean-up all "Asset Inventory" plugin code from the `8.x` branch. ### Motivation It was decided in the weekly meetings not to backport any work related to Asset Inventory because it's a new feature. However, this decision was made after I had already shipped the first PR that introduced all the minimal required boilerplate: - #202291 which was backported with: - #202827 I couldn't auto revert the merge commit because of this refactor PR that was merged in between: - #202862 So I'm deleting and reverting each change manually. ### Checklist - [x] If a plugin configuration key changed, check if it needs to be allowlisted in the cloud and added to the [docker list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker) - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Risks No risk at all.
…na-cloud-security-posture` (elastic#202862)
…r Kibana sustainability (elastic#204500) ## Summary Move @kbn/cloud-security-posture-storybook-config package to `x-pack/solutions/security/packages/kbn-cloud-security-posture/.storybook` Renamed removed the `config` folder to align with the `.storybook` [naming convention](https://github.com/elastic/kibana/pull/204500/files#diff-91918a63f6365a8f40f674ab54a8df7ce9aeb313f77fe8eda76284d712ef5425R21). ![Screenshot 2024-12-16 at 5 50 53 PM](https://github.com/user-attachments/assets/de1d0a81-353f-434c-bb2d-989210b35b43) ### Related Issues - elastic#202862 --------- Co-authored-by: Brad White <Ikuni17@users.noreply.github.com>
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
packages[\/\\]
andplugins[\/\\]
patterns in the source code (Babel and Eslint config files), and update them appropriately..buildkite/scripts/pipelines/pull_request/pipeline.ts
to ensure that any CI pipeline customizations continue to be correctly applied after the changed path names.ts
and.js
files listed in the sections below, as some of them contain relative paths that have been updated.Note
5 plugin(s) are going to be relocated:
@kbn/asset-inventory-plugin
x-pack/solutions/security/plugins/asset_inventory
@kbn/cloud-defend-plugin
x-pack/solutions/security/plugins/cloud_defend
@kbn/cloud-security-posture-plugin
x-pack/solutions/security/plugins/cloud_security_posture
@kbn/kubernetes-security-plugin
x-pack/solutions/security/plugins/kubernetes_security
@kbn/session-view-plugin
x-pack/solutions/security/plugins/session_view
4 packages(s) are going to be relocated:
@kbn/cloud-security-posture
x-pack/solutions/security/packages/kbn-cloud-security-posture/public
@kbn/cloud-security-posture-common
x-pack/platform/packages/shared/kbn-cloud-security-posture/common
@kbn/cloud-security-posture-graph
x-pack/solutions/security/packages/kbn-cloud-security-posture/graph
@kbn/security-solution-distribution-bar
x-pack/solutions/security/packages/distribution_bar
Updated references
Updated relative paths