Skip to content

Commit 4cfcf3b

Browse files
authored
[AI4DSOC] [REVERT] Disable Visualize, Lens and Maps for Search AI Lake Tier elastic#218089 (elastic#221141)
Reverts: elastic#218089 Previous PR: <img width="199" alt="Screenshot 2025-05-21 at 17 52 10" src="https://github.com/user-attachments/assets/51e87073-eec5-47fc-8c20-59399a9e1042" /> This PR: <img width="215" alt="Screenshot 2025-05-21 at 18 04 15" src="https://github.com/user-attachments/assets/30e5bc50-b9e4-486f-af17-e42ca5c6b84c" /> ----- We realized that there are so many dependencies on `lens`, and thus `visualizations` that we decided to revert this, and find another way to hide the features in AI_SOC plugin. Hopefully approach with `overrides` would be just enough for our need. Thank you everyone for the initial help and reviews.
1 parent 6f41f41 commit 4cfcf3b

61 files changed

Lines changed: 103 additions & 243 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

config/serverless.chat.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ xpack.serverless.chat.enabled: true
99
## Cloud settings
1010
xpack.cloud.serverless.project_type: search
1111

12-
## Fine-tune the search solution feature privileges. Also, refer to `serverless.yml` for the project-agnostic overrides.
13-
xpack.features.overrides:
14-
### Not sure if CHAT solution uses dashboard or maps
15-
### Maps feature is hidden in Role management since it's automatically granted by Dashboard feature.
16-
maps_v2.hidden: true
17-
1812
## Set the home route
1913
uiSettings.overrides.defaultRoute: /app/workchat
2014

@@ -29,4 +23,4 @@ xpack.wciExternalServer.enabled: true
2923
xpack.spaces.maxSpaces: 1
3024

3125
## Content Connectors in stack management
32-
xpack.contentConnectors.enabled: false
26+
xpack.contentConnectors.enabled: false

config/serverless.es.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ xpack.features.overrides:
5050
dev_tools.category: "enterpriseSearch"
5151
### Discover feature is moved from Analytics category to the Search one.
5252
discover_v2.category: "enterpriseSearch"
53-
### Maps feature is hidden in Role management since it's automatically granted by Dashboard feature.
54-
maps_v2.hidden: true
5553
### Machine Learning feature is moved from Analytics category to the Management one.
5654
ml.category: "management"
5755
### Stack Alerts feature is moved from Analytics category to the Search one renamed to simply `Alerts`.

config/serverless.oblt.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ xpack.features.overrides:
8484
privileges: [ "read" ]
8585
### Logs feature is hidden in Role management since it's automatically granted by either Infrastructure, or Applications features.
8686
logs.hidden: true
87-
### Maps feature is hidden in Role management since it's automatically granted by Dashboard feature.
88-
maps_v2.hidden: true
8987
### Machine Learning feature should be moved from Analytics category to the Observability one and renamed to `AI Ops`.
9088
ml:
9189
category: "observability"
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
# Security Complete tier config
2-
xpack.features.overrides:
3-
### The following features are hidden in Role management since they're automatically granted by SIEM feature.
4-
maps_v2.hidden: true
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
# Security Essentials tier config
2-
xpack.features.overrides:
3-
### The following features are hidden in Role management since they're automatically granted by SIEM feature.
4-
maps_v2.hidden: true
2+

config/serverless.security.search_ai_lake.yml

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
# Security Search AI Lake tier config
22

3-
## Disable xpack plugins
3+
## Disable plugins
44
xpack.osquery.enabled: false
5-
xpack.maps.enabled: false
65
xpack.ml.ad.enabled: false
76
xpack.ml.dfa.enabled: false
8-
xpack.lens.enabled: false
9-
10-
### Disable shared plugins
11-
visualizations.enabled: false
127

138
## Disable plugin features
149
xpack.alerting.maintenanceWindow.enabled: false
@@ -23,51 +18,6 @@ xpack.features.overrides:
2318
siemV2.description: null
2419
securitySolutionSiemMigrations.hidden: true
2520

26-
## Fine-tune the security solution essentials feature privileges. These feature privilege overrides are set individually for each project type. Also, refer to `serverless.yml` for the project-agnostic overrides.
27-
dashboard:
28-
privileges:
29-
## We do not need to compose dashboard from maps and visualizations because these functionalities are disabled in this tier
30-
## Setting to empty array so the values from serverless.yml or serverless.security.yml are overwritten
31-
all.composedOf: []
32-
read.composedOf: []
33-
dashboard_v2:
34-
privileges:
35-
## Setting to empty array so the values from serverless.yml or serverless.security.yml are overwritten
36-
## We do not need to compose dashboard from maps and visualizations because these functionalities are disabled in this tier
37-
all.composedOf: []
38-
read.composedOf: []
39-
siemV2:
40-
privileges:
41-
all.composedOf:
42-
## Limited values so the fields from serverless.yml or serverless.security.yml are overwritten
43-
## We do not need to compose siemV2 from maps and visualizations because these functionalities are disabled in this tier
44-
- feature: "discover_v2"
45-
privileges: [ "all" ]
46-
- feature: "dashboard_v2"
47-
privileges: [ "all" ]
48-
read.composedOf:
49-
- feature: "discover_v2"
50-
privileges: [ "read" ]
51-
- feature: "dashboard_v2"
52-
privileges: [ "read" ]
53-
siem:
54-
privileges:
55-
all.composedOf:
56-
## Limited values so the fields from serverless.yml or serverless.security.yml are overwritten
57-
## We do not need to compose siemV2 from maps and visualizations because these functionalities are disabled in this tier
58-
- feature: "discover_v2"
59-
privileges: [ "all" ]
60-
- feature: "dashboard_v2"
61-
privileges: [ "all" ]
62-
- feature: "savedQueryManagement"
63-
privileges: [ "all" ]
64-
read.composedOf:
65-
- feature: "discover_v2"
66-
privileges: [ "read" ]
67-
- feature: "dashboard_v2"
68-
privileges: [ "read" ]
69-
- feature: "savedQueryManagement"
70-
privileges: [ "read" ]
7121
# Custom integrations/fleet settings
7222
xpack.fleet.agentless.isDefault: true
7323
xpack.fleet.integrationsHomeOverride: '/app/security/configurations/integrations'

config/serverless.security.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ xpack.features.overrides:
1818
dashboard_v2.hidden: true
1919
visualize.hidden: true
2020
visualize_v2.hidden: true
21+
maps.hidden: true
22+
maps_v2.hidden: true
2123
### Machine Learning feature is moved from Analytics category to the Security one as the last item.
2224
ml:
2325
category: "security"

config/serverless.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ xpack.features.overrides:
8181
includeIn: "read"
8282
### Shared images feature is hidden in Role management since it's not needed.
8383
filesSharedImage.hidden: true
84+
### Maps feature is hidden in Role management since it's automatically granted by Dashboard feature.
85+
maps_v2.hidden: true
8486
### Reporting feature is supposed to give access to reporting capabilities across different features.
8587
reporting:
8688
privileges:
@@ -265,4 +267,4 @@ xpack.dataUsage.enabled: true
265267
xpack.dataUsage.enableExperimental: ['dataUsageDisabled']
266268

267269
## Content Connectors in stack management
268-
xpack.contentConnectors.enabled: true
270+
xpack.contentConnectors.enabled: true

src/platform/plugins/private/vis_types/table/server/config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import { offeringBasedSchema, schema, TypeOf } from '@kbn/config-schema';
1111

1212
export const configSchema = schema.object({
1313
enabled: schema.boolean({ defaultValue: true }),
14+
1415
readOnly: offeringBasedSchema({
1516
serverless: schema.boolean({ defaultValue: false }),
1617
}),

src/platform/plugins/shared/visualizations/public/legacy/embeddable/create_vis_embeddable_from_object.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const createVisEmbeddableFromObject =
5151
}
5252

5353
const capabilities = {
54-
visualizeSave: Boolean(getCapabilities().visualize_v2?.save),
54+
visualizeSave: Boolean(getCapabilities().visualize_v2.save),
5555
dashboardSave: Boolean(getCapabilities().dashboard_v2?.showWriteControls),
5656
visualizeOpen: Boolean(getCapabilities().visualize_v2?.show),
5757
};

0 commit comments

Comments
 (0)