Skip to content

fix(files): validate upload metadata values - #215

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/upload-url-encrypted-metadata-value-guard
Jul 30, 2026
Merged

fix(files): validate upload metadata values#215
ralyodio merged 1 commit into
profullstack:masterfrom
aiirvizionz:clientkit/upload-url-encrypted-metadata-value-guard

Conversation

@aiirvizionz

Copy link
Copy Markdown
Contributor

Summary

  • reject non-string or blank encryptedMetadata values before upload-url database work
  • prevent malformed recipient metadata maps from reaching profile/conversation lookups
  • add regression coverage for object and whitespace-only metadata values

Test

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

uGig billing

  • Expected invoice: 0.50 USD if accepted/merged
  • Counted as revenue now: no, pending review/payment

@ralyodio
ralyodio merged commit d9a4971 into profullstack:master Jul 30, 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