Skip to content

[chore] 운영 환경 Swagger 노출 차단 - #42

Open
gihhyeon wants to merge 1 commit into
developfrom
chore/fix-prod-swagger
Open

[chore] 운영 환경 Swagger 노출 차단#42
gihhyeon wants to merge 1 commit into
developfrom
chore/fix-prod-swagger

Conversation

@gihhyeon

Copy link
Copy Markdown
Member

📌 개요 (why, what)

  • Swagger 설정이 공통 application.yaml에 있어 운영 서버에서도 /swagger-ui.html, /v3/api-docs가 노출되던 문제를 막습니다.
  • 운영(prod) 프로파일에서만 springdoc을 비활성화하고, dev/local은 기존대로 유지합니다.

🛠️ 구현 방법 (how)

  • application-prod.yaml에 springdoc 비활성화 설정 추가
    • springdoc.api-docs.enabled: false
    • springdoc.swagger-ui.enabled: false
  • api-docs까지 함께 꺼야 JSON 명세(/v3/api-docs) 노출도 차단됩니다.

🤔 검토한 대안과 선택 이유 (trade-off)

대안 장점 단점 선택 여부
springdoc enabled: false 엔드포인트 자체 미등록, 가볍고 확실 -
Security로 경로 차단 인증 붙여 접근 제한 가능 엔드포인트는 살아있어 존재가 드러남

💭 리뷰 포인트

  • 운영 배포 후 /swagger-ui.html 접속 시 404 확인 예정

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 0220bb80-a577-4958-8c4e-1b11889dd208


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.

@gihhyeon gihhyeon changed the title chore: 운영 환경 Swagger 노출 차단 [chore] 운영 환경 Swagger 노출 차단 Aug 15, 2026
@gihhyeon gihhyeon self-assigned this Aug 15, 2026
@gihhyeon gihhyeon added the ⚙️ chore 설정 및 기타 이슈 label Aug 15, 2026
@gihhyeon
gihhyeon requested a review from kyer5 August 15, 2026 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚙️ chore 설정 및 기타 이슈

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[chore] 운영 환경 Swagger 노출 차단

1 participant