Skip to content

fix(messages): reject invalid encrypted content values - #219

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/chat-messages-encrypted-value-guard
Aug 1, 2026
Merged

fix(messages): reject invalid encrypted content values#219
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/chat-messages-encrypted-value-guard

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • reject non-string encrypted_contents values before participant/database work
  • reject blank encrypted payload strings before Buffer.from conversion
  • add focused regression coverage for both malformed cases

Verification

  • node node_modules\vitest\vitest.mjs run --config %TEMP%\qryptchat-vitest-minimal.config.mjs src/app/api/chat/messages/route.test.js
  • git diff --check

This is a focused hardening fix for the accepted uGig QryptChat testing gig.

@ralyodio
ralyodio merged commit 67c15f4 into profullstack:master Aug 1, 2026
8 checks passed
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