-
Notifications
You must be signed in to change notification settings - Fork 30
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
feat(keystone): DOMA-10642 custom field for encrypted text #5450
Conversation
packages/keystone/fields/SymmetricEncryptedText/Implementation.js
Outdated
Show resolved
Hide resolved
packages/keystone/fields/SymmetricEncryptedText/Implementation.js
Outdated
Show resolved
Hide resolved
packages/keystone/fields/SymmetricEncryptedText/utils/decryptInfo.js
Outdated
Show resolved
Hide resolved
packages/keystone/fields/SymmetricEncryptedText/utils/decryptInfo.js
Outdated
Show resolved
Hide resolved
const errorStart = _getErrorStart(listKey, path) | ||
const encryptionManager = _getEncryptionManager(errorStart, options) | ||
set(options, 'encryptionManager', encryptionManager) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's hard to understand whats going on here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just need to provide EncryptionManager for fieldAdapter. FieldAdapter parses options before we can do something in constructor here, so must update "options" before super()
…ypted by manager; Do not encrypt field before database, if it is encrypted; Enhance script; Rename field;
c342ded
to
bdb5cdd
Compare
Quality Gate passedIssues Measures |
Simplify work with encrypted data, remove 'keyField's, support different algorithms and secrets on same table
See README.md