grafana/pkg/plugins
Joan López de la Franca Beltran 722c414fef
Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865)
* Encryption: Add support to encrypt/decrypt sjd

* Add datasources.Service as a proxy to datasources db operations

* Encrypt ds.SecureJsonData before calling SQLStore

* Move ds cache code into ds service

* Fix tlsmanager tests

* Fix pluginproxy tests

* Remove some securejsondata.GetEncryptedJsonData usages

* Add pluginsettings.Service as a proxy for plugin settings db operations

* Add AlertNotificationService as a proxy for alert notification db operations

* Remove some securejsondata.GetEncryptedJsonData usages

* Remove more securejsondata.GetEncryptedJsonData usages

* Fix lint errors

* Minor fixes

* Remove encryption global functions usages from ngalert

* Fix lint errors

* Minor fixes

* Minor fixes

* Remove securejsondata.DecryptedValue usage

* Refactor the refactor

* Remove securejsondata.DecryptedValue usage

* Move securejsondata to migrations package

* Move securejsondata to migrations package

* Minor fix

* Fix integration test

* Fix integration tests

* Undo undesired changes

* Fix tests

* Add context.Context into encryption methods

* Fix tests

* Fix tests

* Fix tests

* Trigger CI

* Fix test

* Add names to params of encryption service interface

* Remove bus from CacheServiceImpl

* Add logging

* Add keys to logger

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* Add missing key to logger

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>

* Undo changes in markdown files

* Fix formatting

* Add context to secrets service

* Rename decryptSecureJsonData to decryptSecureJsonDataFn

* Name args in GetDecryptedValueFn

* Add template back to NewAlertmanagerNotifier

* Copy GetDecryptedValueFn to ngalert

* Add logging to pluginsettings

* Fix pluginsettings test

Co-authored-by: Tania B <yalyna.ts@gmail.com>
Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
2021-10-07 17:33:50 +03:00
..
adapters Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
backendplugin AccessControl: frontend changes for adding FGAC to licensing (#39484) 2021-10-05 14:54:26 +01:00
manager Chore: Add context for dashboards (#39844) 2021-10-05 13:26:24 +02:00
plugincontext Encryption: Refactor securejsondata.SecureJsonData to stop relying on global functions (#38865) 2021-10-07 17:33:50 +03:00
plugindashboards Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
app_plugin.go Pick changes from PR 33811, use UID in dashboard navlinks (#36899) 2021-07-22 09:11:33 +02:00
backend_utils.go Chore: Fix various spelling errors in back-end code (#25241) 2020-06-01 17:11:25 +02:00
dashboards.go Introduce TSDB service (#31520) 2021-03-08 07:02:49 +01:00
dataframes.go Introduce TSDB service (#31520) 2021-03-08 07:02:49 +01:00
datasource_plugin.go Chore: Refactor backend plugin manager/tsdb query data (#34944) 2021-06-03 14:16:58 +02:00
error.go Introduce TSDB service (#31520) 2021-03-08 07:02:49 +01:00
frontend_plugin_test.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
frontend_plugin.go Plugins: Enable plugin runtime install/uninstall capabilities (#33836) 2021-05-12 20:05:16 +02:00
ifaces.go Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
models.go track signature files + add warn log (#38938) 2021-09-08 08:49:05 +02:00
panel_plugin.go PanelEdit: Improves viz picker ux, auto close on click (#33633) 2021-05-03 16:49:09 +02:00
plugins.go Introduce TSDB service (#31520) 2021-03-08 07:02:49 +01:00
renderer_plugin.go Chore: Refactor backend plugin manager/tsdb query data (#34944) 2021-06-03 14:16:58 +02:00
state.go track signature files + add warn log (#38938) 2021-09-08 08:49:05 +02:00
tsdb.go Chore: Refactor backend plugin manager/tsdb query data (#34944) 2021-06-03 14:16:58 +02:00