Skip to content

Commit 36036e2

Browse files
tomsonplqn895
authored andcommitted
[AI4DSOC] Disable Visualize, Lens and Maps for Search AI Lake Tier (elastic#218089)
1 parent 8e12029 commit 36036e2

File tree

61 files changed

+243
-103
lines changed

Some content is hidden

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

61 files changed

+243
-103
lines changed

config/serverless.chat.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ 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+
1218
## Set the home route
1319
uiSettings.overrides.defaultRoute: /app/workchat
1420

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

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

config/serverless.es.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ 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
5355
### Machine Learning feature is moved from Analytics category to the Management one.
5456
ml.category: "management"
5557
### Stack Alerts feature is moved from Analytics category to the Search one renamed to simply `Alerts`.

config/serverless.oblt.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ 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
8789
### Machine Learning feature should be moved from Analytics category to the Observability one and renamed to `AI Ops`.
8890
ml:
8991
category: "observability"
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
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: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# Security Essentials tier config
2-
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

config/serverless.security.search_ai_lake.yml

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

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

813
## Disable plugin features
914
xpack.alerting.maintenanceWindow.enabled: false
@@ -18,6 +23,51 @@ xpack.features.overrides:
1823
siemV2.description: null
1924
securitySolutionSiemMigrations.hidden: true
2025

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" ]
2171
# Custom integrations/fleet settings
2272
xpack.fleet.agentless.isDefault: true
2373
xpack.fleet.integrationsHomeOverride: '/app/security/configurations/integrations'

config/serverless.security.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ 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
2321
### Machine Learning feature is moved from Analytics category to the Security one as the last item.
2422
ml:
2523
category: "security"

config/serverless.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,6 @@ 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
8684
### Reporting feature is supposed to give access to reporting capabilities across different features.
8785
reporting:
8886
privileges:
@@ -267,4 +265,4 @@ xpack.dataUsage.enabled: true
267265
xpack.dataUsage.enableExperimental: ['dataUsageDisabled']
268266

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

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

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

1212
export const configSchema = schema.object({
1313
enabled: schema.boolean({ defaultValue: true }),
14-
1514
readOnly: offeringBasedSchema({
1615
serverless: schema.boolean({ defaultValue: false }),
1716
}),

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)