mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
2d8a91a846
* Implement disableSecretsCompatibility flag * Allow secret deletion right after migration * Use dialect.Quote for secure_json_data on secret deletion Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> * Set secure_json_data to NULL instead of empty json * Run toggles_gen_test and use generated flag variable * Add ID to delete data source secrets command on function call Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> * Remove extra query to get datasource on secret deletion * Fix linting issues with CHANGELOG.md * Use empty json string when deleting secure json data * Implement secret migration as a background process * Refactor secret migration as a background service * Refactor migration to be inside secret store * Re-add secret deletion function removed on merge * Try using transaction to fix db lock during tests * Disable migration for pipeline debugging * Try adding sleep to fix database lock * Remove unecessary time sleep from migration * Fix merge issue, replace models with datasources * Try event listener approach * Fix merge issue, replace models with datasources * Fix linting issues with unchecked error * Remove unecessary trainling new line * Increase wait interval on background secret migration * Rename secret store migration folder for consistency * Convert background migration to blocking * Fix number of arguments on server tests * Check error value of secret migration provider * Fix linting issue with method varaible * Revert unintended change on background services * Move secret migration service provider to wire.go * Remove unecessary else from datasource service * Move transaction inside loop on secret migration * Remove unecessary GetServices function * Remove unecessary interface after method removal * Rename Run to Migrate on secret migration interface * Rename secret migrations service variable on server * Use MustBool on datasource secret migration * Revert changes to GetDataSources * Implement GetAllDataSources function * Remove DeleteDataSourceSecrets function * Move datasource secret migration to datasource service * Remove unecessary properties from datasource secret migration * Make DecryptLegacySecrets a private method * Remove context canceled check on secret migrator * Log error when fail to unmarshal datasource secret * Add necessary fields to update command on migration * Handle high availability on secret migration * Use kvstore for datasource secret migration status * Add error check for migration status set on kvstore * Remove NewSecretMigrationService from server tests * Use const for strings on datasource secrets migration * Test all cases for datasources secret migrations Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com> |
||
---|---|---|
.. | ||
db | ||
migrations | ||
migrator | ||
mockstore | ||
permissions | ||
searchstore | ||
sqlutil | ||
alert_notification_test.go | ||
alert_notification.go | ||
alert_test.go | ||
alert.go | ||
annotation_cleanup_test.go | ||
annotation_cleanup.go | ||
annotation_test.go | ||
annotation.go | ||
apikey_test.go | ||
apikey.go | ||
dashboard_thumbs_test.go | ||
dashboard_thumbs.go | ||
database_wrapper.go | ||
datasource_test.go | ||
datasource.go | ||
health_test.go | ||
health.go | ||
logger.go | ||
login_attempt_test.go | ||
login_attempt.go | ||
org_test.go | ||
org_users_test.go | ||
org_users.go | ||
org.go | ||
playlist_test.go | ||
playlist.go | ||
plugin_setting_test.go | ||
plugin_setting.go | ||
quota_test.go | ||
quota.go | ||
session.go | ||
sqlbuilder_test.go | ||
sqlbuilder.go | ||
sqlstore_test.go | ||
sqlstore.go | ||
sqlstore.goconvey | ||
stats_integration_test.go | ||
stats_test.go | ||
stats.go | ||
store.go | ||
tables.go | ||
tags_test.go | ||
tags.go | ||
team_test.go | ||
team.go | ||
temp_user_test.go | ||
temp_user.go | ||
tls_mysql.go | ||
transactions_test.go | ||
transactions.go | ||
user_test.go | ||
user.go |