mirror of
https://github.com/grafana/grafana.git
synced 2026-08-13 06:34:55 -05:00
Secrets: Implement tests and debug log improvements on unified secrets (#48213)
* Add test for decrypted values on datasource service * Add debug log when fail to parse secure json fields * Fix minor import issue * Refactor encJson to json and simplejson to sjson on tests
This commit is contained in:
@@ -487,6 +487,8 @@ func (hs *HTTPServer) convertModelToDtos(ctx context.Context, ds *models.DataSou
|
||||
dto.SecureJsonFields[k] = true
|
||||
}
|
||||
}
|
||||
} else {
|
||||
datasourcesLogger.Debug("Failed to retrieve datasource secrets to parse secure json fields", "error", err)
|
||||
}
|
||||
|
||||
return dto
|
||||
|
||||
Reference in New Issue
Block a user