Skip to content

Commit 2ba2d4d

Browse files
authored
Add flags to allow for routing to dynamic datasets and namespaces (#327)
Adds data_stream.elasticsearch.dynamic_dataset/data_stream.elasticsearch.dynamic_namespace. When set to true, instead of granting permissions to the exact data stream the integration is sending data to (for example logs-router-default), it grants permissions for all datasets and namespaces, respectively, for the data_stream.type (for example (logs-*-*).
1 parent fb7c1d0 commit 2ba2d4d

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

spec/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
- description: Allow to include a sample event in input packages
1414
type: enhancement
1515
link: https://github.com/elastic/package-spec/pull/447
16+
- description: Add "elasticsearch.dynamic_dataset" and "elasticsearch.dynamic_namespace" to data stream manifest
17+
type: enhancement
18+
link: https://github.com/elastic/package-spec/pull/327
1619
- version: 2.1.0
1720
changes:
1821
- description: Allowing multiple services included as part of custom-agent-deployer

spec/integration/data_stream/manifest.spec.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,5 +252,11 @@ spec:
252252
- "synthetic"
253253
examples:
254254
- "synthetic"
255+
dynamic_dataset:
256+
description: When set to true, agents running this integration are granted data stream privileges for all datasets of its type
257+
type: boolean
258+
dynamic_namespace:
259+
description: When set to true, agents running this integration are granted data stream privileges for all namespaces of its type
260+
type: boolean
255261
required:
256262
- title

test/packages/good/data_stream/foo/manifest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,5 @@ elasticsearch.index_template.mappings:
3333
b: 1
3434
elasticsearch.index_template.ingest_pipeline.name: foobar
3535
elasticsearch.privileges.indices: [auto_configure, create_doc, monitor]
36+
elasticsearch.dynamic_dataset: true
37+
elasticsearch.dynamic_namespace: true

0 commit comments

Comments
 (0)