Skip to content

[CHROE] main 병합 및 배포#167

Merged
chltjsdl0119 merged 5 commits intomainfrom
develop
Feb 18, 2026
Merged

[CHROE] main 병합 및 배포#167
chltjsdl0119 merged 5 commits intomainfrom
develop

Conversation

@chltjsdl0119
Copy link
Collaborator

No description provided.

@chltjsdl0119 chltjsdl0119 self-assigned this Feb 18, 2026
Copilot AI review requested due to automatic review settings February 18, 2026 18:45
@chltjsdl0119 chltjsdl0119 merged commit 13d6f0a into main Feb 18, 2026
7 checks passed
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

배포/운영을 위한 헬스체크 엔드포인트를 추가하고, 인증/외부연동 설정 및 API 스펙(Validation/Swagger)을 정리한 PR입니다.

Changes:

  • //health 헬스체크 엔드포인트 추가 및 보안 예외(Public) 경로에 반영
  • Apple OAuth 토큰 요청을 위한 appleRestClient Bean 추가 및 Apple 어댑터 주입 대상 수정
  • 요청 DTO Validation 메시지 및 응답 DTO Swagger 스키마 주석 보강, 불필요한 빈 설정 파일 제거

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/main/java/com/loopon/global/security/filter/JwtAuthenticationFilter.java JWT 필터 제외 경로에 /health, /api/auth/logout 추가
src/main/java/com/loopon/global/health/HealthCheckController.java /, /health 헬스체크 컨트롤러 신규 추가
src/main/java/com/loopon/global/config/SecurityConfig.java Public URL에 /health 포함 및 배열 구문 정리
src/main/java/com/loopon/global/config/RestClientConfig.java appleRestClient Bean 추가
src/main/java/com/loopon/global/config/HttpInterfaceConfig.java 비어있는 설정 클래스 제거
src/main/java/com/loopon/auth/infrastructure/apple/AppleAuthClientAdapter.java Apple용 RestClient로 교체
src/main/java/com/loopon/auth/application/dto/response/AuthResult.java Swagger @Schema로 토큰 필드 문서화
src/main/java/com/loopon/auth/application/dto/request/VerificationVerifyRequest.java Validation 메시지 구체화
src/main/java/com/loopon/auth/application/dto/request/VerificationRequest.java Validation 메시지 구체화
src/main/java/com/loopon/auth/application/dto/request/SocialLoginRequest.java Validation 메시지 구체화
src/main/java/com/loopon/auth/application/dto/request/PasswordResetRequest.java Validation 메시지 구체화
src/main/java/com/loopon/auth/application/dto/request/LoginRequest.java 필드 구분을 위한 공백 라인 추가

Comment on lines +19 to +29
@Value("${spring.profiles.active:default}")
private String activeProfile;

@GetMapping("/")
public ResponseEntity<CommonResponse<Map<String, String>>> systemStatus() {
Map<String, String> status = Map.of(
"status", "UP",
"profile", activeProfile,
"serverTime", LocalDateTime.now().toString(),
"message", "LoopOn API Server is running!"
);
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GET / 응답에 spring.profiles.active(profile)와 서버 시간(serverTime)을 포함해 외부에 환경 정보를 노출합니다. 운영 환경에서도 퍼블릭 엔드포인트로 열려 있으니, 보안/운영 관점에서 필드 제거(예: status만 반환) 또는 비공개 경로로 분리/권한 제한(예: actuator로 이동, 내부망만 허용 등)을 검토해주세요.

Copilot uses AI. Check for mistakes.
try {
return kakaoRestClient.post()
return appleRestClient.post()
.uri("https://appleid.apple.com/auth/token")
Copy link

Copilot AI Feb 18, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RestClient에 이미 baseUrl("https://appleid.apple.com")을 설정했는데, 요청에서 다시 절대 URL("https://appleid.apple.com/auth/token")을 사용하고 있습니다. baseUrl과 URI가 분리되면 향후 호스트 변경/환경 분기 시 한쪽만 수정되어 오류가 날 수 있으니, 상대 경로(예: "/auth/token")로 호출해 baseUrl 설정을 일관되게 활용하는 편이 안전합니다.

Suggested change
.uri("https://appleid.apple.com/auth/token")
.uri("/auth/token")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants