Skip to content

Commit ad8dbbb

Browse files
committed
allow updates to secureJsonData.
SecureJsonData is stored as a json object in the DB. As the secureJsonData is never returned to the user they are unable to provide the full json object when performing updates instead the user can only provide the specific keys they wish to update. This commit ensures that only the provided keys are updated and existing keys in the secureJsonData object are left untouched.
1 parent 5a241a8 commit ad8dbbb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

pkg/services/sqlstore/plugin_setting.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func UpdatePluginSetting(cmd *m.UpdatePluginSettingCmd) error {
6161
for key, data := range cmd.SecureJsonData {
6262
pluginSetting.SecureJsonData[key] = util.Encrypt([]byte(data), setting.SecretKey)
6363
}
64-
pluginSetting.SecureJsonData = cmd.GetEncryptedJsonData()
6564
pluginSetting.Updated = time.Now()
6665
pluginSetting.Enabled = cmd.Enabled
6766
pluginSetting.JsonData = cmd.JsonData

0 commit comments

Comments
 (0)