Skip to content

FIO-11536: Fix clone encryption crash on Node 22+ - #113

Closed
yauheni-formio wants to merge 1 commit into
masterfrom
fix/FIO-11536_replace_removed_create_cipher
Closed

yauheni-formio wants to merge 1 commit into
masterfrom
fix/FIO-11536_replace_removed_create_cipher

Conversation

@yauheni-formio

Copy link
Copy Markdown
Contributor

Node 22 removed crypto.createCipher/createDecipher, so clone with --src-db-secret/--dst-db-secret crashed or silently nulled encrypted fields.
Replaced them with createCipheriv/createDecipheriv plus deriveKeyAndIv, a port of OpenSSL EVP_BytesToKey (MD5) taken from formio-server.
This keeps the ciphertext byte-identical to what formio-server writes and reads.

@travist

travist commented Oct 28, 2026

Copy link
Copy Markdown
Member

This is covered with #111 and #112.

@travist travist closed this Oct 28, 2026
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