Skip to content

fix(_crypto): fail closed on malformed auth inputs#5550

Merged
koala73 merged 2 commits into
mainfrom
codex/fix-crypto-input-validation-5529
Jul 24, 2026
Merged

fix(_crypto): fail closed on malformed auth inputs#5550
koala73 merged 2 commits into
mainfrom
codex/fix-crypto-input-validation-5529

Conversation

@koala73

@koala73 koala73 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Malformed authentication inputs now fail closed: null or array-like allowlists no longer crash, and objects or numbers cannot authenticate through TextEncoder string coercion. Valid string hashes and timing-safe comparisons remain unchanged.

The regression now lives under the repository's data-test glob, so automated checks exercise malformed containers, candidates, and allowlist entries.

Fixes #5529.
Related: #5530

Validation

  • Pre-push gate passed frontend, API, and Convex typechecks; edge bundling; the 5-case regression; and 231 edge-function tests.
  • npm run test:sidecar: 278 passed.
  • Focused crypto and OAuth suite: 55 passed.

Compound Engineering
Codex

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Ready Ready Preview, Comment Jul 24, 2026 2:10pm

Request Review

@koala73
koala73 merged commit 7f6d0cc into main Jul 24, 2026
26 checks passed
@koala73
koala73 deleted the codex/fix-crypto-input-validation-5529 branch July 24, 2026 15:44
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.

fix(_crypto): prevent crashes from non-array inputs and non-string keys

2 participants