Commit Graph

48 Commits

Author SHA1 Message Date
Ł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
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
6f496cf450 feat(backend): add http server timeouts 2021-04-02 19:30:30 +01: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
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
6f162d1a5a chore(backend): use Go 1.16 embed for static files 2021-03-08 21:21:42 +00:00
Łukasz Mierzwa
891cc8a87c chore(backend): use go-sentry middleware for backend 2021-03-05 14:04:50 +00:00
Łukasz Mierzwa
88d7d81982 chore(backend): migrate to chi v5 2021-02-28 13:38:04 +00:00
Łukasz Mierzwa
a3b13d0fcc feat(backend): add /robots.txt endpoint 2021-02-24 21:17:54 +00:00
Łukasz Mierzwa
477e8f29bb feat(backend): add healthcheck:visible config option
Fixes #2614
2021-01-17 12:59:19 +00:00
Łukasz Mierzwa
17b4e943b8 feat(backend): add healtcheck:filters option 2020-12-13 13:18:38 +00:00
Łukasz Mierzwa
1d10835400 fix(backend): don't require auth for /health and /metrics
Fixes #2465
2020-11-25 12:39:31 +00:00
Łukasz Mierzwa
c4a3478d1f chore(backend): refactor error checks 2020-11-21 18:14:46 +00:00
Łukasz Mierzwa
8cde114573 fix(tests): add a test for slow clients 2020-11-20 19:26:41 +00:00
Łukasz Mierzwa
feaad60007 feat(backend): add config option to listen on HTTPS 2020-11-20 19:26:41 +00:00
Łukasz Mierzwa
20138a696e fix(backend): correctly handle sentry config errors 2020-10-30 18:09:23 +00:00
Łukasz Mierzwa
8ee2a8e744 feat(backend): add log.requests option
This controls request log separately from log.level
2020-10-19 09:59:58 +01:00
Łukasz Mierzwa
c1dc75e30c fix(backend): fix static files headers 2020-10-18 13:06:07 +01: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
958653a505 fix(tests): refactor testscript tests 2020-09-25 19:11:50 +01:00
Łukasz Mierzwa
9d43ad4753 fix(backend): don't anchor linkDetect rule regexes
Fixes #1922
2020-07-06 21:45:45 +01:00
Łukasz Mierzwa
71839b0504 fix(tests): more test coverage 2020-06-18 14:59:32 +01:00
Łukasz Mierzwa
7a3da15b30 fix(tests): add more test coverage 2020-06-18 14:59:32 +01:00
Łukasz Mierzwa
4f58ff2e58 feat(backend): use cluster name from config 2020-06-12 19:14:17 +01:00
Łukasz Mierzwa
397dedd897 fix(backend): report listening address in logs 2020-04-09 10:02:34 +01:00
Łukasz Mierzwa
4117a0b391 fix(backend): anchor all regexes in the config 2020-03-26 16:12:23 +00:00
Łukasz Mierzwa
9e7d7ed4d6 fix(tests): refactor main code for more test coverage 2020-03-10 17:31:12 +00:00
Łukasz Mierzwa
6313077150 feat(backend): add configuration options for silence ACL rules 2020-03-09 22:28:43 +00:00
Łukasz Mierzwa
88b287f81f fix(backend): force mime type for ico files 2020-03-05 23:51:10 +00:00
Łukasz Mierzwa
2ab6892c85 feat(backend): use username from credentials for silences
When authentication is enabled and proxy mode is on then ensure all silences are created with the username from credentials, rather than what the user sends.
2020-02-26 11:26:19 +00:00
Łukasz Mierzwa
fbff53c51b feat(backend): support header based auth 2020-02-22 15:50:01 +00:00
Łukasz Mierzwa
e08c442e39 feat(backend): add basic auth support 2020-02-22 15:50:00 +00:00
Łukasz Mierzwa
f502319005 feat(backend): allow setting CORS credentials policy 2020-02-19 09:59:35 +00:00
Łukasz Mierzwa
c76b3fcc0d fix(tests): add missing test coverage 2020-02-12 16:09:55 +00:00
Łukasz Mierzwa
db78b6bca1 chore(backend): refactor config flag setup for better test coverage 2020-02-05 16:57:56 +00:00
Łukasz Mierzwa
a2ca29d88e feat(backend): add log.timestamp to disable timestamps in log messages 2020-01-31 15:07:27 +00:00
Łukasz Mierzwa
572f9975b8 feat(backend): add readonly option to alertmanager 2020-01-28 22:26:56 +00:00
Łukasz Mierzwa
4bdc8ff7b0 feat(tests): add basic testscript tests 2020-01-23 12:12:26 +00:00
Łukasz Mierzwa
884bd3581e fix(backend): mask credentials in error logs
Fixes #1363
2020-01-22 10:56:42 +00:00
Łukasz Mierzwa
3b2534e0f0 feat(backend): add /health endpoint for healthcheck probes
Fixes #1155
2019-11-14 11:17:28 +00:00
Łukasz Mierzwa
0015d3fa4e feat(ui): replace jira link detection with a generic link finder
Fixes #1140
2019-11-11 23:24:06 +00:00
Łukasz Mierzwa
22ea4393ab feat(api): expose all silences under /silences.json 2019-10-26 17:36:12 +01:00
Łukasz Mierzwa
6d892b7f43 fix(backend): don't export endpoint paths in metrics
/metrics currently exposes all paths, which causes high cardinality. Switch to exporting only handler names
2019-10-15 12:25:15 +01:00
Łukasz Mierzwa
108383cf73 chore(backend): move main go code to the cmd folder
Make the root folder less messy by moving all karma command code to the cmd folder
2019-08-31 13:49:14 +01:00