Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
⏳ DRAFT
What to do
Review readiness checklist
0/4 boxes ticked. This pull request was already a draft. Its draft status will be preserved after every issue above is resolved. |
리뷰 · 우선순위 36 / 80이 PR은 Meta Muse 로그인 응답이 너무 커도 그대로 JSON으로 읽던 구멍을 막습니다. 기기 코드를 받을 때, 승인을 기다릴 때, 구독 키를 받을 때, 본문이 65536바이트를 넘으면 파싱하지 않고 거절합니다. 길이 헤더가 이미 그보다 크면 받기 전에 끊습니다. 헤더가 없거나 더 작으면 바이트를 세면서 읽고, 그 읽기에도 요청 제한 시간 20초가 같이 걸립니다. 문서에 이 상한을 한 줄 적었습니다. 테스트도 세 개 넣었습니다. base는 dev입니다. 라인 tests/providers/meta-muse-device.test.ts 폴링 테스트 라인 src/oauth/meta-muse-device.ts 메인테이너의 판단이 필요한 지점 이 변경은 로그인 코드라서, 자동 검사가 너의 추천 본문을 64KiB에서 자르는 방향은 맞으니 유지하세요. 폴링 테스트에 상한 문장 검사를 추가하세요. 실패 응답은 파싱하지 말고 이 댓글은 grok-bot이 작성했습니다 |
|
Review feedback applied on |
Motivation
Description
src/oauth/meta-muse-device.tsapplies the shared 64 KiB bounded-body ceiling and the request deadline to the device-authorization, polling, and key-mint JSON reads; oversized declared or streamed bodies are rejected before JSON parsing.structure/providers-and-adapters.mddocuments the ceiling on thesrc/oauth/row (the provider table moved there since the original patch).tests/providers/meta-muse-device.test.tsasserts oversized bodies are refused.Testing
bun test tests/providers/meta-muse-device.test.ts: 39 tests pass.Review readiness checklist
This PR stays in draft until every box below is ticked. Tick all four boxes once the requirements are met:
All CI tests are green on my local testing.
I pushed my PR to the latest dev commit.
I resolved all correct Codex and CodeRabbit findings.
My PR is ready for review.