Stop kumo from showing internal error details in http inject response

While injecting messages using the HTTP API, Kumo will always show stack traces and other sensitive information in its errors (I’ve seen vault IP address if it can’t find something in the vault):

{"success_count":0,"fail_count":1,"failed_recipients":["recipient@example.com"],"errors":["recipient@example.com: runtime error: [string \"/opt/kumomta/etc/policy/init.lua\"]:324: attempt to index a nil value\nstack traceback:\n\t[string \"/opt/kumomta/etc/policy/init.lua\"]:324: in function <[string \"/opt/kumomta/etc/policy/init.lua\"]:323>"]}

Is it possible to change this behavior and have kumo just return a generic error message?

we don’t have a switch for this today, but it is a valid request to add one