This is a blanket fix for the bug that exposes sensitive information to logging systems (i.e. Honey Badger). This creates a new context when the .fail! method is called removing the context that may contain sensitive information. This still passes any failure message you pass via the .fail! method.
Overview
This is a blanket fix for the bug that exposes sensitive information to logging systems (i.e. Honey Badger). This creates a new context when the
.fail!
method is called removing the context that may contain sensitive information. This still passes any failure message you pass via the.fail!
method.