Skip to content

Spm 384#48

Merged
CHOOSLA merged 2 commits into
mainfrom
SPM-384
Nov 8, 2025
Merged

Spm 384#48
CHOOSLA merged 2 commits into
mainfrom
SPM-384

Conversation

@Lee-Jong-Jin

@Lee-Jong-Jin Lee-Jong-Jin commented Nov 8, 2025

Copy link
Copy Markdown
Contributor

📣 Related Issue

  • close #

📝 Summary

수정

🙏 Question & PR point

📬 Reference

Summary by CodeRabbit

  • 개선 사항

    • CORS 설정이 활성화되었습니다. 지정된 도메인에서의 크로스 오리진 요청이 지원되며, 자격증명 포함 및 Authorization 헤더 노출 기능이 추가되었습니다.
  • 리팩토링

    • 인증 관련 내부 구조가 최적화되었습니다.

@coderabbitai

coderabbitai Bot commented Nov 8, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

세 개의 Java 파일이 수정되었습니다. 인증 이벤트 Payload에서 Deleted 필드를 제거하고, 사용자 프로젝션 서비스에서 버전 필드 할당 순서를 변경하며, 보안 설정에서 CORS 구성을 활성화했습니다.

Changes

응집도 / 파일명 변경 요약
이벤트 Payload 필드 제거
src/main/java/com/sampoom/user/api/auth/event/AuthUserEvent.java
AuthUserEvent의 Payload 내부 클래스에서 Deleted 필드 제거. Lombok 생성 getter를 포함한 해당 속성이 공개 API에서 삭제됨
프로젝션 서비스 필드 순서 조정
src/main/java/com/sampoom/user/api/auth/service/AuthUserProjectionService.java
warmup 경로에서 AuthUserProjection.builder() 내 version 필드 할당 순서를 lastEventId 이전에서 sourceUpdatedAt 이후로 변경. 기능적 동작 변화 없음
CORS 구성 활성화
src/main/java/com/sampoom/user/common/config/security/SecurityConfig.java
SecurityConfig에서 이전에 주석 처리된 CORS 블록을 활성 CorsConfiguration으로 대체. 허용 메서드, 출처(https://sampoom.store, https://samsam.autos, https://sampoom-management-frontend.vercel.app, localhost URL), 자격증명 활성화, Authorization 헤더 노출, 허용 헤더 설정 포함

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

특히 주의가 필요한 영역:

  • CORS 설정의 허용 출처 및 자격증명 설정이 보안 정책과 일치하는지 확인
  • 제거된 Deleted 필드가 다른 코드에서 참조되지 않는지 검증
  • version 필드 순서 변경이 다른 필드의 초기화에 영향을 주지 않는지 확인

Suggested labels

ready-to-merge

Suggested reviewers

  • yangjiseonn
  • CHOOSLA
  • taemin3
  • Sangyoon98
  • vivivim

Poem

🐰 Payload 필드는 작별하고,
순서는 우아하게 춤추며,
CORS는 문을 열어주네!
변경의 발걸음, 부드럽고 명확하게—
코드의 정원에 봄이 왔네다! 🌸

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch SPM-384

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d3cf99b and a94f1d9.

📒 Files selected for processing (3)
  • src/main/java/com/sampoom/user/api/auth/event/AuthUserEvent.java (0 hunks)
  • src/main/java/com/sampoom/user/api/auth/service/AuthUserProjectionService.java (1 hunks)
  • src/main/java/com/sampoom/user/common/config/security/SecurityConfig.java (1 hunks)

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.

@CHOOSLA CHOOSLA left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

설정 변경 확인

@CHOOSLA CHOOSLA merged commit 3dadca6 into main Nov 8, 2025
5 of 6 checks passed
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.

2 participants