Bug 1999521

Summary: grafana: the use of basicAuthPassword field is deprecated. Please use secureJsonData.basicAuthPassword
Product: OpenShift Container Platform Reporter: Junqi Zhao <juzhao>
Component: MonitoringAssignee: Prashant Balachandran <pnair>
Status: CLOSED WONTFIX QA Contact: Junqi Zhao <juzhao>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.9CC: amuller, anpicker, aos-bugs, erooth, pnair
Target Milestone: ---   
Target Release: 4.10.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-19 09:44:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
grafana logs none

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
        }
    ]
}