prashanthr2 commented on PR #14866:
URL: https://github.com/apache/cloudstack/pull/14866#issuecomment-7359531100

   Verified working.
   
   Verified on CloudStack 4.22.1.1, packages rebuilt from patched source 
(version string unchanged at 4.22.1.1~noble). Management server and both KVM 
hosts on Ubuntu 24.04.4 LTS, kernel 6.8.0-147-generic, OpenJDK 21, MySQL 
8.0.46. Pure FA-X20R4 sv16-x20r4-b06-15, Purity//FA 6.10.6, REST API 2.23, 
FibreChannel 32/16 Gbit, provider Flash Array.
   
   Registered a Flash Array pool with a valid URL and pod but a wrong password:
   
   ```
   Failed to add data store: Authentication to FlashArray 
[https://10.23.26.50:443/api] with user
   [pureuser] failed, check the username and password configured for this 
storage pool
   (HTTP 400: {"msg": "invalid credentials"})
   ```
   
   On 4.22.1.1 the same command gives Unexpected HTTP response code from 
FlashArray [...] - [400] - BAD REQUEST, because only 401 and 403 were mapped to 
an authentication failure while the legacy login endpoint answers 400 for a bad 
credential. Administrators seeing that naturally go looking at networking or 
the URL rather than at the password.
   
   Including the array's own {"msg": "invalid credentials"} body is a nice 
touch , it distinguishes a rejected credential from other 400s on the same 
endpoint.
   
   Confirmed the message contains no credentials: this.url is rebuilt in 
login() without the userinfo component, so it renders as 
https://10.23.26.50:443/api. Worth stating explicitly, since the provider URL 
does carry the password elsewhere.


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