You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/08/20 05:50:27 UTC
[I] [Studio][Security] Keep consumer diagnostic GET requests read-only [rocketmq-dashboard]
yyqdbngt opened a new issue, #2429:
URL: https://github.com/apache/rocketmq-dashboard/issues/2429
## Problem
The Apache provider's read-only consumer diagnostics call `ensureRetryTopicExists` before reading group progress or subscriptions. When `%RETRY%<group>` has no route, a GET request creates the retry topic on every broker through `createAndUpdateTopicConfig`.
This means a reader opening consumer diagnostics can mutate broker metadata. Per-broker creation failures are also logged and swallowed, so a read can leave a partially-created route across the cluster.
## Reproduction
1. Use a valid consumer group whose retry topic has not yet been created.
2. Call `GET /api/groups/{group}/progress` or `/subscriptions` as a read-only user.
3. Observe `createAndUpdateTopicConfig` calls for `%RETRY%<group>` on broker masters.
## Expected behavior
GET diagnostics must not create or update topics. Missing retry routes should be handled as an empty/offline diagnostic state or queried through a non-mutating fallback. Topic creation, if required at all, must remain an explicit authorized mutation.
## Suggested validation
Mock `MQAdminExt` with a missing retry route and assert progress/subscription reads never invoke `createAndUpdateTopicConfig`, while existing-route diagnostics continue to work.
--
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] [Studio][Security] Keep consumer diagnostic GET requests read-only [rocketmq-dashboard]
Posted by "RockteMQ-AI (via GitHub)" <gi...@apache.org>.
RockteMQ-AI commented on issue #2429:
URL: https://github.com/apache/rocketmq-dashboard/issues/2429#issuecomment-5352087392
**Issue Evaluation**
Category: | Status: **Confirmed**
This is a valid bug with security implications. A GET endpoint that triggers violates the principle of least privilege and HTTP semantics (GET must be safe/idempotent per RFC 7231 §4.2.1). A read-only user opening consumer diagnostics can silently mutate broker metadata, and partial failures leave inconsistent state.
**Severity:** high — read-only users can create topics; violates REST contract and RBAC expectations.
**Impact:** Broker metadata mutation from diagnostic reads; partial creation failures leave inconsistent routes.
**Suggested fix:** Replace the call in the diagnostic path with a non-mutating check (e.g. or similar). If the retry topic is missing, return an empty/offline diagnostic state rather than creating it.
Noted: author has self-assigned ().
---
*Automated evaluation by RockteMQ-AI*
--
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] [Studio][Security] Keep consumer diagnostic GET requests read-only [rocketmq-dashboard]
Posted by "yyqdbngt (via GitHub)" <gi...@apache.org>.
yyqdbngt commented on issue #2429:
URL: https://github.com/apache/rocketmq-dashboard/issues/2429#issuecomment-5351920879
I will work on this issue and prepare a regression-tested fix.
/assign
--
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] [Studio][Security] Keep consumer diagnostic GET requests read-only [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #2429: [Studio][Security] Keep consumer diagnostic GET requests read-only
URL: https://github.com/apache/rocketmq-dashboard/issues/2429
--
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] [Studio][Security] Keep consumer diagnostic GET requests read-only [rocketmq-dashboard]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #2429:
URL: https://github.com/apache/rocketmq-dashboard/issues/2429#issuecomment-5447730332
This issue has been automatically closed because there has been no activity for 7 days. If you believe this issue is still relevant, please reopen it with updated information.
--
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