-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send fleet-server elasticsearch config under new bootstrap attribute (#…
…4643) Alter the fleet-server bootstrap component modifier to insert all (elasticsearch) output configuration options specified by enrollment args under a new elasticsearch.boostrap key instead of overwriting any existing keys. This will allow elastic-agent to send the list of hosts (and other config options) retrieved from a policy to fleet server as well as the config needed to form the initial connection to elasticsearch used to collect policy information. Fleet-server has been altered to use the bootstrap config that is passed if the policy attributes are unspecified or fail.
- Loading branch information
1 parent
5754a6a
commit e984ed2
Showing
9 changed files
with
461 additions
and
2 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
changelog/fragments/1714505172-Send-fleet-server-component-output-under-bootstrap-key.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Kind can be one of: | ||
# - breaking-change: a change to previously-documented behavior | ||
# - deprecation: functionality that is being removed in a later release | ||
# - bug-fix: fixes a problem in a previous version | ||
# - enhancement: extends functionality but does not break or fix existing behavior | ||
# - feature: new functionality | ||
# - known-issue: problems that we are aware of in a given version | ||
# - security: impacts on the security of a product or a user’s deployment. | ||
# - upgrade: important information for someone upgrading from a prior version | ||
# - other: does not fit into any of the other categories | ||
kind: enhancement | ||
|
||
# Change summary; a 80ish characters long description of the change. | ||
summary: Fleet Server component now uses policy output configuration to communicate with Elasticsearch | ||
|
||
# Long description; in case the summary is not enough to describe the change | ||
# this field accommodate a description without length limits. | ||
# NOTE: This field will be rendered only for breaking-change and known-issue kinds at the moment. | ||
description: | | ||
Alter how elatic-agent passes the fleet-server output component so that the policy's output is used. | ||
In cases where fleet-server encounters an error when trying to use the policy's output it will use | ||
the configuration specified during enrollment as a fallback. In cases where it uses the fallback | ||
the policy's output is periodically retested and used if it's successful. | ||
# Affected component; a word indicating the component this changeset affects. | ||
component: | ||
|
||
# PR URL; optional; the PR number that added the changeset. | ||
# If not present is automatically filled by the tooling finding the PR where this changelog fragment has been added. | ||
# NOTE: the tooling supports backports, so it's able to fill the original PR number instead of the backport PR number. | ||
# Please provide it if you are adding a fragment for a different PR. | ||
pr: https://github.com/elastic/elastic-agent/pull/4643 | ||
|
||
# Issue URL; optional; the GitHub issue related to this changeset (either closes or is part of). | ||
# If not present is automatically filled by the tooling with the issue linked to the PR number. | ||
issue: https://github.com/elastic/elastic-agent/issue/2784 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"id": "3434b864-d135-4d03-a944-29ee7ad61ddd", | ||
"version": "WzMwNywxXQ==", | ||
"name": "fleet_server-1", | ||
"namespace": "", | ||
"description": "", | ||
"package": { | ||
"name": "fleet_server", | ||
"title": "Fleet Server", | ||
"version": "1.5.0" | ||
}, | ||
"enabled": true, | ||
"inputs": [ | ||
{ | ||
"type": "fleet-server", | ||
"policy_template": "fleet_server", | ||
"enabled": true, | ||
"streams": [], | ||
"vars": { | ||
"max_agents": { | ||
"type": "integer" | ||
}, | ||
"max_connections": { | ||
"type": "integer" | ||
}, | ||
"custom": { | ||
"value": "", | ||
"type": "yaml" | ||
} | ||
} | ||
} | ||
], | ||
"revision": 1, | ||
"created_at": "2024-05-22T16:13:09.177Z", | ||
"created_by": "system", | ||
"updated_at": "2024-05-22T16:13:09.177Z", | ||
"updated_by": "system" | ||
} |
Oops, something went wrong.