Discussion:
Prevent stack traces in http 500 response
Alf Kristian Støyle
2017-10-26 12:17:33 UTC
Permalink
Hi!

Is there a way to make aleph not add the stack trace to the body of 500
error? In production environments it is considered practice to leak this
kind of info, e.g. gives hackers information on what the stack is.

I can of course create a top level middleware to prevent this, just thought
it might be some kind of configuration option.

Best regards,
Alf
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Zach Tellman
2017-10-26 18:20:01 UTC
Permalink
The intended way to do this is via middleware. Make sure you catch all
‘Throwable’ objects so that non-Exceptions don’t leak through.
On Thu, Oct 26, 2017 at 5:17 AM Alf Kristian StÞyle <***@gmail.com>
wrote:
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Alf Kristian Støyle
2017-10-27 04:24:51 UTC
Permalink
Ok, thanks.

Best regards,
Alf
Post by Zach Tellman
The intended way to do this is via middleware. Make sure you catch all
‘Throwable’ objects so that non-Exceptions don’t leak through.
--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...