Skip to content

Commit

Permalink
Merge pull request #43 from FundingCircle/bump-to-v0.6.5
Browse files Browse the repository at this point in the history
Bump version to v0.6.5
  • Loading branch information
popovm authored Nov 29, 2018
2 parents f0e9596 + 452a96d commit d2e6395
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Vault Rails Changelog

## v0.6.5 (November 28, 2018)

IMPROVEMENTS
- Add `EncryptedModel.vault_persist_all` for encrypting and saving one attribute of multiple records with just one call to Vault
- Add `EncryptedModel.vault_load_all` for decrypting and loading one attribute of multiple records with just one call to Vault
- Allow blank values like `nil` and empty string as input to batch encryption and decryption

## v0.6.4 (November 13, 2018)

NEW FEATURES
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,16 @@ Vault::Rails.batch_decrypt(path, key, <array of ciphertexts>, client)
Vault::Rails.batch_encrypt(path, key, <array of plaintexts>, client)
```
Even easier, you could use:
* ``` EncryptedModel.vault_persist_all(attribute, records, plaintexts) ```
Encrypt all plaintext values and save them as the given attribute for the corresponding record
* ```EncryptedModel.vault_load_all(attribute, records) ```
Decrypt and load the given attribute for each of the records
### Searching Encrypted Attributes
Because each column is uniquely encrypted, it is not possible to search for a
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_4.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
fc-vault-rails (0.6.4)
fc-vault-rails (0.6.5)
activerecord (>= 4.2, < 5.1)
vault (~> 0.7)

Expand Down
2 changes: 1 addition & 1 deletion lib/vault/rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Vault
module Rails
VERSION = "0.6.4"
VERSION = "0.6.5"
end
end

0 comments on commit d2e6395

Please sign in to comment.