30 Commits

Author SHA1 Message Date
Lukasz Mierzwa
492c564e74 chore(project): update deps, fix linter errors 2025-09-04 13:59:00 +01:00
Łukasz Mierzwa
e6a886ed36 chore(backend): update all deps 2025-03-19 10:57:49 +00:00
Łukasz Mierzwa
087a7113a2 fix(backend): fix lint errors 2024-02-13 16:34:52 +00:00
Łukasz Mierzwa
ee85d2e25a fix(tests): fix linter errors 2023-03-20 11:37:23 +00:00
Łukasz Mierzwa
689866a64c fix(backend): enable more Go linters 2022-07-15 18:32:07 +01:00
Łukasz Mierzwa
fcc9cfc38c feat(backend): use github.com/klauspost/compress for gzip 2022-07-07 14:15:24 +01:00
Łukasz Mierzwa
650fdca8e6 feat(ci): use goimports to format import statements 2021-12-16 20:51:52 +00:00
Łukasz Mierzwa
14ce63f7dc fix(backend): enable more linters in golangci-lint 2021-11-03 17:16:14 +00:00
Łukasz Mierzwa
c4a3478d1f chore(backend): refactor error checks 2020-11-21 18:14:46 +00:00
Łukasz Mierzwa
640c701295 chore(backend): migrate from gin-gonic/gin to go-chi/chi
Gin comes with a lot of dependencies and doesn't use Go standard http handler.
Chi is smaller and allows to use standard middleware.
2020-10-18 11:57:43 +01:00
Łukasz Mierzwa
170dba8a37 chore(backend): use zerolog instead of logrus 2020-10-15 10:10:00 +01:00
Łukasz Mierzwa
0c65bc7821 feat(tests): add looppointer linter 2020-06-24 22:35:22 +01:00
Łukasz Mierzwa
e1b548fc93 fix(tests): add more test coverage 2020-04-05 12:50:15 +01:00
Łukasz Mierzwa
265dbf823f fix(backend): remove file:// transport support 2020-02-12 16:51:09 +00:00
Łukasz Mierzwa
908c2b96d5 fix(project): drop support for Alertmanager v1 API 2020-02-12 16:09:55 +00:00
Łukasz Mierzwa
38e43b1ef4 fix(backend): sanitize urls in errors 2020-01-23 12:12:26 +00:00
Łukasz Mierzwa
4efe17e8f1 feat(api): expose alertmanager headers in the API 2019-09-26 20:37:23 +01:00
Łukasz Mierzwa
77735ffcf1 fix(backend): fix problems found by new linters 2019-08-18 15:51:54 +01:00
Łukasz Mierzwa
29b6c7baae fix(backend): fix problems found by new linters 2019-08-18 10:58:26 +01:00
Łukasz Mierzwa
939970fd5f fix(backend): reformat backend code 2019-08-17 14:52:35 +01:00
Łukasz Mierzwa
af9e55032e feat(api): use metrics to detect Alertmanager version
We need to know upstream version to decide which API endpoints we can use, metrics don't change between versions so they allow us to do that without any prior knowlage or assumptions
2019-01-30 17:57:02 +00:00
Richard Maynard
ec14be0288 feat(backend): add support for custom headers (#368)
This will allow the AlertManager upstreams to be sent user defined HTTP headers.
2019-01-17 08:53:33 +00: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
c6dc362186 fix(style): error strings should not be capitalized or end with punctuation or a newline 2018-08-11 23:03:02 +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
fd0eb46adf Sanitize Alertmanager URI before putting it in /alerts.json reponse
Alertmanager URI might contain basic auth username & password, we should replace password with 'xxx' in logs and and error messages.
Go will still print it in HTTP request errors, but that will be fixed in the next Go release - https://go-review.googlesource.com/c/go/+/102855
Fixes #259
2018-04-27 09:36:12 -07:00
Łukasz Mierzwa
782b633f8c Fix error checking in file read tests 2018-01-27 09:57:19 -08:00
Łukasz Mierzwa
b8cf0a83f4 Correctly handle all types of file:// values
For absolute paths we correctly return full decoded path, but for relative paths we can't simply strip file:// prefix as it might leave query args in place. Build absolute path by joining working dir + hostname part + path part.
Add an extra test case for coverage.
2018-01-27 09:54:19 -08:00
Łukasz Mierzwa
d5a7cb9ace Rename Transport interface to Reader 2018-01-23 19:40:24 -08:00
Łukasz Mierzwa
6f89a77f8d Rename 'transport' package to 'uri'
This package adds handlers for different URI schemes, name clashes with http.Transport which is now passed around. Rename it to make it more obvious what it does
2018-01-23 19:32:39 -08:00