Commit Graph

186 Commits

Author SHA1 Message Date
Taavi Väänänen
bda2fcbc29 refactor(auth): set groups during authentication
Instead of loading groups from config when they're checked, move group
calculation to same place where the username itself is determined. This
is needed to allow sourcing group membership from a HTTP header or
similar in a future commit.

Signed-off-by: Taavi Väänänen <hi@taavi.wtf>
2021-10-23 14:38:54 +01:00
Łukasz Mierzwa
ebfe335750 fix(api): ensure alert state is always correctly selected 2021-09-23 21:03:00 +01:00
Łukasz Mierzwa
973ef191ba fix(backend): fix history rewrite rule handling 2021-08-18 14:18:51 +01:00
Łukasz Mierzwa
5bc045b389 chore(actions): use latest Go version (#3441) 2021-08-17 09:52:15 +01:00
Łukasz Mierzwa
5d8ad6acf2 fix(api): remove redundant silences initialization 2021-07-23 19:55:05 +01:00
valihanov
c1353f88cc fix(api): refactor silence map initialization to avoid races 2021-07-23 19:55:05 +01:00
Łukasz Mierzwa
75b2789597 feat(backend): add labels:valueOnly config option 2021-07-19 20:04:05 +01:00
Łukasz Mierzwa
434eb677fd feat(api): add /version endpoint
Fixes #3332
2021-07-19 18:28:30 +01:00
Łukasz Mierzwa
fc3f6baedf feat(api): string grid labels from alert groups
Fixes #3222
2021-07-19 17:43:46 +01:00
Łukasz Mierzwa
716e62c347 fix(api): dedup should be done before alert limit 2021-07-16 19:12:29 +01:00
Łukasz Mierzwa
68c4163dd2 fix(ui): skip custom asset loading if not enabled 2021-07-15 14:29:49 +01:00
Łukasz Mierzwa
7b8e8bb17a feat(api): limit group alerts 2021-07-14 18:00:07 +01:00
Łukasz Mierzwa
1f32666036 fix(api): use POST requests for /alerts.json endpoint 2021-07-12 22:09:11 +01:00
Łukasz Mierzwa
907ac420d3 feat(api): use a dedicated API endpoint for overview modal 2021-07-09 12:25:32 +01:00
Łukasz Mierzwa
e1505a01cb fix(api): fix empty response for alertList.json 2021-07-08 10:09:54 +01:00
Łukasz Mierzwa
d7389c8de0 fix(api): avoid generating one grid per alert 2021-07-06 21:00:48 +01:00
Łukasz Mierzwa
dcfbea3376 chore(api): refactor grid label select source 2021-07-03 12:36:02 +01:00
Łukasz Mierzwa
f13cd9a112 feat(api): add alertList.json endpoint 2021-07-02 22:06:45 +01:00
Łukasz Mierzwa
04379fc3cc feat(ui): paginate api 2021-06-28 12:28:40 +01:00
Łukasz Mierzwa
3ad9eef277 fix(ui): disable cra preflight checks 2021-06-24 17:28:38 +01:00
Łukasz Mierzwa
186d2a4e01 fix(backend): add a go_max_procs metric 2021-06-03 14:32:26 +01:00
Łukasz Mierzwa
79c2fbc6e7 feat(backend): use automaxprocs for GOMAXPROCS 2021-06-03 13:10:51 +01:00
Łukasz Mierzwa
19d7a29551 fix(ci): enable revive linter 2021-05-28 21:28:31 +01:00
Łukasz Mierzwa
caf18887ea feat(backend): support isEqual silence field in ACLs 2021-05-18 17:08:44 +01:00
Łukasz Mierzwa
bdb80960a6 fix(backend): don't skip labels with variants == groups 2021-05-18 13:00:13 +01:00
Łukasz Mierzwa
19345cc53a feat(ui): add support for alertmanager v0.22.0 2021-05-15 11:41:01 +01:00
Łukasz Mierzwa
aa7b54f02b fix(backend): redirect to slash
If listen.prefix is set to /foo we should redirect /foo => /foo/

Fixes 3084
2021-05-07 18:40:04 +01:00
Łukasz Mierzwa
c812c25393 feat(backend): add alert history source rewrite rules
Fixes #3064
2021-05-04 13:28:35 +01:00
Łukasz Mierzwa
ac03e835af fix(backend): use correct label selectors 2021-05-04 10:43:46 +01:00
Łukasz Mierzwa
12c4a22d71 feat(project): show alert history 2021-05-01 19:37:29 +01:00
Łukasz Mierzwa
31d21f29cf chore(backend): use hashicorp/golang-lru for internal cache 2021-04-25 18:38:29 +01:00
Łukasz Mierzwa
9222133df8 fix(backend): allow duplicated upstream URIs
Fixes #3024
2021-04-22 15:24:38 +01:00
Łukasz Mierzwa
e0f52dacbd feat(backend): add auto multi-grid config 2021-04-21 10:51:18 +01:00
Łukasz Mierzwa
7778e66b7b fix(backend): tweak auto grid selection 2021-04-19 11:42:03 +01:00
Łukasz Mierzwa
7cd82f5d1f feat(backend): smart grid label selection 2021-04-18 20:22:38 +01:00
Łukasz Mierzwa
e63447238d feat(ui): allow HTML in annotations
Fixes #2886
2021-04-08 19:43:25 +01:00
Łukasz Mierzwa
8addc08d21 chore(backend): upgrade to yaml.v3 2021-04-08 18:44:55 +01:00
Łukasz Mierzwa
6f496cf450 feat(backend): add http server timeouts 2021-04-02 19:30:30 +01:00
Łukasz Mierzwa
baf3114ee7 fix(backend): sanitise header values before logging
Fixes #2930.
2021-03-30 23:21:16 +01:00
Łukasz Mierzwa
c64b900c43 fix(backend): fix a deadlock in ClusterMemberNames()
ClusterMemberNames can aquire read lock twice, which could block write locks.

Fixes #2888
2021-03-22 09:43:31 +00:00
Łukasz Mierzwa
85372d9c19 fix(tests): add tests for proxy_url 2021-03-21 13:49:54 +00:00
Martin Hrabovcin
17a1d07a67 feat(backend): add support for upstream server connection proxy 2021-03-21 13:49:54 +00:00
Łukasz Mierzwa
2b8ed39964 fix(backend): enforce 5s sleep between upstream pulls
Might fix #2888
2021-03-12 16:00:03 +00:00
Łukasz Mierzwa
5534703db9 fix(tests): more test coverage 2021-03-11 19:05:58 +00:00
Łukasz Mierzwa
01629d9788 fix(ci): tweak fragile tests 2021-03-09 18:59:38 +00:00
Łukasz Mierzwa
9a6d469969 fix(tests): fix error check 2021-03-09 14:16:12 +00:00
Łukasz Mierzwa
6f162d1a5a chore(backend): use Go 1.16 embed for static files 2021-03-08 21:21:42 +00:00
Łukasz Mierzwa
f68399cc70 feat(ui): allow moving annotations to alert dropdown menu
Fixes #2596
2021-03-06 16:01:50 +00:00
Łukasz Mierzwa
891cc8a87c chore(backend): use go-sentry middleware for backend 2021-03-05 14:04:50 +00:00
Łukasz Mierzwa
58d630e438 fix(tests): improve test coverage 2021-03-01 12:05:36 +00:00