youngkermit8-coder opened a new issue, #1714:
URL: https://github.com/apache/rocketmq-dashboard/issues/1714

   ### Description
   
   The Aliyun and Tencent cloud catalog endpoints are GET requests, so 
`AuthInterceptor` currently allows authenticated non-admin readers to invoke 
them. These endpoints accept a stored `credentialId`; the Aliyun region and 
instance lookups and the Tencent instance lookup use the associated access key 
and secret to call cloud-provider APIs and return cloud inventory. They are 
only used by the administrator instance-provisioning flow.
   
   ### Expected behavior
   
   Only administrators should be able to browse cloud regions and instances 
through stored cloud credentials. Ordinary read-only access to already 
configured Studio instances remains unchanged.
   
   ### Reproduction
   
   With login enabled, authenticate as a non-admin user and request any of:
   
   - `GET /api/cloud/aliyun/regions`
   - `GET /api/cloud/aliyun/instances`
   - `GET /api/cloud/tencent/regions`
   - `GET /api/cloud/tencent/instances`
   
   The auth interceptor currently allows all four instead of returning HTTP 403.
   
   ### Proposed fix
   
   Treat both cloud catalog path prefixes as administrator-only GET routes and 
add reader-denial plus administrator-allowance regression coverage.


-- 
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