docs: Frontend 자동 배포 확인 및 문서 업데이트

- Frontend 토큰 전송 수정 완료 표시
- robing-api.ts:40, chat-interface.tsx:275-279 수정 확인
- Phase 1 진행 상황 업데이트
This commit is contained in:
happybell80 2025-08-16 11:59:16 +09:00
parent 8628c0f17d
commit 2e8ac8d959

View File

@ -102,10 +102,10 @@ collection_name = f"{settings.ROBING_ID}_{username if username else 'default'}_{
## 주요 문제점 ## 주요 문제점
### 1. 인증 토큰 미전송 ⚠️ ### 1. ~~인증 토큰 미전송~~ ✅ 해결됨
- Frontend가 API 호출 시 JWT 토큰을 전송하지 않음 - ~~Frontend가 API 호출 시 JWT 토큰을 전송하지 않음~~
- `robing-api.ts`에 Authorization 헤더 없음 - ~~`robing-api.ts`에 Authorization 헤더 없음~~
- 모든 사용자가 'test_user'로 처리 - **수정 완료**: robing-api.ts:40, chat-interface.tsx:275-279에서 토큰 전송 구현
### 2. 백엔드 토큰 미검증 ⚠️ ### 2. 백엔드 토큰 미검증 ⚠️
- Robing Gateway가 JWT 토큰을 검증하지 않음 - Robing Gateway가 JWT 토큰을 검증하지 않음
@ -266,11 +266,12 @@ X-Username: happybell80 // 명확한 이름
## 즉시 수정 필요 (Critical) ## 즉시 수정 필요 (Critical)
### 1. Frontend (robing-api.ts) ### 1. ~~Frontend (robing-api.ts)~~ ✅ 완료
```typescript ```typescript
// 토큰 전송 추가 // 수정 완료 - robing-api.ts:38-41
const token = localStorage.getItem('auth_token'); if (token) {
headers['Authorization'] = `Bearer ${token}`; headers['Authorization'] = `Bearer ${token}`;
}
``` ```
### 2. Gateway (main.py) ### 2. Gateway (main.py)
@ -298,7 +299,7 @@ collection_name = f"{settings.ROBING_ID}_{username if username else 'default'}_{
## 단계별 구현 계획 ## 단계별 구현 계획
### Phase 1: 긴급 패치 ### Phase 1: 긴급 패치
1. Frontend에서 토큰 전송 1. ~~Frontend에서 토큰 전송~~ ✅ 완료
2. Gateway에서 토큰 검증 2. Gateway에서 토큰 검증
3. username 기반 ChromaDB 분리 3. username 기반 ChromaDB 분리