Skip to content

[Bug] rmqctl rejects plain HTTP for intranet DNS names that resolve to private addresses #5300

Open

Description

@Frun1na

Before Creating the Bug Report

  • I have searched the open issues of this repository and believe that this is not a duplicate.
  • This is a defect in RocketMQ Studio, not a usage question and not a defect in another Apache RocketMQ repository.
  • I can reproduce this on the current master branch, or I have stated the exact version I am running below.

Studio Version

branch: rocketmq-studio
git commit id: 1ef5d860 (upstream tip at the time of the report)
deployed as: built from source

Runtime Environment

Verified by code tracing and unit tests on rocketmq-studio @ 1ef5d860 (vitest for web/, JUnit for server/), not against a specific browser or deployment.

Connected RocketMQ Cluster

Not cluster-specific: the defect lives in the code path and reproduces on any deployment where the trigger condition below holds.

Describe the Bug

The plain-HTTP private-network support only matches literal IP addresses. An intranet deployment addressed by DNS name (http://studio.internal:8080) is rejected with 'studio server must use HTTPS' even though the name resolves exclusively to RFC1918 addresses, which contradicts the intent that plain HTTP is allowed for private-network Studio endpoints.

Steps to Reproduce

  1. Point --server at an intranet hostname that resolves to a private IP (e.g. http://studio.internal:6789).
  2. rmqctl rejects the target and demands HTTPS.

What Did You Expect to See?

Hostnames whose resolution is entirely private/loopback/link-local are accepted for plain HTTP; anything public, mixed or unresolvable still requires HTTPS.

What Did You See Instead?

Only literal private IPs work; intranet DNS names are forced onto HTTPS.


Fix PR: #4946


Re-submission: the original report (#4947) 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.

Activity

  1. Frun1na commented on Oct 1, 2026

    @Frun1na
    ContributorAuthor

    Fix: #5301

  2. Frun1na commented on Oct 7, 2026

    @Frun1na
    ContributorAuthor

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

  3. Frun1na commented on Oct 10, 2026

    @Frun1na
    ContributorAuthor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions