Auth.java class does not propagate the error message returned by vault to the consumer.
Concerned Code
if (restResponse.getStatus() != 200) {
throw new VaultException("Vault responded with HTTP status code: " + restResponse.getStatus(), restResponse.getStatus());
}
Example:
I am using loginByAwsIam method to read secrets from vault. Vault returns 400 error with valid error message. However, as a consumer, I never get to see the error message. All I could see was Vault responded with HTTP status code: 400.
Auth.java class does not propagate the error message returned by vault to the consumer.
Concerned Code
Example: I am using loginByAwsIam method to read secrets from vault. Vault returns 400 error with valid error message. However, as a consumer, I never get to see the error message. All I could see was
Vault responded with HTTP status code: 400
.Is it intentional?
If not, I can raise a PR to fix this.