Remove osd-name
from response headers
#574
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a draft PR to gather feedback.
Description
Addresses a potential security risk where the header could be used for targeted attacks. Depending on the deployment configuration, this header may include the IP address of the host. The header is included even if an error response is returned, meaning that it's possible that anyone could get access to this information, even if they are not authenticated/authorized to access the Dashboards instance.
As for why this header exists in the first place, I dug back through the commit history and found this comment
attach the app name to the server, so we can be sure we are actually talking to kibana
here (which was merged to the main repo): https://github.com/pgayvallet/kibana/blob/ec481861799ed8dcced9cafd8112e5b26e641c54/src/legacy/server/http/index.js#L63However, there aren't any references that I could find in our code base or for any plugins that require this header. I can keep digging for more information.
Testing
Issues Resolved
N/A - security risk
Check List