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

Encrypted properties #49

Merged
merged 7 commits into from
May 30, 2018
Merged

Conversation

mattbrailsford
Copy link
Owner

@mattbrailsford mattbrailsford commented May 28, 2018

This PR adds the ability to define encrypted properties for which their value is Encrypted/Decrypted on write/read. Properties are configured at the collection level via the following API.

collectionConfig.AddEncryptedProperty(p => p.Email);

I'm not sure if there should be a better way place to put the logic for the encrypting / decrypting as it all happens in the mapping atm. Would love some feedback.

Copy link
Contributor

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

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

As discussed on Skype, having the encryption/decryption in the mapping code is fine.

We discussed whether this could be done at repository-level APIs, but that has additional complexities.

Although I don't have full knowledge of the Fluidity codebase, I am happy with this implementation.

@mattbrailsford mattbrailsford merged commit 5b252e9 into develop May 30, 2018
@mattbrailsford mattbrailsford added this to the 1.0.3 milestone Jun 19, 2018
@mattbrailsford mattbrailsford deleted the feature/enecrypted-properties branch June 19, 2018 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants