grafana/pkg/services/store
Prem Saraswat 196134b0b4
Storage Server: Avoid incorrect parsing of connection string (#85293)
Storage Server: avoid incorrect parsing of connection string

In storage server, a connection string is generated to connect to the
backing database. In case of Postgres, we were generating the string
like `"user=grafana pass= host=postgres.example port=4567"`.

This triggered an edge case in `pq` (the go postgres driver) to parse
`pass` to be equal to `host=postgres.example`, and host being reset to
default value.

Using single quotes in the connection string fixed this.

Signed-off-by: Prem Kumar <prem.saraswat@grafana.com>
2024-05-03 10:54:39 -04:00
..
entity Storage Server: Avoid incorrect parsing of connection string (#85293) 2024-05-03 10:54:39 -04:00
kind/dashboard Search: Include collapsed panels in search v2 (#83047) 2024-02-28 16:11:09 +01:00
resolver Storage: Switch from tenant to namespace & remove GRN (#79250) 2023-12-11 12:26:05 -05:00
sanitizer Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
testdata Tests: Update geomap golden json (#80964) 2024-01-22 13:25:51 +02:00
auth.go Chore: get user from appcontext rather than store utility (#59926) 2022-12-07 07:38:23 -08:00
config.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
entity_events_mock.go SearchV2: instant local updates, folder events (#50001) 2022-06-03 13:11:32 -07:00
entity_events_test.go Chore: use any rather than interface{} (#74066) 2023-08-30 18:46:47 +03:00
entity_events.go FeatureToggles: Add context and and an explicit global check (#78081) 2023-11-14 12:50:27 -08:00
file_guardian.go Chore: capitalise log messages for app platform (#74336) 2023-09-04 18:46:08 +02:00
http.go Grafana: Replace magic number with a constant variable in response status (#80132) 2024-02-27 18:39:51 +02:00
sanitize.go Chore: capitalise log messages for app platform (#74336) 2023-09-04 18:46:08 +02:00
service_test.go Chore: Update test database initialization (#81673) 2024-02-09 09:35:39 -05:00
service.go Chore: Remove public vars in setting package (#81018) 2024-01-23 12:36:22 +01:00
static_auth.go Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
storage_disk.go Chore: capitalise log messages for app platform (#74336) 2023-09-04 18:46:08 +02:00
storage_sql_test.go Storage: store uploaded files in SQL rather than on the disk (#49034) 2022-05-21 16:55:11 -07:00
storage_sql.go Chore: Fix goimports grouping (#62429) 2023-01-30 09:57:50 +01:00
system_users_mock.go Chore: Fix goimports grouping (#62429) 2023-01-30 09:57:50 +01:00
system_users_test.go Chore: Fix goimports grouping (#62429) 2023-01-30 09:57:50 +01:00
system_users.go Store: Add mock for system users to be used in tests (#61245) 2023-01-11 11:50:22 -03:00
tree.go Storage: Add maxFiles to list functions (#76414) 2023-11-01 09:42:24 -07:00
types_test.go Storage: simplify retrieving the file names from the response frame (#51805) 2022-07-07 10:47:05 +04:00
types.go Storage: Add maxFiles to list functions (#76414) 2023-11-01 09:42:24 -07:00
utils_test.go ObjectStore: Add folder to kind registry (#57461) 2022-10-21 16:48:32 -04:00
utils.go Chore: Move ReqContext to contexthandler service (#62102) 2023-01-27 08:50:36 +01:00
validate.go Chore: remove the entity kind registry (#79178) 2023-12-06 14:00:53 -08:00