grafana/pkg/services/ngalert/api
Guilherme Caulada a367ad730c
Secrets: Implement basic unified secret store service (#45804)
* wip: Implement kvstore for secrets

* wip: Refactor kvstore for secrets

* wip: Add format key function to secrets kvstore sql

* wip: Add migration for secrets kvstore

* Remove unused Key field from secrets kvstore

* Remove secret values from debug logs

* Integrate unified secrets with datasources

* Fix minor issues and tests for kvstore

* Create test service helper for secret store

* Remove encryption tests from datasources

* Move secret operations after datasources

* Fix datasource proxy tests

* Fix legacy data tests

* Add Name to all delete data source commands

* Implement decryption cache on sql secret store

* Fix minor issue with cache and tests

* Use secret type on secret store datasource operations

* Add comments to make create and update clear

* Rename itemFound variable to isFound

* Improve secret deletion and cache management

* Add base64 encoding to sql secret store

* Move secret retrieval to decrypted values function

* Refactor decrypt secure json data functions

* Fix expr tests

* Fix datasource tests

* Fix plugin proxy tests

* Fix query tests

* Fix metrics api tests

* Remove unused fake secrets service from query tests

* Add rename function to secret store

* Add check for error renaming secret

* Remove bus from tests to fix merge conflicts

* Add background secrets migration to datasources

* Get datasource secure json fields from secrets

* Move migration to secret store

* Revert "Move migration to secret store"

This reverts commit 7c3f872072.

* Add secret service to datasource service on tests

* Fix datasource tests

* Remove merge conflict on wire

* Add ctx to data source http transport on prometheus stats collector

* Add ctx to data source http transport on stats collector test
2022-04-25 13:57:45 -03:00
..
test-data 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
tooling Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
api_admin.go Alerting: send alerts to external, internal, or both alertmanagers (#40341) 2022-02-01 20:36:55 -03:00
api_alertmanager_test.go Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
api_alertmanager.go Alerting: Refactor GET/POST alerting config routes to be more extensible (#47229) 2022-04-14 13:06:21 -05:00
api_prometheus_test_fixtures.go Alerting: Display query from grafana-managed alert rules on /api/v1/rules (#45969) 2022-03-14 10:39:20 +00:00
api_prometheus_test.go Alerting: Add check for datasource permission in alert rule read API (#47087) 2022-04-11 17:37:44 -04:00
api_prometheus.go Remove redundant queries in GetAlertRules and GetOrgAlertRules and replace with ListAlertRules (#48108) 2022-04-25 11:42:42 +01:00
api_provisioning_test.go Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
api_provisioning.go Indicate whether routes are provisioned when GETting Alertmanager configuration (#47857) 2022-04-22 11:57:56 -05:00
api_ruler_test.go Remove redundant queries in GetAlertRules and GetOrgAlertRules and replace with ListAlertRules (#48108) 2022-04-25 11:42:42 +01:00
api_ruler_validation_test.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler_validation.go Alerting: validate rules and calculate changes in API controller (#45072) 2022-02-23 11:30:04 -05:00
api_ruler.go Remove redundant queries in GetAlertRules and GetOrgAlertRules and replace with ListAlertRules (#48108) 2022-04-25 11:42:42 +01:00
api_testing_test.go Secrets: Implement basic unified secret store service (#45804) 2022-04-25 13:57:45 -03:00
api_testing.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
api.go Alerting: Refactor GET/POST alerting config routes to be more extensible (#47229) 2022-04-14 13:06:21 -05:00
authorization_test.go Alerting: Provisioning API - Contact points (#47197) 2022-04-13 22:15:55 +02:00
authorization.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
fork_ruler.go Alerting: rules delete API to check data source authorization (#46906) 2022-03-25 12:39:24 -04:00
forked_admin.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_am.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_prom.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
forked_provisioning.go Alerting: Provisioning API - Contact points (#47197) 2022-04-13 22:15:55 +02:00
forked_testing.go Alerting: Split grafana and lotex routes (#44742) 2022-02-04 12:42:04 -05:00
generated_base_api_alertmanager.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
generated_base_api_configuration.go Alerting: update authorization logic to use proper legacy roles when fine-grained access is disabled (#46931) 2022-03-24 17:13:47 -04:00
generated_base_api_prometheus.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
generated_base_api_provisioning.go Alerting: Provisioning API - Contact points (#47197) 2022-04-13 22:15:55 +02:00
generated_base_api_ruler.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
generated_base_api_testing.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
lotex_am.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
lotex_prom.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
lotex_ruler_test.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
lotex_ruler.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
promql_compat_test.go Alerting/testing promql extraction (#34665) 2021-05-25 11:54:50 -04:00
promql_compat.go Alerting: check upstream response content type in lotex proxy (#34760) 2021-05-27 14:12:29 +03:00
testing.go Alerting: Remove mis-behaving fake and fix masked test failure in AM config API (#47747) 2022-04-13 19:31:57 -05:00
util_test.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00
util.go Alerting: Rename Recipient path parameter to DatasourceID (#47949) 2022-04-20 16:20:17 +03:00