Skip to content

fix: CompletableFuture 응답의 ASYNC 재디스패치에서 401 발생 문제 수정 - #169

Closed
heeun98 wants to merge 1 commit into
mainfrom
feature/PICK-247-llm-mission-generate
Closed

heeun98 wants to merge 1 commit into
mainfrom
feature/PICK-247-llm-mission-generate

Conversation

@heeun98

@heeun98 heeun98 commented Jul 14, 2026

Copy link
Copy Markdown
Collaborator

🛠️ 작업 내용

  • OncePerRequestFilter 기반 JWT 필터가 ASYNC 디스패치를 건너뛰어 인증이 빈 상태로 anyRequest().authenticated()에 걸리던 문제
  • 실제 처리(LLM 생성·저장)는 성공했는데 최종 응답만 401로 나가던 증상
  • 최초 REQUEST 디스패치에서 인증을 마친 요청의 재디스패치이므로 dispatcherTypeMatchers(ASYNC).permitAll()로 허용 (Spring Security 권장 방식)

🎯 리뷰 포인트

⏳ 작업 시간

  • 추정 시간:
  • 실제 시간:

- OncePerRequestFilter 기반 JWT 필터가 ASYNC 디스패치를 건너뛰어 인증이 빈 상태로 anyRequest().authenticated()에 걸리던 문제
- 실제 처리(LLM 생성·저장)는 성공했는데 최종 응답만 401로 나가던 증상
- 최초 REQUEST 디스패치에서 인증을 마친 요청의 재디스패치이므로 dispatcherTypeMatchers(ASYNC).permitAll()로 허용 (Spring Security 권장 방식)
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@heeun98, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 25 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 531c666d-09ab-45e8-b6ad-0d0c4ed87610

📥 Commits

Reviewing files that changed from the base of the PR and between 51f1fd6 and cdf6820.

📒 Files selected for processing (1)
  • peektime-api/src/main/java/com/team/peektime_api/global/config/SecurityConfig.java
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/PICK-247-llm-mission-generate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@heeun98 heeun98 closed this Jul 14, 2026
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.

1 participant