Skip to content

Plugin does not pass X-Grafana-User http header even when grafana enable it #1451

@tm-artemb

Description

@tm-artemb

What happened:
Hi
I've tried enabling [dataproxy] send_user_header = true and use Forward Grafana HTTP Headers toggle in the datasource settings. Connected to a server that dumps all http headers - no X-Grafana-User header, when i try the same with Altinity plugin - it works. If i try to enable/disable send_user_header parameter - it appear/disappear from Altinity plugin requests.

Here is an example of Clickhouse plugin headers:

echo-server-1  | 2025-11-21T07:26:40.301Z Headers {
echo-server-1  |   host: '10.1.0.249:8080',
echo-server-1  |   'user-agent': 'grafana/12.2.1 clickhouse-datasource/4.11.2 clickhouse-go/2.40.3 (lv:go/1.24.7; os:linux)',
echo-server-1  |   'content-length': '55',
echo-server-1  |   'accept-encoding': 'gzip',
echo-server-1  |   authorization: 'Basic bmFtZTpwdw=='
echo-server-1  | } /?client_protocol_version=54460&database=analytics&default_format=Native&limit=1000000&max_execution_time=14

What you expected to happen:
X-Grafana-User header should present on http request to clickhouse from grafana

How to reproduce it (as minimally and precisely as possible):
Basic grafana config:

data:
  grafana.ini: |
    [server]
    protocol = http

    [dataproxy]
    send_user_header = true

    [users]
    allow_sign_up = false

    [auth]
    disable_login_form = true

    [auth.proxy]
    enabled = true
    header_name = X-AUTH-REQUEST-EMAIL
    header_property = email
    headers_encoded = false
    auto_sign_up = true
    sync_ttl = 0

Create new datasource, connect to HTTP Clickhouse.
Test data-source, see headers in the proxy

Screenshots

Anything else we need to know?:
Tried both HTTP and HTTPS versions, tried to use the data-source in the dashboard - results are the same, no header in the request

Environment:

  • Grafana version: Grafana v12.2.1 (563109b696)
  • Plugin version: 4.11.2
  • OS Grafana is installed on: k8s installation
  • User OS & Browser: Windows Chrome
  • Others:

Possible duplicate issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Incoming

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions