"X-Bosun-Server" header in bosun's HTTP requests should contain real hostname even if we set Hostname in configuration (it was such way before https://github.com/bosun-monitor/bosun/pull/2439)
Before changes with the hostname, we've used hostname in the templates, internal stats and for special "X-Bosun-Server" header. For us it was like:
3 boxes under LB: bosun-01, bosun-02, bosun-03
DNS name for balancer: bosun.domain.com.
We've set the hostname to bosun.domain.com to have the right links in templates. But we also used HTTP header "X-Bosun-Server" as the real hostname of bosun servers for delivery service. Now we can have the only hostname in the configuration for templates, stats and for the header.
Header "X-Bosun-Server" contains "bosun.domain.com" in our case.
Steps to reproduce
Set Hostname in configuration equal bosun.domain.com
Add notification:
notification default{
post = http://127.0.0.1:8000/
bodyTemplate = body
next = default
timeout = 1m
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Expected behavior
"X-Bosun-Server" header in bosun's HTTP requests should contain real hostname even if we set
Hostname
in configuration (it was such way before https://github.com/bosun-monitor/bosun/pull/2439)Please see also https://github.com/bosun-monitor/bosun/issues/422 for some historical details
Current behavior
Before changes with the hostname, we've used hostname in the templates, internal stats and for special "X-Bosun-Server" header. For us it was like:
We've set the hostname to bosun.domain.com to have the right links in templates. But we also used HTTP header "X-Bosun-Server" as the real hostname of bosun servers for delivery service. Now we can have the only hostname in the configuration for templates, stats and for the header. Header "X-Bosun-Server" contains "bosun.domain.com" in our case.
Steps to reproduce
Hostname
in configuration equal bosun.domain.comContext
Build commit - https://github.com/bosun-monitor/bosun/commit/e0547ae91c6169facf7621e63c3e79da464cbde8