-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Fleet] Fix xpack.agents.* to not be editable in UI if defined in kibana.yml #135669
[Fleet] Fix xpack.agents.* to not be editable in UI if defined in kibana.yml #135669
Conversation
… in UI and in sync with config file
Pinging @elastic/fleet (Team:Fleet) |
content={ | ||
<FormattedMessage | ||
id="xpack.fleet.settings.fleetServerHostsPreconfiguredTooltipContent" | ||
defaultMessage="Fleet Server hosts are configured outside of Fleet. Refer to your kibana config for more detail" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:more detail
-> more details.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM
…igure-es-fleet-server-hosts
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: cc @nchaulet |
@nchaulet will there be any backported versions added for this issue, or a documented workaround for folks not able to upgrade to 8.4? |
Description
Resolve #105400
That PR change the behavior of the
xpack.agents.*
(fleet server hosts and elasticsearch hosts) to allow user to update these value from kibana config.If these fields are set in Kibana config it will not be possible to update these settings in the UI.
For this I introduced a new property
preconfigured_fields
in the settings for fleet server hosts and for elasticsearch hosts, the output will be treated as a preconfigured output.Release notes
If a user set
xpack.fleet.agents.fleet_server.hosts
andxpack.fleet.agents.elasticsearch.hosts
fields in Kibana config these fields will not be updatable from the Fleet UI but only from the Kibana config file.UI Change
Fleet server hosts
Elasticsearch hosts
How to test?
You can tests that by adding these entries to your kibana config file it creates preconfigured output and settings that you cannot edit from the UI and if you remove these fields from the config they become editable