-
Notifications
You must be signed in to change notification settings - Fork 460
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] Remove host and port for Fleet Server #5896
Conversation
Pinging @elastic/fleet (Team:Fleet) |
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.
@nchaulet If these fields were never used in any version of Fleet Server, I don't think we need to restrict a higher Kibana version. However, I would like to check on what will happen if these vars are defined in preconfiguration, but is not present on the latest version of the package.
The reason I am asking is because on Cloud, our stackpack has these fields defined and they will always use the latest version of the Fleet Server package available to the version for that instance:
https://github.com/elastic/cloud-assets/blob/master/stackpack/kibana/config/kibana-7.yml
https://github.com/elastic/cloud-assets/blob/master/stackpack/kibana/config/kibana.yml
Could you check the behavior? If there is an issue, then we may need to restrict these changes to >v8.8.0.
@@ -1,10 +1,4 @@ | |||
server: |
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.
if none of the optional fields below are present, is there any issue with having this empty server
value?
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.
it still will be a valid yaml
@jen-huang I just tested a fleet server pre-configuration with some port and hosts and looks like we do not validate extra variables so we should be okay here. I just did a test with fleet server 7.17 and in this case the host and port for the package policy is used, to be safe I think it will make sense to restrict that change to 8.8+ |
@nchaulet Thanks for catching that. Let's restrict it then. Could you also update the 8.x stackpack so that we don't add these fields for 8.8+? |
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.
looks good
Package fleet_server - 1.3.0 containing this change is available at https://epr.elastic.co/search?package=fleet_server |
Description
Remove the host and port field from the Fleet server integration as it seems those values are only configurable during Fleet server installation.
Related to 154674
cc @jen-huang @michel-laterman
Should we restrict that package to newest version of Kibana (8.7?)
Tests
I tested manually:
--fleet-server-port