-
Notifications
You must be signed in to change notification settings - Fork 73
/
manifest.spec.yml
610 lines (609 loc) · 19 KB
/
manifest.spec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
##
## Describes the specification for the integration package's main manifest.yml file
##
spec:
# Everything under here follows JSON schema (https://json-schema.org/), written as YAML for readability
type: object
additionalProperties: false
definitions:
agent:
description: Declarations related to Agent configurations or requirements.
type: object
additionalProperties: false
properties:
privileges:
type: object
additionalProperties: false
properties:
root:
description: Set to true if collection requires root privileges in the agent.
type: boolean
categories:
description: Categories to which this package belongs.
type: array
items:
type: string
enum:
- advanced_analytics_ueba
- analytics_engine
- application_observability
- app_search
- auditd
- authentication
- aws
- azure
- big_data
- cdn_security
- cloud
- cloudsecurity_cdr
- config_management
- connector
- connector_client
- connector_package
- containers
- content_source
- crawler
- credential_management
- crm
- custom
- custom_logs
- database_security
- datastore
- dns_security
- edr_xdr
- elasticsearch_sdk
- elastic_stack
- email_security
- enterprise_search
- firewall_security
- google_cloud
- iam
- ids_ips
- infrastructure
- java_observability
- kubernetes
- language_client
- languages
- load_balancer
- message_queue
- monitoring
- native_search
- network
- network_security
- notification
- observability
- os_system
- process_manager
- productivity
- productivity_security
- proxy_security
- sdk_search
- security
- stream_processing
- support
- threat_intel
- ticketing
- version_control
- virtualization
- vpn_security
- vulnerability_management
- web
- web_application_firewall
- websphere
- workplace_search
examples:
- web
conditions:
description: Conditions under which this package can be installed.
type: object
additionalProperties: false
properties:
elastic:
description: Elastic conditions
type: object
additionalProperties: false
properties:
subscription:
description: The subscription required for this package.
type: string
enum:
- basic
- gold
- platinum
- enterprise
default: basic
examples:
- basic
capabilities:
description: |-
Stack features that are required by the package to work properly.
The package should not be used in deployments without the indicated features.
Packages that don't indicate any capability condition can be used on any deployment.
type: array
uniqueItems: true
items:
type: string
enum:
- apm
- enterprise_search
- observability
- security
- serverless_search
- uptime
kibana:
description: Kibana conditions
type: object
additionalProperties: false
properties:
version:
type: string
description: Kibana versions compatible with this package.
examples:
- ">=7.9.0"
description:
description: >
A longer description of the package. It should describe, at least all the kinds of
data that is collected and with what collectors, following the structure
"Collect X from Y with X".
type: string
examples:
- Collect logs and metrics from Apache HTTP Servers with Elastic Agent.
- Collect logs and metrics from Amazon Web Services with Elastic Agent.
deployment_modes:
description: >
Options related to the deployment modes. The deployment mode refers to the mode used to
deploy the Elastic Agents running this policy.
type: object
additionalProperties: false
properties:
default:
description: >
Options specific to the default deployment mode, where agents are normally managed
by users, explicitly enrolled to Fleet and visible in UIs.
type: object
properties:
enabled:
type: boolean
default: true
agentless:
description: >
Options specific to the Agentless deployment mode. This mode is used in offerings
where the Elastic Agents running these policies are fully managed for the user.
type: object
properties:
enabled:
type: boolean
default: false
organization:
description: >
The responsible organization of the integration. This is used to tag the agentless agent deployments
for monitoring.
type: string
examples:
- "security"
division:
description: >
The division responsible for the integration. This is used to tag the agentless agent deployments
for monitoring.
type: string
examples:
- "cloud-security"
team:
description: >
The team responsible for the integration. This is used to tag the agentless
agent deployments for monitoring.
type: string
examples:
- "cloud-security-posture-management"
allOf:
- if:
properties:
enabled:
const: true
then:
required:
- organization
- division
- team
configuration_links:
description: List of links related to inputs and policy templates.
type: array
minItems: 1
items:
type: object
additionalProperties: false
properties:
title:
description: Link title
type: string
url:
description: Link url. Format is `http://...` or `https://...` for external links, `kbn:/app/...` for links internal to Kibana.
type: string
pattern: '^(http(s)?://|kbn:/)'
type:
description: Type of link. `next_steps` for links to locations that can be relevant right after configuring the policy. `action` for actions that can be performed while the policy is in use.
type: string
enum:
- action
- next_step
content:
description: Link description
type: string
required:
- title
- url
- type
icons:
description: List of icons for by this package.
type: array
items:
type: object
additionalProperties: false
properties:
src:
description: Relative path to the icon's image file.
type: string
format: relative-path
examples:
- "/img/logo_apache.svg"
title:
description: Title of icon.
type: string
examples:
- "Apache Logo"
size:
description: Size of the icon.
type: string
examples:
- "32x32"
type:
description: MIME type of the icon image file.
type: string
examples:
- "image/svg+xml"
dark_mode:
description: Is this icon to be shown in dark mode?
type: boolean
default: false
required:
- src
screenshots:
description: List of screenshots of Kibana assets created by this package.
type: array
items:
type: object
additionalProperties: false
properties:
src:
description: Relative path to the screenshot's image file.
type: string
format: relative-path
examples:
- "/img/apache_httpd_server_status.png"
title:
description: Title of screenshot.
type: string
examples:
- "Apache HTTPD Server Status"
size:
description: Size of the screenshot.
type: string
examples:
- "1215x1199"
type:
description: MIME type of the screenshot image file.
type: string
examples:
- "image/png"
required:
- src
- title
source:
description: Information about the source of the package.
type: object
additionalProperties: false
properties:
license:
description: Identifier of the license of the package, as specified in https://spdx.org/licenses/.
type: string
enum:
- "Apache-2.0"
- "Elastic-2.0"
examples:
- "Elastic-2.0"
title:
description: >
Title of the package. It should be the usual title given to the product, service or
kind of source being managed by this package.
type: string
examples:
- Apache HTTP Server
- MySQL
- AWS
version:
description: Version of the package, following semantic versioning. It can include pre-release labels.
type: string
pattern: '^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$'
examples:
- "1.0.0"
- "1.0.0-beta1"
- "1.0.0-SNAPSHOT"
- "1.0.0-next"
owner:
type: object
additionalProperties: false
properties:
github:
description: Github team name of the package maintainer.
type: string
pattern: '^(([a-zA-Z0-9-_]+)|([a-zA-Z0-9-_]+\/[a-zA-Z0-9-_]+))$'
examples:
- "elastic"
- "apm-agent-java"
- "ux_infra_team"
type:
description: >
Describes who owns the package and the level of support that is
provided. The 'elastic' value indicates that the package is built
and maintained by Elastic. The 'partner' value indicates that the
package is built and maintained by a partner vendor and may include
involvement from Elastic. The 'community' value indicates the package
is built and maintained by non-Elastic community members.
type: string
default: community
enum:
- elastic
- partner
- community
examples:
- community
required:
- github
- type
properties:
format_version:
description: The version of the package specification format used by this package.
$ref: "#/definitions/version"
name:
description: The name of the package.
type: string
pattern: '^[a-z0-9_]+$'
examples:
- apache
title:
$ref: "#/definitions/title"
description:
$ref: "#/definitions/description"
version:
description: The version of the package.
$ref: "#/definitions/version"
source:
$ref: "#/definitions/source"
type:
description: The type of package.
type: string
enum:
- integration
examples:
- integration
categories:
$ref: "#/definitions/categories"
conditions:
$ref: "#/definitions/conditions"
# requires a conditional JSON schema to update the value depending
# on the policy_templates length
policy_templates_behavior:
description: >
Expected behavior when there are more than one policy template defined.
When set to `combined_policy`, a single policy template is available that
combines all the defined templates. When set to `individual_policies`, all
policies are individually available, but there is no combined policy.
The default value is `all`, where the combined policy template is available
along with the individual policies.
type: string
policy_templates:
description: List of policy templates offered by this package.
type: array
items:
type: object
additionalProperties: false
properties:
name:
description: Name of policy template.
type: string
examples:
- apache
title:
description: Title of policy template.
type: string
examples:
- Apache logs and metrics
categories:
$ref: "#/definitions/categories"
description:
description: Longer description of policy template.
type: string
examples:
- Collect logs and metrics from Apache instances
data_streams:
description: List of data streams compatible with the policy template.
type: array
items:
type: string
description: Data stream name
format: data-stream-name
examples:
- ec2_logs
- spamfirewall
- access
deployment_modes:
$ref: "#/definitions/deployment_modes"
configuration_links:
$ref: "#/definitions/configuration_links"
inputs:
description: List of inputs supported by policy template.
type: array
items:
type: object
additionalProperties: false
properties:
type:
description: Type of input.
type: string
title:
description: Title of input.
type: string
examples:
- Collect logs from Apache instances
description:
description: Longer description of input.
type: string
examples:
- Collecting Apache access and error logs
template_path:
description: Path of the config template for the input.
type: string
examples:
- ./agent/input/template.yml.hbs
input_group:
description: Name of the input group
type: string
enum:
- logs
- metrics
multi:
description: Can input be defined multiple times
type: boolean
default: false
vars:
$ref: "./data_stream/manifest.spec.yml#/definitions/vars"
required:
- type
- title
- description
multiple:
type: boolean
icons:
$ref: "#/definitions/icons"
screenshots:
$ref: "#/definitions/screenshots"
vars:
$ref: "./data_stream/manifest.spec.yml#/definitions/vars"
required:
- name
- title
- description
icons:
$ref: "#/definitions/icons"
screenshots:
$ref: "#/definitions/screenshots"
vars:
$ref: "./data_stream/manifest.spec.yml#/definitions/vars"
owner:
$ref: "#/definitions/owner"
agent:
$ref: "#/definitions/agent"
elasticsearch:
description: Elasticsearch requirements
type: object
additionalProperties: false
properties:
privileges:
description: Elasticsearch privilege requirements
type: object
additionalProperties: false
properties:
cluster:
# Available cluster privileges are available at https://www.elastic.co/guide/en/elasticsearch/reference/7.16/security-privileges.html#privileges-list-cluster
description: Elasticsearch cluster privilege requirements
type: array
items:
type: string
required:
- format_version
- name
- title
- description
- version
- type
- owner
allOf:
- if:
properties:
policy_templates:
maxItems: 1
then:
properties:
policy_templates_behavior:
enum:
- all
default: all
else:
properties:
policy_templates_behavior:
enum:
- combined_policy
- individual_policies
- all
default: all
# JSON patches for newer versions should be placed on top
versions:
- before: 3.3.1
patch:
- op: remove
path: "/properties/policy_templates/items/properties/configuration_links"
- before: 3.2.0
patch:
- op: remove
path: "/definitions/deployment_modes/properties/default"
- before: 3.1.4
patch:
- op: remove
path: "/properties/policy_templates/items/properties/deployment_modes"
- before: 3.0.0
patch:
- op: replace
path: "/definitions/owner/required"
value:
- github
- before: 2.12.0
patch:
- op: remove
path: "/properties/agent"
- before: 2.11.0
patch:
- op: replace
path: "/definitions/owner/properties/type/default"
value: elastic
- before: 2.10.0
patch:
- op: remove
path: "/definitions/conditions/properties/elastic/properties/capabilities"
- before: 2.3.0
patch:
- op: add
path: "/properties/release"
value:
description: The stability of the package (deprecated, use prerelease tags in the version).
deprecated: true # See https://github.com/elastic/package-spec/issues/225
type: string
enum:
- experimental
- beta
- ga
default: ga
examples:
- experimental
- before: 2.0.0
patch:
- op: add
path: "/properties/license"
value:
description: The license under which the package is being released (deprecated, use subscription instead).
deprecated: true # See https://github.com/elastic/package-spec/issues/298.
type: string
enum:
- basic
default: basic
examples:
- basic