Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes bug with memory decryption not handing blank values #78

Merged
merged 1 commit into from
May 16, 2019

Conversation

ahmetabdi
Copy link

@ahmetabdi ahmetabdi commented May 16, 2019

When Vault::Rails.enabled is false in-memory decryption/encryption is used.

There was an error where when the ciphertext was a blank string in tests https://github.com/FundingCircle/fc-vault-rails/blob/master/lib/vault/rails.rb#L229 would cause the code to raise a error of ArgumentError: iv must be 16 bytes.

This fixes the issue by returning the ciphertext if the ciphertext is blank

/cc @FundingCircle/gdpr-engineering

Copy link
Member

@popovm popovm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@ahmetabdi ahmetabdi merged commit 659ec59 into master May 16, 2019
@ahmetabdi ahmetabdi deleted the bug_with_vault_load_all_and_in_memory branch May 16, 2019 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants