Skip to content

배포 - #25

Merged
Sehi55 merged 2 commits into
mainfrom
dev
May 17, 2026
Merged

Sehi55 merged 2 commits into
mainfrom
dev

Conversation

@Sehi55

@Sehi55 Sehi55 commented May 17, 2026

Copy link
Copy Markdown
Contributor

📝 작업 내용

이번 PR에서 작업한 내용을 설명해주세요.

  • 배포 - prometheus 헬스체크 권한문제 수정

Summary by CodeRabbit

  • Chores
    • 프로덕션 배포 프로세스가 최적화되었습니다.
    • 서비스 모니터링 기능이 개선되었습니다.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 17, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 7ebb22c0-52ad-4aad-8e57-557ffe26aadb

📥 Commits

Reviewing files that changed from the base of the PR and between b5e8684 and a304db2.

📒 Files selected for processing (2)
  • .github/workflows/cd-prod.yml
  • src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java

📝 Walkthrough

개요

프로덕션 배포 자동화 트리거를 main 브랜치 push 이벤트로만 한정하고, Prometheus 메트릭 엔드포인트를 보안 예외 목록에 추가합니다.

변경 사항

프로덕션 배포 및 모니터링 인프라

Layer / File(s) 요약
프로덕션 배포 트리거 조건 정제
.github/workflows/cd-prod.yml
jobs.deploy.if 조건식을 멀티라인으로 확장하여, workflow_run 이벤트가 push이고 head_branchmain일 때만 배포 잡이 실행되도록 제한(수동 실행 분기는 유지).
Prometheus 메트릭 엔드포인트 인증 예외
src/main/java/com/michelet/gateway/infrastructure/config/SecurityConfig.java
Spring Security의 authorizeExchange().pathMatchers(...).permitAll()/actuator/prometheus를 추가하여 모니터링 시스템이 인증 없이 메트릭을 수집할 수 있도록 함.

관련 PR 목록

  • Miche-Let/api-gateway#19: cd-prod.yml 배포 트리거 로직과 SecurityConfig 인증 규칙 업데이트가 CD 워크플로우 및 보안 규칙 작업과 일치.
  • Miche-Let/api-gateway#21: 본 PR이 "/actuator/prometheus" 엔드포인트를 무인증 허용하는 반면, 해당 PR은 Prometheus 기능을 지원하는 micrometer-registry-prometheus 의존성 추가로 동일한 Prometheus 기능 구현과 직접 연결.

추천 검토자

  • githyj-jang
  • qldo
  • ji-circle
  • Jinyoung-Kim96
  • jihxonx

🐰 메인 브랜치로만 배포하고
프로메테우스 눈을 뜨게 하네
모니터링 깔끔, 배포도 안전하게
인프라 토끼가 깡총깡총 🎯

🎯 2 (Simple) | ⏱️ ~8 분

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive PR 제목 '배포'는 매우 추상적이고 구체적인 변경 내용을 전달하지 못합니다. 제목을 'Prometheus 헬스체크 권한 추가 및 CD 트리거 조건 수정' 또는 '배포: Prometheus 엔드포인트 보안 설정 및 CI/CD 트리거 개선'으로 변경하여 주요 변경사항을 명확하게 나타내세요.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dev

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 and usage tips.

@Sehi55
Sehi55 merged commit 158b23a into main May 17, 2026
3 checks passed
@coderabbitai coderabbitai Bot mentioned this pull request Jun 6, 2026
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant