Commit Graph

7 Commits

Author SHA1 Message Date
Łukasz Mierzwa
8a65496787 Set Basic Auth on proxied requests if user:pass is set in the Alertmanager URI 2018-04-17 22:06:58 -07:00
Łukasz Mierzwa
ae2a4f7109 Add more tests for Alertmanager proxy support
Those will check if we pass correct Host headers and Basic Auth info
2018-04-17 21:52:16 -07:00
Łukasz Mierzwa
1f89ba05fe Migrate rest of the code to new mapper and transport packages 2018-01-22 11:26:36 -08:00
Łukasz Mierzwa
983c7f50ee Refactor NewAlertmanager() to not register new instance by default
This makes it easier to test code
2018-01-08 14:28:28 -08:00
Łukasz Mierzwa
efda91f542 Rename Alertmanager.Timeout -> Alertmanager.RequestTimeout 2018-01-08 13:51:38 -08:00
Łukasz Mierzwa
2176c44ba7 Drop names in slices 2018-01-06 17:39:19 -08:00
Łukasz Mierzwa
b6dd993c2b Add support for proxying user connection to Alertmanager
Fixes #190.

With this feature unsee can be configured to proxy requests to selected Alertmanager instances, if it's enabled unsee silence form will send a request via unsee rather than directly. This allows users to manage silences in environments where they have access to unsee but not to Alertmanager. Only silences endpoints on Alertmanager API are proxied.
2018-01-03 16:17:58 -08:00