collectiveidea / interactor

Interactor provides a common interface for performing complex user interactions.
MIT License
3.36k stars 212 forks source link

Create new context when .fail! is called #194

Closed aburkenpas closed 3 years ago

aburkenpas commented 3 years ago

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.