Frun1na opened a new pull request, #4946:
URL: https://github.com/apache/rocketmq-dashboard/pull/4946

   ### Which Issue(s) This PR Fixes
   
   - Fixes #(issue to be linked)
   
   ### Brief Description
   
   `isPrivateHost` only recognized literal IPs, so the "plain HTTP allowed for 
private-network Studio endpoints" support (#4855) did not cover the common case 
of an intranet **DNS name** (`http://studio.internal:8080`): `net.ParseIP` 
fails for hostnames and the URL was rejected. The host is now resolved and 
accepted only when **every** resolved address is loopback/RFC1918/link-local; 
unresolvable names and mixed public/private resolution stay on HTTPS. 
Resolution is stubbable for tests and bounded by a 2s timeout.
   
   Note: this intentionally widens the HTTP allowance relative to #4855 - 
flagging it in the PR for explicit maintainer review of the security posture.
   
   ### How Did You Test This Change?
   
   ```
   go test ./internal/studio/ -count=1   # ok (new deterministic resolution 
stubs)
   go vet, gofmt clean; go test ./... green
   ```
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to