Repository navigation
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 043e66bb1c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Superseded by #9, which uses the |
Motivation
EncryptedPayloadstrings with no format or size validation, which allowed malformed input or very large base64 fields to trigger uncaught exceptions or large allocations before cryptographic authentication.Description
PrivateKey.decrypt()requiring exactly 4 dot-separated parts and performing per-field base64 checks.decodeBase64helper and keep the existing shared-secret derivation and AES-GCM decryption path intact.tests/value-objects/crypto/PrivateKey.spec.tsfor malformed payloads, invalid field lengths, and oversized ciphertext.Testing
yarn test tests/value-objects/crypto/PrivateKey.spec.tsand the suite passed.Codex Task