question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

getting a "[Deprecated] the use of password field is deprecated. Please use secureJsonData.password" warning

See original GitHub issue

I provision the JSON API plugin. I recently saw following warning:

logger=provisioning.datasources t=2022-03-14T11:59:30.55+0000 lvl=warn msg="[Deprecated] the use of password field is deprecated. Please use secureJsonData.password" datasourcename="VWsFriend Live"

I tried to move the password to secureJsonData (this is also how it works for e.g. postgres. But then the password is not used anymore. I guess the plugin needs to support putting the password to secureJsonData: https://grafana.com/docs/grafana/latest/developers/plugins/add-authentication-for-data-source-plugins/

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
tillsteinbachcommented, Mar 14, 2022

Ahrg! Don’t mind me! Was a typo in my provisioning script

0reactions
tillsteinbachcommented, Jul 11, 2022

Yes, but you have to install the datasource plugin too in docker e.g. with ENV GF_INSTALL_PLUGINS="marcusolsson-json-datasource“ or any other way you can imagine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

external Database Definition with secureJsonData ... - GitHub
For one definition use the field "datasources.secureJsonData.basicAuthPassword" for the password and for the other the field "datasources.
Read more >
Provision Grafana | Grafana documentation
Describes provisioning settings for Grafana using configuration files. ... url: http://localhost:$PORT user: $USER secureJsonData: password: $PASSWORD.
Read more >
403 Forbidden error shows for all the graphs in each grafana ...
... open, Bug 2037891: Reverting the secureJsonData change for the grafana password ... lvl=warn msg="[Deprecated] the use of basicAuthPassword field is ...
Read more >
gapi - Go Packages
SaveDashboard is a deprecated method for saving a Grafana dashboard. Use NewDashboard. Deprecated: Use NewDashboard instead.
Read more >
grafana_data_source | Resources | grafana/grafana
basic_auth_password (String, Sensitive, Deprecated) Basic auth password. Deprecated:Use secure_json_data_encoded instead. It supports arbitrary JSON data, and ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found