kubewarden / policy-server

Webhook server that evaluates WebAssembly policies to validate Kubernetes requests
https://kubewarden.io
Apache License 2.0
138 stars 18 forks source link

Feature Request: Append a custom message to all errors. #828

Closed TechDufus closed 3 months ago

TechDufus commented 3 months ago

Is your feature request related to a problem?

It would be a very convenient thing for us to add a custom "wrapper" message to all errors returned by the k8s api (via the policy server).

Solution you'd like

For example, Adding something like the following to all errors: ". This error was generated by Kubewarden. Please view more details about this here: "

Being able to let this at the policy server level is probably where I see this happening, but feel free to correct me. This helps us create a 'funnel' for our many users to hit some self-help docs, and let them know the error is known and there's internal company help for them, instead of trying to scour the interwebs first.

Alternatives you've considered

No response

Anything else?

No response

flavio commented 3 months ago

Duplicate of https://github.com/kubewarden/kubewarden-controller/issues/655