ankane / lockbox

Modern encryption for Ruby and Rails
MIT License
1.44k stars 68 forks source link

migrated_* fields are plaintext when calling .attributes #119

Closed brentdodell closed 3 years ago

brentdodell commented 3 years ago

@ankane, is this intentional? Ideally I'd like to see this fixed in lockbox, but wondering if I'll break anything if I monkey-patch or fork and fix it.

Screen Shot 2021-05-05 at 10 59 21 AM
ankane commented 3 years ago

Hey @brentdodell, the attributes method shows the plaintext of any encrypted attributes (including ones that are being migrated).

brentdodell commented 3 years ago

Ah, sorry about that. I only noticed it while migrating.