Bug 1999521 - grafana: the use of basicAuthPassword field is deprecated. Please use secureJsonData.basicAuthPassword
Summary: grafana: the use of basicAuthPassword field is deprecated. Please use secureJ...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.9
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: 4.10.0
Assignee: Prashant Balachandran
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-08-31 08:12 UTC by Junqi Zhao
Modified: 2022-01-19 09:44 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2022-01-19 09:44:44 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
grafana logs (39.65 KB, text/plain)
2021-08-31 08:12 UTC, Junqi Zhao
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github openshift cluster-monitoring-operator pull 1363 0 None None None 2021-09-07 13:35:13 UTC

Description Junqi Zhao 2021-08-31 08:12:41 UTC
Created attachment 1819293 [details]
grafana logs

Description of problem:
#  oc -n openshift-monitoring logs $(oc -n openshift-monitoring get po | grep grafana | awk '{print $1}') -c grafana  | grep Deprecated
t=2021-08-30T23:58:24+0000 lvl=warn msg="[Deprecated] the use of basicAuthPassword field is deprecated. Please use secureJsonData.basicAuthPassword" logger=provisioning.datasources datasource name=prometheus


Version-Release number of selected component (if applicable):
4.9.0-0.nightly-2021-08-30-192239
grafana 7.5.5

How reproducible:
always

Steps to Reproduce:
1. check grafana logs
2.
3.

Actual results:


Expected results:


Additional info:

Comment 32 Junqi Zhao 2021-09-10 04:01:31 UTC
tested with 4.10.0-0.nightly-2021-09-09-225032, no warning info for grafana
# oc -n openshift-monitoring get secret grafana-datasources -o jsonpath="{.data.datasources\.yaml}" | base64 -d
{
    "apiVersion": 1,
    "datasources": [
        {
            "access": "proxy",
            "basicAuth": true,
            "basicAuthUser": "internal",
            "editable": false,
            "jsonData": {
                "tlsSkipVerify": true
            },
            "name": "prometheus",
            "orgId": 1,
            "secureJsonData": {
                "basicAuthPassword": ""
            },
            "type": "prometheus",
            "url": "https://prometheus-k8s.openshift-monitoring.svc:9091",
            "version": 1
        }
    ]
}


Note You need to log in before you can comment on or make changes to this bug.