kibana/x-pack/test
Ash f6ad013220
[Ai4dSoc][Serverless] Hide Security feature sub-privileges in search_ai_lake tier (#217210)
## Summary

Hides security sub-privileges for ai4soc/search_ai_lake tier.
![Screenshot 2025-04-11 at 10 22
09](https://github.com/user-attachments/assets/6f3294bc-82de-404e-b9d3-22e717d54b65)

### Reasoning for changes added to `x-pack/packages/security`:

Currently, the feature description of Security feature is tied to the
fact that it has a list of sub-privileges. This is true on ESS and
`essentials/complete` serverless tiers.

With the introduction of the lower `search_ai_lake` tier, security
feature would not have any sub-privileges available and thus it does not
make sense to show that description.

The ideal way to handle this would be to load feature privileges config
settings at the plugin level
(security_solution/security_solution_serverless) and set `description`
to `null | undefined` based on the tier, as currently the feature
privileges settings live in [kibana_features file
(v2_features)](795094d8c6/x-pack/solutions/security/packages/features/src/security/v2_features/kibana_features.ts (L72))
(also another set in v1_features) and the plugins only select a set of
those based on the [feature keys
available](d4a33a2b61/x-pack/solutions/security/plugins/security_solution_serverless/common/pli/pli_config.ts)
on each tier. The refactoring to pass in feature configs at the plugin
level (instead of just feature keys) is not in the scope of the work cut
out for RSA conf.

Thus the other simpler approach in this PR is to allow overriding the
description field on the tier specific config file.

## How to Test

1. While on the Kibana root directory, run ES/Kibana on serverless mode
with:

```bash
yarn es serverless --kill --projectType security --kibanaUrl=http://0.0.0.0:5601
```
and on a new window
```bash
yarn serverless-security --no-base-path
```

Enable the AI for SOC tier, by adding the following to your
`serverless.security.dev.yaml` file:

```json5
xpack.securitySolutionServerless.productTypes:
  [
    { product_line: 'ai_soc', product_tier: 'search_ai_lake' },
  ]
```

2. Once Kibana is up and running login in with the `admin` role using
the role dropdown.
3. Navigate to `app/management/roles/edit`
4. Click on `Assign to space` button and assign a space to that role on
the `Assign role to spaces` flyout.
5. Expand the `Security` category and verify that `Security` feature is
listed in the list of features.
6. Also verify that there is neither an accordion icon beside `Security`
feature nor a description text under it about sub-privileges.

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] 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)
- [ ] This was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] 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)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
2025-04-16 15:40:09 -06:00
..
accessibility [ML] Moves job and trained model management features into Stack Management (#204290) 2025-04-08 19:52:16 +02:00
alerting_api_integration [chore] Bundle fp-ts into the shared bundle (#217034) 2025-04-16 18:01:41 +02:00
api_integration chore(streams): returns 403 when user has no read access (#217742) 2025-04-16 16:03:18 -04:00
api_integration_basic [Cases] Cases assignees sub feature (#201654) 2025-01-30 17:04:38 +01:00
apm_api_integration [APM] Deprecate old routes, move remaining bits to apm-sources-access (#216507) 2025-04-07 16:37:49 +02:00
apm_cypress [APM] Migrate APM Cypress tests to on_merge from on_merge_unsupported_ftrs (#203991) 2025-01-16 12:57:50 +01:00
automatic_import_api_integration [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
banners_functional [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
cases_api_integration [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
cloud_integration [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
cloud_security_posture_api skip failing test suite (#217399) 2025-04-07 23:09:03 +02:00
cloud_security_posture_functional [kbn/response-ops-alerts-table] set data-test-subj for EuiDataGrid based on loading status (#217230) 2025-04-15 13:05:49 +02:00
common chore(streams): returns 403 when user has no read access (#217742) 2025-04-16 16:03:18 -04:00
custom_branding SKA: Relocate /test to /src/platform/test (#210956) 2025-03-14 16:57:23 +00:00
dataset_quality_api_integration fix skip failing test suite (#211517, #213290) 2025-03-06 10:32:57 -06:00
defend_workflows_cypress [EDR Workflows] Workflow Insights - Cypress (#204562) 2025-01-31 14:43:08 +01:00
disable_ems
encrypted_saved_objects_api_integration [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
examples [Response Ops][Rules] Settings as Flyout instead of Modal (#216162) 2025-04-01 09:59:25 +02:00
fleet_api_integration skip flaky suite (#214862) 2025-04-10 21:25:39 +01:00
fleet_cypress [Fleet] Fix elastic-agent docker image path (#210008) 2025-02-11 22:04:03 +01:00
fleet_functional [Fleet] Fix failing/flaky tests (#189559) 2024-07-31 14:14:30 -04:00
fleet_packages [Fleet] Remove deprecated Symantec package from install_all_packages_job (#193029) 2024-09-17 11:35:00 +02:00
ftr_apis [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
functional [Data Streams] Fix displayed index mode (#215683) 2025-04-16 15:09:33 +02:00
functional_basic [ML] Moves job and trained model management features into Stack Management (#204290) 2025-04-08 19:52:16 +02:00
functional_cloud [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
functional_cors [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
functional_embedded [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
functional_execution_context [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
functional_gen_ai/inference [inference] add support for temperature parameter (#206479) 2025-01-14 14:05:21 +01:00
functional_search [ML] Moves job and trained model management features into Stack Management (#204290) 2025-04-08 19:52:16 +02:00
functional_solution_sidenav NavigationItemOpenPanel: remove handling of landing page ("four squares" design) (#210893) 2025-04-09 07:25:30 -07:00
functional_with_es_ssl [ResponseOps][Alerts] Remove fieldsForAad attribute from rule type registry (#215767) 2025-04-09 12:05:05 +02:00
licensing_plugin [FIPS] Skips license check test for FIPS test suite (#216056) 2025-04-01 22:23:35 +01:00
load [ON-WEEK][POC] Playwright (#190803) 2024-09-06 13:09:18 +02:00
localization [Lens] speed up functional test suite by setting the time picker via ui settings (#199479) 2024-11-12 17:40:47 +01:00
monitoring_api_integration SKA: Relocate "platform" packages that remain on /packages (#208704) 2025-02-24 11:03:30 +00:00
observability_ai_assistant_api_integration [Obs AI Assistant] Minor cleanup api tests (#215181) 2025-03-20 10:59:59 +01:00
observability_ai_assistant_functional [Obs AI Assistant] Archiving conversations (#216012) 2025-04-08 10:42:20 -04:00
observability_api_integration [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
observability_functional skip failing test suite (#217739) 2025-04-11 00:07:54 +02:00
observability_onboarding_api_integration [Oblt Onboarding] Remove Custom Logs flow (#216053) 2025-04-16 11:01:18 +02:00
osquery_cypress [EDR Workflows][Osquery][Cypress] Fallback for KibanaStatus error response when fetching kibana version (#218240) 2025-04-16 10:43:10 +02:00
plugin_api_integration [Entity Analytics][Privilege Monitoring] Engine initialization API (#215663) 2025-04-11 13:25:24 +02:00
plugin_api_perf [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
plugin_functional SKA: Relocate /test to /src/platform/test (#210956) 2025-03-14 16:57:23 +00:00
profiling_api_integration Disable allowAbsoluteUrls for axios (#215138) 2025-03-25 09:52:36 +01:00
profiling_cypress [Profiling] Migrate Profiling Cypress tests to on_merge from on_merge_unsupported_ftrs (#206727) 2025-01-21 17:09:42 +01:00
reporting_api_integration SKA: Relocate /test to /src/platform/test (#210956) 2025-03-14 16:57:23 +00:00
reporting_functional [Reporting] Use Kibana feature privileges only to control access to reporting (#200834) 2024-12-04 09:51:29 -07:00
rule_registry [Observability] Related alerts based on scoring !! (#215673) 2025-04-14 11:35:40 -04:00
saved_object_api_integration SKA: Relocate /test to /src/platform/test (#210956) 2025-03-14 16:57:23 +00:00
saved_object_tagging skip failing test suite (#144057) 2025-04-10 22:31:30 +02:00
saved_objects_field_count [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
scalability SKA: Relocate /test to /src/platform/test (#210956) 2025-03-14 16:57:23 +00:00
screenshot_creation [Response Ops] [Rule Form] Add Rule Form Flyout v2 (#206685) 2025-03-04 16:52:58 +02:00
search_sessions_integration Unskip discover async search test (#204827) 2025-03-11 09:24:22 -07:00
security_api_integration skip failing test suite (#218378) 2025-04-16 12:08:58 +02:00
security_functional [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
security_solution_api_integration [Security Solution][Rules Management] Separate actions import logic from rules import (#216380) 2025-04-16 11:47:26 -04:00
security_solution_cypress [Ai4dSoc][Serverless] Hide Security feature sub-privileges in search_ai_lake tier (#217210) 2025-04-16 15:40:09 -06:00
security_solution_endpoint [Security Solution][Endpoint] Improvements to policy selection component (#215417) 2025-04-04 08:35:08 -04:00
security_solution_ftr [kbn/response-ops-alerts-table] set data-test-subj for EuiDataGrid based on loading status (#217230) 2025-04-15 13:05:49 +02:00
security_solution_playwright SKA: Relocate "platform" packages that remain on /packages (#208704) 2025-02-24 11:03:30 +00:00
session_view [kbn-scout] add test config category to reporting (#210167) 2025-02-12 11:17:04 +01:00
spaces_api_integration [FTR] unify custom role name with Scout (#217882) 2025-04-14 19:21:49 +02:00
stack_functional_integration [ML] Moves job and trained model management features into Stack Management (#204290) 2025-04-08 19:52:16 +02:00
task_manager_claimer_update_by_query [Authz] Mandatory Security Config (#215180) 2025-03-27 12:04:53 -07:00
ui_capabilities Disable allowAbsoluteUrls for axios (#215138) 2025-03-25 09:52:36 +01:00
upgrade Remove log stream and settings (#204115) 2025-01-10 11:51:12 +00:00
upgrade_assistant_integration Fix deprecations API tests (#215484) 2025-03-24 18:49:42 +02:00
usage_collection Sustainable Kibana Architecture: Move modules owned by @elastic/kibana-core (#201653) 2025-01-04 11:47:24 -07:00
.gitignore SKA: Update and breakdown x-pack/.gitignore (#212341) 2025-02-25 11:34:42 +01:00
kibana.jsonc Sustainable Kibana Architecture: Categorise straightforward packages (#199630) 2024-11-22 10:33:25 +01:00
tsconfig.json 🌊 Refactor API control flow for stream management (#211696) 2025-04-08 13:02:56 +02:00