fix: 피드백 작성 jWT 오류 개선
Deploy EG-BIM QA Gateway / deploy (push) Successful in 1m11s

This commit is contained in:
root committed 2026-10-23 16:14:31 +09:00
1 parent 5091da737d
commit 821c770b4a
4 files changed
+16 -68

No files matched your search

+1 -2
View File
@@ -11,7 +11,7 @@
작성페이지
→ Worker POST
→ Q&A SSO 세션 확인
→ Worker가 requester 정보, SSO Bearer token, API Key 추가
→ Worker가 requester 정보와 API Key 추가
→ ABC UserFeedback API
→ feedbacks 저장
→ { id } 반환
@@ -48,7 +48,6 @@
- [x] `requester_phone_number` 매핑: SSO `profile.phones[0]` 또는 phone claim
- [x] 브라우저 요청의 requester 값을 신뢰하지 않도록 처리
- [x] Worker Secret `ABC_API_KEY`로 `x-api-key` 추가
- [x] SSO access token을 암호화된 HttpOnly 세션에 보관하고 글 저장 요청에 Bearer token 추가
- [x] `projectId`와 `channelId`를 Worker 설정에 등록
- [x] `POST /api/projects/{projectId}/channels/{channelId}/feedbacks` 호출
- [x] `x-source-namespace` 추가
+1 -1
View File
@@ -126,7 +126,7 @@ support_tickets.idempotency_key
```
- 첨부파일은 `qa_cdn`에 저장하고, DB에는 bucket/key 및 파일 메타데이터를 기록한다.
- Worker는 저장 요청에 SSO access token을 `Authorization: Bearer`로, 프로젝트 API 키를 `x-api-key`로 전달한다. 세션 쿠키와 access token은 브라우저 JavaScript에 노출하지 않는다.
- 실제 운영에서는 feedback API가 서버 측에서 Q&A 세션 또는 SSO token을 검증해야 한다.
## 4. 현재 테스트 모드와 운영 모드