13 Commits

Author SHA1 Message Date
Łukasz Mierzwa
3a66080e9d feat(tests): add a test case for proxying to sub-URI 2018-10-24 21:52:59 +01:00
Łukasz Mierzwa
9c16ffa447 chore(project): rename from unsee to karma
Fixes prymitive/unsee#23
2018-09-09 14:12:26 +01:00
Łukasz Mierzwa
129ffb7e17 fix(test): use httptest.newRequest instead of (incorrect) http.newRequest
httptest.newRequest is suppose to be used for testing request handing, http.newRequest is for preparing outgoing requests, this allows to fix cache key selection and increase test coverage
2018-08-21 09:35:49 +01:00
Łukasz Mierzwa
e9e19c3ea8 fix(style): remove unused code 2018-08-11 23:06:08 +01:00
Łukasz Mierzwa
d306807ab4 fix(style): check for setupRouterProxyHandlers error return 2018-08-11 22:45:12 +01:00
Łukasz Mierzwa
b71883f1ef Migrate to new repo
Forked unsee from cloudflare, so import paths needs to be updated
2018-06-07 15:30:57 +02:00
Ł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