## Summary Updating CSP aws texts in CSPM/KSPM Integration Updates Security Solution Snapshot for Security Solutions Dashboards. - Security-threat-hunting-team please review text change `xpack/plugins/security_solution/public/common/components/navigation/use_security_solution_navigation/__snapshots__/index.test.tsx.snap` Updates Cloud Security text in the guided card component. - platform-onboarding please review text change `packages/kbn-guided-onboarding/src/components/landing_page/guide_cards.constants.tsx` ## Elastic setup guide **Before**  **After** <img width="1728" alt="csp-setup-guides-after" src="https://user-images.githubusercontent.com/17135495/218892507-0b785ba0-bafa-4a37-8afb-b030fb58bfa8.png"> ```[tasklist] - [x] Update text on the elastic setup guide on the home page from "Secure my cloud assets with posture management" to "Secure my cloud assets with cloud security posture management (CSPM)" ``` ## Security Dashboards Before <img width="1715" alt="image" src="https://user-images.githubusercontent.com/17135495/219459184-39b3d97d-96a8-446d-a2f1-fa871f8a2d5d.png"> After <img width="1724" alt="image" src="https://user-images.githubusercontent.com/17135495/219458775-8ece8c84-c40e-481a-9454-648025f0fdbc.png"> ```[tasklist] - [x] Update text Cloud Security to `Cloud security Posture` ``` ## Empty States ### Main empty state **Before**  **After** <img width="865" alt="main-empty-state-after" src="https://user-images.githubusercontent.com/17135495/218892539-1170c435-ffbf-488f-a924-9afd96c80968.png"> ```[tasklist] - [x] Update placeholder text on the main empty state using the copy provided above - [x] Update the "Learn more" hyperlink so that it navigates users to https://ela.st/cspm instead of https://ela.st/getting-started-with-kspm ``` ### No agent installed empty state **Before**  **After** <img width="1729" alt="no-agents-empty-state" src="https://user-images.githubusercontent.com/17135495/218892571-513c9bef-9e30-4a77-bcbc-29c850f20c08.png"> ```[tasklist] - [x] Update placeholder text on the "No Agents Installed" empty state using the copy provided above ``` ## C/KSPM empty state Before  After kspm <img width="1479" alt="kspm empty state" src="https://user-images.githubusercontent.com/17135495/219456479-6a30028b-d128-4781-8e8e-8d2038cbfd96.png"> cspm <img width="1440" alt="cspm_dashboard_empty_state" src="https://user-images.githubusercontent.com/17135495/219456576-e79d8f7c-6c3e-4ceb-87b7-4405ff526f6f.png"> ```[tasklist] - [x] Update placeholder text for the empty state on the Cloud and Kubernetes tabs - [x] The hyperlink on the Cloud tab should direct users to https://ela.st/cspm, while the hyperlink on the Kubernetes tab should direct users to https://ela.st/kspm ``` ## Posture Score / Compliance Score **Before**   **After** <img width="1667" alt="Posture_score_column_dashboard" src="https://user-images.githubusercontent.com/17135495/218892597-1aa1c60e-e22b-493f-9dba-0b73a70c6193.png"> <img width="1909" alt="Posture_score_column_grouped_by_findings" src="https://user-images.githubusercontent.com/17135495/218892619-41b9e357-81b9-4c21-9c09-929797e3c7b0.png"> ```[tasklist] - [x] Change the `Compliance Score` column name to `Posture Score` on both the Cloud & Kubernetes tabs in the table where we list individual clusters and cloud accounts. - [x] Change the `Compliance Score` column name to `Posture Score` on the grouped-by-resource view of the findings page. ``` ## Posture Dashboard **Before**   **After** <img width="953" alt="KSPM_Posture_Dasboard_Title_rename" src="https://user-images.githubusercontent.com/17135495/218892915-fc38ec31-ad7c-467e-9173-7b27e402771f.png"> ```[tasklist] - [x] Update posture dashboard title from `Cloud Posture` to `Cloud Security Posture` - [x] Update the `Cloud Posture Score` title in the overall score section to `Overall Cloud Posture Score` on the Cloud tab and `Overall Kubernetes Posture Score` on the Kubernetes tab. - [x] Update Dashboard tile card title from `Cloud Posture` to `Cloud Security Posture` - [x] Update Breadcrumbs text from `Cloud Posture` to `Cloud Security Posture` ``` ## Integration **Before**   **After** CSPM Integration setup info text updates <img width="810" alt="cspm-aws-integraion-setup" src="https://user-images.githubusercontent.com/17135495/218892958-31e3263a-e6c0-40d4-a82f-92e93b932e22.png"> **KSPM Integeration setup info text updates** <img width="959" alt="kspm-aws-integration-setup" src="https://user-images.githubusercontent.com/17135495/218893048-6a850355-05ef-486f-8d96-1455adece779.png"> **CSPM removal link** <img width="1707" alt="image" src="https://user-images.githubusercontent.com/17135495/218893469-58c65d28-b2fb-48e3-bd87-07a2b02a5665.png"> **KSPM removal link** <img width="959" alt="kspm-docs-link-removal" src="https://user-images.githubusercontent.com/17135495/218893196-d0e9ed6a-4be6-4d33-8a68-271e2a11d2e6.png"> ```[tasklist] - [x] Update Setup Access description for both CSPM & KSPM - [x] Include KSPM, and CSPM specific getting-started links in the description above (https://ela.st/kspm-get-started and https://ela.st/cspm-get-started) - [x] Remove our hyperlink to AWS docs from the setup access section ``` = --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> |
||
---|---|---|
.. | ||
analytics | ||
content-management | ||
core | ||
home | ||
kbn-ace | ||
kbn-alerts | ||
kbn-alerts-ui-shared | ||
kbn-ambient-common-types | ||
kbn-ambient-ftr-types | ||
kbn-ambient-storybook-types | ||
kbn-ambient-ui-types | ||
kbn-analytics | ||
kbn-apm-config-loader | ||
kbn-apm-synthtrace | ||
kbn-apm-synthtrace-client | ||
kbn-apm-utils | ||
kbn-axe-config | ||
kbn-babel-preset | ||
kbn-babel-register | ||
kbn-babel-transform | ||
kbn-bazel-runner | ||
kbn-cases-components | ||
kbn-cell-actions | ||
kbn-chart-icons | ||
kbn-ci-stats-core | ||
kbn-ci-stats-performance-metrics | ||
kbn-ci-stats-reporter | ||
kbn-ci-stats-shipper-cli | ||
kbn-cli-dev-mode | ||
kbn-coloring | ||
kbn-config | ||
kbn-config-mocks | ||
kbn-config-schema | ||
kbn-crypto | ||
kbn-crypto-browser | ||
kbn-cypress-config | ||
kbn-datemath | ||
kbn-dev-cli-errors | ||
kbn-dev-cli-runner | ||
kbn-dev-proc-runner | ||
kbn-dev-utils | ||
kbn-doc-links | ||
kbn-docs-utils | ||
kbn-ebt-tools | ||
kbn-ecs | ||
kbn-es | ||
kbn-es-archiver | ||
kbn-es-errors | ||
kbn-es-query | ||
kbn-es-types | ||
kbn-eslint-config | ||
kbn-eslint-plugin-disable | ||
kbn-eslint-plugin-eslint | ||
kbn-eslint-plugin-imports | ||
kbn-expect | ||
kbn-failed-test-reporter-cli | ||
kbn-field-types | ||
kbn-find-used-node-modules | ||
kbn-flot-charts | ||
kbn-ftr-common-functional-services | ||
kbn-ftr-screenshot-filename | ||
kbn-generate | ||
kbn-get-repo-files | ||
kbn-guided-onboarding | ||
kbn-handlebars | ||
kbn-hapi-mocks | ||
kbn-health-gateway-server | ||
kbn-i18n | ||
kbn-i18n-react | ||
kbn-import-locator | ||
kbn-import-resolver | ||
kbn-interpreter | ||
kbn-io-ts-utils | ||
kbn-jest-serializers | ||
kbn-journeys | ||
kbn-json-ast | ||
kbn-kibana-manifest-schema | ||
kbn-language-documentation-popover | ||
kbn-lint-packages-cli | ||
kbn-lint-ts-projects-cli | ||
kbn-logging | ||
kbn-logging-mocks | ||
kbn-managed-vscode-config | ||
kbn-managed-vscode-config-cli | ||
kbn-mapbox-gl | ||
kbn-monaco | ||
kbn-optimizer | ||
kbn-optimizer-webpack-helpers | ||
kbn-osquery-io-ts-types | ||
kbn-peggy | ||
kbn-peggy-loader | ||
kbn-performance-testing-dataset-extractor | ||
kbn-picomatcher | ||
kbn-plugin-discovery | ||
kbn-plugin-generator | ||
kbn-plugin-helpers | ||
kbn-react-field | ||
kbn-repo-file-maps | ||
kbn-repo-info | ||
kbn-repo-linter | ||
kbn-repo-packages | ||
kbn-repo-path | ||
kbn-repo-source-classifier | ||
kbn-repo-source-classifier-cli | ||
kbn-rison | ||
kbn-rule-data-utils | ||
kbn-safer-lodash-set | ||
kbn-securitysolution-autocomplete | ||
kbn-securitysolution-ecs | ||
kbn-securitysolution-es-utils | ||
kbn-securitysolution-exception-list-components | ||
kbn-securitysolution-hook-utils | ||
kbn-securitysolution-io-ts-alerting-types | ||
kbn-securitysolution-io-ts-list-types | ||
kbn-securitysolution-io-ts-types | ||
kbn-securitysolution-io-ts-utils | ||
kbn-securitysolution-list-api | ||
kbn-securitysolution-list-constants | ||
kbn-securitysolution-list-hooks | ||
kbn-securitysolution-list-utils | ||
kbn-securitysolution-rules | ||
kbn-securitysolution-t-grid | ||
kbn-securitysolution-utils | ||
kbn-server-http-tools | ||
kbn-server-route-repository | ||
kbn-set-map | ||
kbn-shared-svg | ||
kbn-shared-ux-utility | ||
kbn-slo-schema | ||
kbn-some-dev-log | ||
kbn-sort-package-json | ||
kbn-spec-to-console | ||
kbn-std | ||
kbn-stdio-dev-helpers | ||
kbn-storybook | ||
kbn-telemetry-tools | ||
kbn-test | ||
kbn-test-jest-helpers | ||
kbn-test-subj-selector | ||
kbn-timelion-grammar | ||
kbn-tinymath | ||
kbn-tooling-log | ||
kbn-ts-projects | ||
kbn-ts-type-check-cli | ||
kbn-typed-react-router-config | ||
kbn-ui-actions-browser | ||
kbn-ui-framework | ||
kbn-ui-shared-deps-npm | ||
kbn-ui-shared-deps-src | ||
kbn-ui-theme | ||
kbn-user-profile-components | ||
kbn-utility-types | ||
kbn-utility-types-jest | ||
kbn-utils | ||
kbn-validate-next-docs-cli | ||
kbn-web-worker-stub | ||
kbn-whereis-pkg-cli | ||
kbn-yarn-lock-validator | ||
shared-ux | ||
README.md |
Kibana-related packages
This folder contains packages that are intended for use in Kibana and Kibana plugins.
tl;dr:
- Don't publish to npm registry
- Always use the
@kbn
namespace - Always set
"private": true
inpackage.json
Using these packages
We no longer publish these packages to the npm registry. Now, instead of specifying a version when including these packages, we rely on yarn workspaces, which sets up a symlink to the package.
For example if you want to use the @kbn/i18n
package in Kibana itself, you
can specify the dependency like this:
"@kbn/i18n": "1.0.0"
However, if you want to use this from a Kibana plugin, you need to use a link:
dependency and account for the relative location of the Kibana repo, so it would
instead be:
"@kbn/i18n": "link:../../kibana/packages/kbn-i18n"
then run yarn kbn bootstrap
from the plugin directory.
Creating a new package
Run the following command from the root of the Kibana repo:
node scripts/generate package @kbn/<PACKAGE_NAME> --web --owner @elastic/<TEAM_NAME>
Unit tests for a package
Currently there is only one tool being used in order to test packages which is Jest. Below we will explain how it should be done.
Jest
A package should follow the pattern of having .test.js
files as siblings of the source code files, and these run by Jest.
A package using the .test.js
naming convention will have those tests automatically picked up by Jest and run by the unit test runner, currently mapped to the Kibana test
script in the root package.json
.
yarn test
runs all unit tests.yarn jest
runs all Jest tests in Kibana.
In order for the plugin or package to use Jest, a jest.config.js file must be present in it's root. However, there are safeguards for this in CI should a test file be added without a corresponding config file.
Each package can also specify its own test
script in the package's package.json
, for cases where you'd prefer to run the tests from the local package directory.