mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
unistore: Add support for verify-full in postgres (#96825)
Add support for verify-full in postgres
This commit is contained in:
parent
f6b6935563
commit
4f8ab73a8c
@ -70,9 +70,13 @@ func getEnginePostgres(getter confGetter) (*xorm.Engine, error) {
|
|||||||
"user": getter.String("user"),
|
"user": getter.String("user"),
|
||||||
// accept the core Grafana jargon of `password` as well, originally
|
// accept the core Grafana jargon of `password` as well, originally
|
||||||
// Unified Storage used `pass`
|
// Unified Storage used `pass`
|
||||||
"password": cmp.Or(getter.String("pass"), getter.String("password")),
|
"password": cmp.Or(getter.String("pass"), getter.String("password")),
|
||||||
"dbname": getter.String("name"),
|
"dbname": getter.String("name"),
|
||||||
"sslmode": cmp.Or(getter.String("ssl_mode"), "disable"),
|
"sslmode": cmp.Or(getter.String("ssl_mode"), "disable"),
|
||||||
|
"sslsni": getter.String("ssl_sni"),
|
||||||
|
"sslrootcert": getter.String("ca_cert_path"),
|
||||||
|
"sslkey": getter.String("client_key_path"),
|
||||||
|
"sslcert": getter.String("client_cert_path"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: probably interesting:
|
// TODO: probably interesting:
|
||||||
@ -84,8 +88,7 @@ func getEnginePostgres(getter confGetter) (*xorm.Engine, error) {
|
|||||||
// dsnKV["enable_experimental_alter_column_type_general"] = "true"
|
// dsnKV["enable_experimental_alter_column_type_general"] = "true"
|
||||||
|
|
||||||
// TODO: do we want to support these options in the DSN as well?
|
// TODO: do we want to support these options in the DSN as well?
|
||||||
// "sslkey", "sslcert", "sslrootcert", "sslpassword", "sslsni", "krbspn",
|
// "sslpassword", "krbspn", "krbsrvname", "target_session_attrs", "service", "servicefile"
|
||||||
// "krbsrvname", "target_session_attrs", "service", "servicefile"
|
|
||||||
|
|
||||||
// More on Postgres connection string parameters:
|
// More on Postgres connection string parameters:
|
||||||
// https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
// https://www.postgresql.org/docs/current/libpq-connect.html#LIBPQ-CONNSTRING
|
||||||
|
Loading…
Reference in New Issue
Block a user