Skip to content

Setting to whitelist allowed licenses #48508

Closed
@bytebilly

Description

@bytebilly

Description

We want to introduce a new Elasticsearch setting to define which are the licenses that can be used in a specific cluster.

The main goal is to allow external coordinators (like ECK or ECE) to control which license can be installed on clusters that are centrally managed, and to avoid that inconsistent licenses are manually installed using direct access to the cluster.

Proposal

Introduce the new setting and perform the check on the license type when a new license is sent via Update license API.

The setting name is xpack.license.upload.types.

The value is a list of possible license types.
The supported use case is what is needed by Cloud, so trial,enterprise

The default value for this setting (if not set) is to allow any license to be used.

Questions

  1. Is it defined in elasticsearch.yml? — YES
  2. Can it be updated via setting via API? — NO
  3. Will the check happen also on bootstrap? — NO

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions