Skip to content

Commit

Permalink
docs: decryptedSecureJsonData from instance settings (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
s4kh authored Oct 29, 2024
1 parent 8180024 commit 2b76d5b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ The decrypted secrets are available from the `DecryptedSecureJSONData` field in
func (ds *dataSource) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error) {
instanceSettings := req.PluginContext.DataSourceInstanceSettings

if apiKey, exists := settings.DecryptedSecureJSONData["apiKey"]; exists {
if apiKey, exists := instanceSettings.DecryptedSecureJSONData["apiKey"]; exists {
// Use the decrypted API key.
}

Expand Down

0 comments on commit 2b76d5b

Please sign in to comment.