diff --git a/spec/changelog.yml b/spec/changelog.yml index 7e76a7d7f..23fd8e79d 100644 --- a/spec/changelog.yml +++ b/spec/changelog.yml @@ -13,6 +13,9 @@ - description: Allow to include a sample event in input packages type: enhancement link: https://github.com/elastic/package-spec/pull/447 + - description: Add "elasticsearch.dynamic_dataset" and "elasticsearch.dynamic_namespace" to data stream manifest + type: enhancement + link: https://github.com/elastic/package-spec/pull/327 - version: 2.1.0 changes: - description: Allowing multiple services included as part of custom-agent-deployer diff --git a/spec/integration/data_stream/manifest.spec.yml b/spec/integration/data_stream/manifest.spec.yml index 73bf750fd..47ca52913 100644 --- a/spec/integration/data_stream/manifest.spec.yml +++ b/spec/integration/data_stream/manifest.spec.yml @@ -252,5 +252,11 @@ spec: - "synthetic" examples: - "synthetic" + dynamic_dataset: + description: When set to true, agents running this integration are granted data stream privileges for all datasets of its type + type: boolean + dynamic_namespace: + description: When set to true, agents running this integration are granted data stream privileges for all namespaces of its type + type: boolean required: - title diff --git a/test/packages/good/data_stream/foo/manifest.yml b/test/packages/good/data_stream/foo/manifest.yml index 7b2aa77a2..4007ac9f6 100644 --- a/test/packages/good/data_stream/foo/manifest.yml +++ b/test/packages/good/data_stream/foo/manifest.yml @@ -33,3 +33,5 @@ elasticsearch.index_template.mappings: b: 1 elasticsearch.index_template.ingest_pipeline.name: foobar elasticsearch.privileges.indices: [auto_configure, create_doc, monitor] +elasticsearch.dynamic_dataset: true +elasticsearch.dynamic_namespace: true