-
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
Re-add support for configuring server.host: "0" #86806
Conversation
Support for this was lost in elastic#85406. Fixes elastic#86716
💚 Build SucceededMetrics [docs]
To update your PR or re-run it, just comment with: |
This also has the added benefit out logging a valid URL in the log, so instead of:
It now prints:
|
// re-written for v20 and hapi no longer considers '0' a valid host. For | ||
// details, see: | ||
// https://github.com/elastic/kibana/issues/86716#issuecomment-749623781 | ||
this.host = rawHttpConfig.host === '0' ? '0.0.0.0' : rawHttpConfig.host; |
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.
@watson We should probably follow up in all the places where we use this for testing, replace it with 0.0.0.0
and then remove it from 0?
Thanks for the fix BTW
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.
I think it's best to support this in 7.x and then wait till 8.0.0 to remove it
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.
Agree. But the 8.0.0 removal could already happen now. An email could be sent to the teams to give a heads up that it will be removed in x
weeks with the fix that needs to happen.
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.
Fine with me 😃 I just wasn't sure what our policy on diverging the branches was. I've heard some say that we want to keep master
and 7.x
in sync as much as possible to ease backporting. I presume that would mean that we hold off diverging the branches until closer to the 8.0.0
release (hence why we have the big todo-list of things we want to break).
On the other and, it's easier to get it in now when it's all fresh in our heads. I'm personally leaning towards the latter, so I'll create a PR to remove this in master
and then people can object if they want in the PR.
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.
No strong opinion, I let the KB team comment ;-)
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.
I've created #87114 - You mentioned that the docs use 0
as the hostname. Where is that?
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.
I did mention docs? :-)
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.
Strike that... It was @graphaelli
Support for this was lost in #85406.
Fixes #86716