Repository navigation
[Chore/#164] common-api 설정 파일 추가와 Swagger dev 전용 노출 - #165
Merged
Merged
Conversation
github-actions
Bot
requested review from
jjunh33,
leegain1,
sangrae2325 and
xeoxxn
October 22, 2026 13:02
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 59 minutes. View limit details
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. Comment |
jjunh33
approved these changes
Oct 22, 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.
#️⃣연관된 이슈
🎯 해결하려는 문제가 무엇인가요?
application-dev.yaml·application-prod.yaml에 직접 들어가 있었습니다.X-Forwarded-*헤더를 반영하지 않아 원래 요청의 스킴·호스트를 알 수 없었습니다.❓ 왜 해결해야 하나요?
config-and-auth.md1절)상 설정 소유권은 해당 모듈에 있고, bootstrap에는 설정을 직접 쓰지 않습니다. 문서 조립 빈(OpenApiConfig)을 가진 common-api가 springdoc 설정도 소유하는 게 맞습니다.⭐ 어떻게 해결했나요?
api/common-api/src/main/resources/application-common-api.yml추가server.forward-headers-strategy: frameworkswagger-ui·api-docs는 기본false,spring.config.activate.on-profile: dev문서에서만trueapplication.yaml의spring.config.import에classpath:application-common-api.yml추가application-dev.yaml·application-prod.yaml에서 springdoc 블록 제거🧩 이 PR의 한계 & 트레이드오프
SPRING_PROFILES_ACTIVE=dev로 실행해야 합니다.⛓️ 기존 기능에 미치는 영향
forward-headers-strategy: framework로ForwardedHeaderFilter가 등록되어, 프록시가 보낸X-Forwarded-*/Forwarded헤더가 요청 스킴·호스트·포트에 반영됩니다.🔀 Edge Case & 실패 시나리오
application-dev.yaml등)에 springdoc 설정을 다시 넣으면 그쪽이 우선 적용되어 common-api 설정을 덮어씁니다.framework전략은 들어온 Forwarded 헤더를 그대로 신뢰하므로, 앱 앞단 프록시가 클라이언트가 보낸X-Forwarded-*헤더를 덮어쓰는 구성이어야 합니다.📋 검토한 대안과 선택 이유
💬 리뷰 포인트
X-Forwarded-*헤더를 덮어쓰도록 설정돼 있는지 확인 부탁드립니다.