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

feat(keystone): DOMA-10642 custom field for encrypted text #5450

Merged
merged 13 commits into from
Nov 26, 2024

Conversation

YEgorLu
Copy link
Contributor

@YEgorLu YEgorLu commented Nov 9, 2024

Simplify work with encrypted data, remove 'keyField's, support different algorithms and secrets on same table
See README.md

packages/keystone/cipher.js Outdated Show resolved Hide resolved
packages/keystone/cipher.js Outdated Show resolved Hide resolved
packages/keystone/cipher.js Outdated Show resolved Hide resolved
packages/keystone/cipher.js Outdated Show resolved Hide resolved
packages/keystone/cipher.js Outdated Show resolved Hide resolved
Comment on lines +42 to +45
const errorStart = _getErrorStart(listKey, path)
const encryptionManager = _getEncryptionManager(errorStart, options)
set(options, 'encryptionManager', encryptionManager)
Copy link
Member

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

Copy link
Contributor Author

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()

@YEgorLu YEgorLu force-pushed the feat/keystone/DOMA-10642/encrypted-field-type branch from c342ded to bdb5cdd Compare November 26, 2024 06:11
Copy link

sonarcloud bot commented Nov 26, 2024

@YEgorLu YEgorLu merged commit 0293f47 into main Nov 26, 2024
26 checks passed
@YEgorLu YEgorLu deleted the feat/keystone/DOMA-10642/encrypted-field-type branch November 26, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 Packages ✋🙂 Review please Comments are resolved, take a look, please
Development

Successfully merging this pull request may close these issues.

4 participants