grafana/pkg/services
gotjosh 5b64c4f684
Alerting: Fix panic while proxying 4xx responses of requests to cortex/loki (#42570)
Fixes a panic that would ocurr as we proxy 4xx responses. When this happens and the content type of the response is JSON we try to check if the response has a "message" key. Then, we assume that the key will contain a value of string but we don't take into account that this value can potentially be `null`.

This adds a type assertion check to to this assumption so that we can keep the original JSON body as the response if we're unable to extract an `message`.
2021-12-01 13:53:29 +00:00
..
accesscontrol Access control: use delegatable flag to check if role can be granted (#42070) 2021-11-22 17:44:03 +03:00
alerting Chore: Add context to datasource service (#42294) 2021-11-26 18:10:36 +01:00
annotations Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
auth JWT: Split race-y test into two stable tests (#41950) 2021-11-19 12:05:04 +01:00
cleanup Chore: Add context dashboard version (#41672) 2021-11-17 10:57:37 +01:00
contexthandler Chore: Add context to authinfo (#42096) 2021-11-25 14:22:40 +01:00
dashboards Chore: Add context to playlist (#41337) 2021-11-19 14:32:14 +01:00
dashboardsnapshots Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
datasourceproxy Plugins: Plugin Store API returns DTO model (#41340) 2021-11-17 12:04:22 +01:00
datasources Chore: Add context to datasource service (#42294) 2021-11-26 18:10:36 +01:00
encryption Replace encryption.Service usages by secrets.Service (#41625) 2021-11-12 12:16:39 +01:00
guardian Chore: Refactor GoConvey in the guardian package (#40898) 2021-10-27 07:45:20 -05:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refactor secrets service (#41771) 2021-11-17 11:52:45 +02:00
ldap LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
libraryelements fix error code for delete folder (#42470) 2021-11-30 21:07:04 +08:00
librarypanels Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
licensing AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
live Live: fix closing ws conns for push endpoints (#42447) 2021-11-29 19:22:42 +03:00
login Chore: Add context to authinfo (#42096) 2021-11-25 14:22:40 +01:00
multildap Chore: Replace goconvey in multildap package (#40681) 2021-10-20 15:07:37 +02:00
ngalert Alerting: Fix panic while proxying 4xx responses of requests to cortex/loki (#42570) 2021-12-01 13:53:29 +00:00
notifications Replace AddEventListener with AddEventListenerCtx and Publish with PublishCtx (#42284) 2021-11-29 14:23:24 +01:00
oauthtoken Chore: Add context to authinfo (#42096) 2021-11-25 14:22:40 +01:00
pluginsettings Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
provisioning Chore: Add context to playlist (#41337) 2021-11-19 14:32:14 +01:00
quota Alerting: Make Unified Alerting enabled by default for those who do not use legacy alerting (#42200) 2021-11-24 14:56:07 -05:00
rendering Rendering: Add light theme for errors (#41616) 2021-11-17 12:18:47 +01:00
schemaloader Fix the disjuction of panels (#39412) 2021-10-06 11:39:23 +02:00
search Chore: Propagate context for search (#41010) 2021-10-28 11:29:07 +02:00
searchusers remove the global log error/warn etc functions (#41404) 2021-11-08 17:56:56 +01:00
secrets Encryption: Add usage stats to secrets service (#42437) 2021-11-29 16:35:15 +02:00
serviceaccounts Serviceaccounts: Filtering service accounts from user queries (#41410) 2021-11-23 23:06:40 +00:00
shorturls Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore Alerting: Update alert rule migration to use expanded queries (#42493) 2021-12-01 11:45:27 +00:00
teamguardian Chore: Refactor GoConvey in teamguardian package (#40896) 2021-10-26 17:59:37 +02:00
updatechecker Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00