You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "Frun1na (via GitHub)" <gi...@apache.org> on 2026/10/01 15:22:42 UTC

[I] [Bug] ARMS data source bearer authentication sends a Bearer prefix the API rejects [rocketmq-dashboard]

Frun1na opened a new issue, #5276:
URL: https://github.com/apache/rocketmq-dashboard/issues/5276

   ### Before Creating the Bug Report
   
   - [x] I have searched the [open issues](https://github.com/apache/rocketmq-dashboard/issues) and found no similar issue.
   
   ### What Happened
   
   A metrics data source configured as **ARMS** with **bearer token** authentication sends
   `Authorization: Bearer <token>`. ARMS V1 Prometheus instances expect the **raw token** in the
   Authorization header — the Aliyun documentation ("使用 HTTP API 地址对接 Grafana 或自建应用",
   https://help.aliyun.com/zh/arms/prometheus-monitoring/http-api-urls) specifies `Authorization: {Token}`
   both in its curl example and in the Grafana custom-header instructions, with no `Bearer` prefix.
   
   Because the data source settings offer only none / basic / bearer modes (no custom-header mode), there
   is no workaround: every query and the connection test fail with an authentication error.
   
   `AbstractPrometheusCompatibleMetricsSource.applyAuthentication` uses `headers.setBearerAuth(...)` for
   all backends, and `SettingsService`'s datasource connection-test path does the same, so both the
   runtime queries and the "test connection" button fail.
   
   ### Expected Behavior
   
   ARMS sources send `Authorization: <token>` (raw). Basic authentication already matches the documented
   `Basic <base64Encode(accessKey:secretKey)>` form and is unaffected.
   
   ### Steps to Reproduce
   
   1. Settings → data sources → add an ARMS data source with the HTTP API URL of a V1 instance,
      authentication "bearer", and the token generated in the ARMS console.
   2. Click the connection test / run a dashboard query.
   3. The request carries `Authorization: Bearer <token>` and ARMS rejects it.
   
   ### Environment
   
   - RocketMQ Studio `rocketmq-studio` @ `4c697f07`
   - Aliyun ARMS Prometheus V1 instance with a generated auth token
   
   ### Are You Willing to Submit a Pull Request?
   
   Yes — #4775 fixes this.
   
   
   ---
   
   Re-submission: the original report (#4776) was closed by the stale bot after 7 days without triage activity, and GitHub now rejects reopening items in this repository. Refiled unchanged; the fix PR is linked below.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] ARMS data source bearer authentication sends a Bearer prefix the API rejects [rocketmq-dashboard]

Posted by "Frun1na (via GitHub)" <gi...@apache.org>.
Frun1na commented on issue #5276:
URL: https://github.com/apache/rocketmq-dashboard/issues/5276#issuecomment-6093194248

   Friendly ping — the fix for this is in #5277 and is waiting for review; keeping the issue from the stale bot meanwhile.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] ARMS data source bearer authentication sends a Bearer prefix the API rejects [rocketmq-dashboard]

Posted by "Frun1na (via GitHub)" <gi...@apache.org>.
Frun1na commented on issue #5276:
URL: https://github.com/apache/rocketmq-dashboard/issues/5276#issuecomment-5934541988

   Fix: #5277


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] ARMS data source bearer authentication sends a Bearer prefix the API rejects [rocketmq-dashboard]

Posted by "Frun1na (via GitHub)" <gi...@apache.org>.
Frun1na commented on issue #5276:
URL: https://github.com/apache/rocketmq-dashboard/issues/5276#issuecomment-6044306098

   Friendly ping — the fix for this is in #5277 and is waiting for review; keeping the issue from the stale bot meanwhile.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org