grafana/pkg/services
Tania B 5652bde447
Encryption: Use secrets service (#40251)
* Use secrets service in pluginproxy

* Use secrets service in pluginxontext

* Use secrets service in pluginsettings

* Use secrets service in provisioning

* Use secrets service in authinfoservice

* Use secrets service in api

* Use secrets service in sqlstore

* Use secrets service in dashboardshapshots

* Use secrets service in tsdb

* Use secrets service in datasources

* Use secrets service in alerting

* Use secrets service in ngalert

* Break cyclic dependancy

* Refactor service

* Break cyclic dependancy

* Add FakeSecretsStore

* Setup Secrets Service in sqlstore

* Fix

* Continue secrets service refactoring

* Fix cyclic dependancy in sqlstore tests

* Fix secrets service references

* Fix linter errors

* Add fake secrets service for tests

* Refactor SetupTestSecretsService

* Update setting up secret service in tests

* Fix missing secrets service in multiorg_alertmanager_test

* Use fake db in tests and sort imports

* Use fake db in datasources tests

* Fix more tests

* Fix linter issues

* Attempt to fix plugin proxy tests

* Pass secrets service to getPluginProxiedRequest in pluginproxy tests

* Fix pluginproxy tests

* Revert using secrets service in alerting and provisioning

* Update decryptFn in alerting migration

* Rename defaultProvider to currentProvider

* Use fake secrets service in alert channels tests

* Refactor secrets service test helper

* Update setting up secrets service in tests

* Revert alerting changes in api

* Add comments

* Remove secrets service from background services

* Convert global encryption functions into vars

* Revert "Convert global encryption functions into vars"

This reverts commit 498eb19859.

* Add feature toggle for envelope encryption

* Rename toggle

Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
Co-authored-by: Joan López de la Franca Beltran <joanjan14@gmail.com>
2021-11-04 18:47:21 +02:00
..
accesscontrol Access control: Redirect non-API calls (#41100) 2021-11-04 09:59:52 +01:00
alerting Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
annotations Chore: Replace util.DynMap with structs (#36332) 2021-07-01 10:23:33 +02:00
auth Auth: Omit all base64 paddings in JWT tokens for the JWT auth (#35602) 2021-10-27 18:50:30 +02:00
cleanup dispatch with context where missing (#40810) 2021-10-27 15:57:06 +02:00
contexthandler remove crit and trace (#40320) 2021-10-26 17:36:24 +02:00
dashboards Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
dashboardsnapshots Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
datasourceproxy Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +01:00
datasources Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
encryption Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02: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
ldap LDAP: Search all DNs for users (#38891) 2021-09-14 10:49:37 +02:00
libraryelements Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01: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 Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
login Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
multildap Chore: Replace goconvey in multildap package (#40681) 2021-10-20 15:07:37 +02:00
ngalert Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
notifications Chore: Refactor GoConvey in notification service package (#40897) 2021-10-26 18:08:04 +02:00
oauthtoken Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
pluginsettings Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
provisioning Chore: Add alert ctx (#41161) 2021-11-03 14:10:39 +01:00
quota Alerting: Remove ngalert feature toggle and introduce two new settings for enabling Grafana 8 alerts and disabling them for specific organisations (#38746) 2021-09-29 16:16:40 +02:00
rendering Plugins: Refactor Plugin Management (#40477) 2021-11-01 10:53:33 +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 Chore: Add context to temp user (#41284) 2021-11-04 11:17:07 +01:00
secrets Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
shorturls Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
sqlstore Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02: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