grafana/pkg/services/secrets/kvstore
Michael Mandrus 277ea836b6
Secrets: Implement migration of secrets from plugin back to unified secrets (#53561)
* initial cut at migration from plugin

* create new migration from plugin

* only migrate to or from, not both

* remove cfg check from plugin migration itself

* update comments, clean up secret after migration

* add better error handling

* hook up REST API with migrations

* Minor fixes

* fix wire injection issue

* modify migrator to access plugin calls directly. create unit tests

* change pre-migration checks in admin api

* stop plugin after migrating from it

* fix compile issues after merge

* add comment about migration

* fix linting issue

* bleh, fix unit test

* fix another unit test

* update plugin error fatal flag after a migration from the plugin

* add extra logging to migration

* make linter happy

Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com>
2022-08-24 16:24:50 -04:00
..
migrations Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
cache.go Secrets: Add fallback to secrets kvstore plugin (#54056) 2022-08-23 12:21:54 -03:00
kvstore.go Secrets: Add fallback to secrets kvstore plugin (#54056) 2022-08-23 12:21:54 -03:00
migrate_from_plugin_test.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
migrate_from_plugin.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
migrate_to_plugin_test.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
migrate_to_plugin.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
model.go Secrets: Implement Secret Plugin required flag and fatal crash on startup (#52552) 2022-07-25 12:37:47 -04:00
plugin_fatal_crash_test.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
remote_plugin.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00
sql_test.go Secret migration from Sql KV Store to Secret Plugin (#52191) 2022-07-19 14:42:23 -03:00
sql.go Secrets: Add fallback to secrets kvstore plugin (#54056) 2022-08-23 12:21:54 -03:00
test_helpers.go Secrets: Implement migration of secrets from plugin back to unified secrets (#53561) 2022-08-24 16:24:50 -04:00