You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
scrub_fields are treated as partial matches due to the scrubbing implementation that builds a regex like /first|second/i. However the SDK documentation and the README don't make that clear. Even the default values for scrub_fields imply the opposite, e.g. it contains :password, :password_confirmation, and :confirm_password, even though the :password entry covers all three. Same goes for :secret and :secret_token.
Personally I like the partial matching because it is safer. But before I rely on this behavior, I want to be sure that it is officially supported and won't change in the future to full string matching.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
scrub_fields
are treated as partial matches due to the scrubbing implementation that builds a regex like/first|second/i
. However the SDK documentation and the README don't make that clear. Even the default values forscrub_fields
imply the opposite, e.g. it contains:password
,:password_confirmation
, and:confirm_password
, even though the:password
entry covers all three. Same goes for:secret
and:secret_token
.Personally I like the partial matching because it is safer. But before I rely on this behavior, I want to be sure that it is officially supported and won't change in the future to full string matching.
Beta Was this translation helpful? Give feedback.
All reactions