Skip to content

Forward Reason For 403 when data partition is Invalid in AuthFilter

This PR forwards the reason for the 403 response from entitlements Auth Filter when the data partition ID is invalid. We had a customer experience an issue due to a call they made to storage service, which led them to a 403 without a descriptive message. The 403 and the lack of the message description came from a subsequent call to the Entitlements service, which due to an invalid data partition id, was returning a 403 without any hints as to the error coming from the invalid data partition id.

Their understanding was that this was due to an error with their token. This PR aims to include some more details on the response without changing the status on the response to maintain backwards compatibility, while still providing the user ability to debug their workflow correctly.

A subsequent PR will be made in storage to propagate the response body correctly to the user.

Edited by Hamdaan Khalid

Merge request reports