grafana/pkg/util
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
..
errutil Chore: Drop xerrors dependency (#26718) 2020-07-31 09:45:20 +02:00
proxyutil Chore: Use Header.Set method instead of Header.Add (#29804) 2020-12-14 15:13:01 +01:00
retryer CloudWatch Logs queue and websocket support (#28176) 2020-10-28 08:36:57 +00:00
encoding_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
encoding.go Chore: Fix issues found by staticcheck (#28802) 2020-11-05 11:29:39 +01:00
encryption_test.go Fix decrypting secrets in alerting migration (#41061) 2021-10-29 14:20:07 +03:00
encryption.go Encryption: Use secrets service (#40251) 2021-11-04 18:47:21 +02:00
filepath.go Plugins: Ignore symlinked folders when verifying plugin signature (#34434) 2021-06-15 11:55:47 +02:00
ip_address_test.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
ip_address.go Backend: fix IPv6 address parsing erroneous (#28585) 2020-11-25 07:55:22 +01:00
json.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
math.go Chore: Remove dead code (#28664) 2020-11-05 11:00:00 +01:00
md5_test.go Fix changed want md5 hash 2018-09-21 13:41:03 +02:00
md5.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00
shortid_generator_test.go LibraryElements: Enables creating library elements with specific UID (#39019) 2021-09-10 11:22:13 +02:00
shortid_generator.go LibraryElements: Enables creating library elements with specific UID (#39019) 2021-09-10 11:22:13 +02:00
split_email_test.go Test: Create unit test to SplitEmails (#27985) 2020-10-02 08:42:10 +02:00
split_email.go Emails: resurrect template notification (#18686) 2019-08-26 17:19:03 +02:00
strings_test.go Admin: User list tweaks (#38750) 2021-09-01 16:53:58 +03:00
strings.go Admin: User list tweaks (#38750) 2021-09-01 16:53:58 +03:00
url_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
url.go AzureMonitor: Alerting for Azure Application Insights (#19381) 2019-10-07 14:18:14 +02:00
validation_test.go Tests: Change util GoConvey tests to use testify (#26724) 2020-08-13 11:10:48 +02:00
validation.go pkg/util/*: Add missing function comments. 2019-01-28 22:09:40 +01:00