SAP / cloud-authorization-buildpack

You can use the content of this repository to leverage the Open Policy Agent (https://www.openpolicyagent.org/) for cloud foundry environments. If offers runtime support to make calls to the open policy server from a CF application and support to manage and distribute Open Policy Agent bundles.
Apache License 2.0
5 stars 6 forks source link

Add self-explanatory error message when service binding is missing certificate #49

Closed f-blass closed 2 years ago

f-blass commented 2 years ago

Add self-explanatory error message when service binding is missing certificate.

Previously the error message was generated only by the struct validator and looked like the following:

**ERROR** Error: could not load AMSCredentials: invalid binding credentials for identity service with AMS enabled: Key: 'UnifiedIdentityCredentials.IASCredentials.Certificate' Error:Field validation for 'Certificate' failed on the 'required' tag
Key: 'UnifiedIdentityCredentials.IASCredentials.Key' Error:Field validation for 'Key' failed on the 'required' tag
Failed to run all supply scripts: exit status 15

Stakeholders (understandably) failed to realise what was missing in order to fix the issue.