grafana/public/app/features
ying-jeanne c57047a420
Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353)
* postgres SSL certification

* add back the UI to configure SSL Authentication files by file path

* add backend logic

* correct unittest

* mini changes

* Update public/app/plugins/datasource/postgres/config_ctrl.ts

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update public/app/plugins/datasource/postgres/partials/config.html

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>

* mutex

* check file exist before remove

* change permission

* change default configuremethod to file-path

* Update public/app/plugins/datasource/postgres/partials/config.html

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Update public/app/plugins/datasource/postgres/partials/config.html

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Update public/app/plugins/datasource/postgres/partials/config.html

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Update public/app/plugins/datasource/postgres/partials/config.html

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* rename sslconfiguremethod to sslconfigurationmethod

* frontend update

* solve comments

* Postgres: Convert tests to stdlib

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Postgres: Be consistent about TLS/SSL terminology

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* fix init inconsistancy

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* naming convention

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Undo change

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix TLS issue

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* change permissions

* Fix data source field names

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Clean up HTML

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Improve popover text

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix SSL input bug

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Undo unnecessary change

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Clean up backend code

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix build

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* More consistent naming

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Clean up code

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Enforce certificate file permissions

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* add settings

* Undo changes

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* fix windows file path

* PostgresDataSource: Fix mutex usage

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Fix tests

Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>

* Update pkg/tsdb/postgres/postgres.go

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* fix compilation

* fix unittest

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* Apply suggestions from code review

Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>

* mock function

* change kmutex package

* add kmutex into middleware

* lock connection file per datasource

* add unittest regarding concurrency

* version should be equal

* adding unittest

* fix the loop

* fix unitest

* fix postgres unittst

* remove comments

* move dataPath from arg to tlsManager struct field

* Use DecryptedValues method

Use cached decrypted values instead of
using secure json data decrypt which will
decrypt unchanged values over and over again.

* remove unneeded mutex in tests and cleanup tests

* fix the lint

Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2021-02-23 22:10:55 +01:00
..
admin Remove last synchronisation field from LDAP debug view (#30984) 2021-02-15 17:11:17 +02:00
alerting AlertingNG: Test definition (#30886) 2021-02-15 13:56:59 +01:00
annotations Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989) 2021-02-11 13:45:25 +01:00
api-keys Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
dashboard Chore: Upgrade eslint packages (#31408) 2021-02-23 10:02:07 +01:00
datasources Postgres: allow providing TLS/SSL certificates as text in addition to file paths (#30353) 2021-02-23 22:10:55 +01:00
explore TraceViewer: Fix trace to logs icon to show in right pane (#31414) 2021-02-23 19:44:31 +01:00
expressions Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
folders Folders: Editors should be able to edit name and delete folders (#31242) 2021-02-17 12:40:28 +01:00
library-panels/state Introduce functions for interacting with library panels API (#30993) 2021-02-17 13:40:10 +00:00
live Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
manage-dashboards Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
org Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
panel Chore: Fix strict errors, down to 416 (#31365) 2021-02-22 10:06:07 +01:00
playlist Eslint: no-duplicate-imports rule (bump grafana-eslint-config) (#30989) 2021-02-11 13:45:25 +01:00
plugins DatasourceSrv: Fix instance retrieval when datasource variable value set to "default" (#31347) 2021-02-19 12:31:28 +01:00
profile Chore: Fix strict errors, down to 416 (#31365) 2021-02-22 10:06:07 +01:00
query Chore: Fix strict errors, down to 416 (#31365) 2021-02-22 10:06:07 +01:00
sandbox NgAlerting: View query result (#30218) 2021-01-19 14:04:54 +01:00
search Search: display sort metadata (#31167) 2021-02-17 14:06:19 +02:00
teams Prettier: Upgrade to 2 (#30387) 2021-01-20 07:59:48 +01:00
templating Variables: Adds queryparam formatting option (#30858) 2021-02-05 07:16:06 +01:00
users Admin: Fixes so form values are filled in from backend (#30544) 2021-01-26 08:07:45 +01:00
variables AdHocVariables: Fixes crash when values are stored as numbers (#31382) 2021-02-22 10:35:36 +01:00
all.ts Migration: Edit notification channel (#25980) 2020-09-09 12:46:19 +02:00