Repository navigation
Conversation
Collaborator
Author
|
@claude review |
Contributor
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The decryption replacement lacks regression coverage verifying that load/1 rejects tampered IVs, authentication tags, and ciphertext, as well as truncated data and invalid headers.
1 open issue
What changed in this PR
Replaces Cloak-based credential encryption with a native :crypto Ecto type while preserving compatibility with existing encrypted values.
Changes:
- Implements AES-256-GCM encryption and decryption directly in
Voyager.Encrypted.Binary. - Removes Cloak dependencies and the supervised vault, configuring the encryption key directly.
- Adds a compatibility test for ciphertext previously written by Cloak.
| File | Description |
|---|---|
test/voyager/encrypted/binary_test.exs |
Adds a Cloak ciphertext compatibility test. |
mix.lock |
Removes Cloak dependency locks. |
mix.exs |
Removes cloak and cloak_ecto dependencies. |
lib/voyager/vault.ex |
Deletes the Cloak vault module. |
lib/voyager/vault_key.ex |
Updates documentation to name the new key consumer. |
lib/voyager/encrypted/binary.ex |
Implements encryption and decryption using :crypto. |
lib/voyager/application.ex |
Removes the vault from supervision. |
config/test.exs |
Configures the test encryption key directly. |
config/runtime.exs |
Sets the resolved runtime encryption key directly. |
config/e2e.exs |
Configures the end-to-end test encryption key directly. |
Review effort: Balanced
srzeszut
marked this pull request as ready for review
October 30, 2026 11:06
srzeszut
requested review from
GuzekAlan and
hhubert6
and removed request for
hhubert6
October 30, 2026 11:09
GuzekAlan
requested changes
Oct 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

No description provided.