Repository navigation
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
github-actions
Bot
requested review from
jjunh33,
leegain1,
sangrae2325,
tnals0924 and
xeoxxn
November 8, 2026 18:08
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
챗봇의 빌릴게 재고 조회가 아직 AI 서버 안의 가짜 데이터다. 백엔드 API는 모두 학생 JWT가 있어야 부를 수 있고, AI 서버 전용 API는 없어서 AI 서버가 실데이터를 읽을 길이 없다.
❓ 왜 해결해야 하나요?
발표 시나리오의 "실시간 조회" 장면을 실데이터로 보여줘야 한다. 이후 "내 대여" 같은 개인 조회와 에이전트 기능도 같은 길을 쓴다.
⭐ 어떻게 해결했나요?
중계할 때 그 학생의 JWT를
X-User-Token헤더로 AI 서버에 함께 보낸다. AI 서버는 이 토큰으로 기존 학생 API(GET /v1/app/billilge/items)를 조회만 한다.StreamAiChatClient가 현재 요청의Authorization: Bearer ...에서 토큰을 꺼내 헤더로 싣는다. 없으면 헤더를 생략한다infrastructure:client에jakartaServletApi의존성을 추가했다 (gateway:logging과 같은 방식)🧩 이 PR의 한계 & 트레이드오프
RequestContextHolder로 요청에서 직접 꺼낸다. 숨은 의존이라 주석으로 이유를 남겼다. 중계를 비동기로 바꾸면 요청이 보이지 않아 토큰 없이 나간다⛓️ 기존 기능에 미치는 영향
ChatService,ChatClient) 시그니처는 바뀌지 않는다🔀 Edge Case & 실패 시나리오
Bearer형식이 아니면 헤더 없이 보낸다. AI 서버는 재고를 "확인할 수 없어요"로 답한다📋 검토한 대안과 선택 이유
ChatService→ChatClient까지 넘기기: 흐름은 보이지만 5개 파일을 고치고 도메인 인터페이스가 토큰을 알게 된다(config-and-auth.md 4-4절과 어긋남)api/ai-api): 정석이지만 새 모듈·보안 설정이라 발표 전에는 무겁다💬 리뷰 포인트
[c]RequestContextHolder로 꺼내는 방식이 괜찮은지:infrastructure:client:compileJava,ModularityTests,DomainImplAccessTests통과