Skip to content

Option to prevent auto-creating index with no matching index template #97032

@axw

Description

@axw

Description

APM uses bulk indexing to data streams, and relies on automatic data stream creation on first document write. Index templates are set up by a different process (Kibana) than the one that writes the documents (APM Server).

If the index template is not created before a document is written, then a plain old index will be auto-created with default dynamic mapping rules which do match the expectations of our queries. To address this, we provide monitor privileges to APM Server so that it can query for the presence of index templates before writing documents. This is not ideal, as it increases the privileges (and therefore attack surface), and also more tightly couples APM Server to the index templates than should be necessary.

We would like a way to prevent writes from auto-creating an index if there is no matching index template. This might mean failing the request, or blocking the request for a configurable amount of time until a matching template has been installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions