Module: ROM

Defined in:
lib/rom/encrypted_attribute/rom_sql_patch.rb,
lib/rom/encrypted_attribute.rb,
lib/rom/encrypted_attribute/payload.rb,
lib/rom/encrypted_attribute/version.rb,
lib/rom/encrypted_attribute/decryptor.rb,
lib/rom/encrypted_attribute/encryptor.rb,
lib/rom/encrypted_attribute/key_derivator.rb,
lib/rom/plugins/schema/encrypted_attributes.rb

Overview

This provides a patch for rom-sql while github.com/rom-rb/rom-sql/pull/432 is pending merge. It allows to block reading unencrypted values from the database. You need to opt-in for this patch yourself by calling:

ROM::SQL::Patch432.install!

The patch can be reverted with

ROM::SQL::Patch432.uninstall!

Note: that you don’t need this if you are using PostgreSQL. Also note that this will emit a warning of overwriting a method.

Defined Under Namespace

Modules: EncryptedAttribute, Plugins, SQL