Skip to content

hotfix: 7일 이내 복구 정책을 위해 회원탈퇴 시 Apple 토큰 revoke 코드 제거#347

Merged
dh2906 merged 8 commits intomainfrom
hotfix/apple-token-revoke-after-7days
Mar 6, 2026
Merged

hotfix: 7일 이내 복구 정책을 위해 회원탈퇴 시 Apple 토큰 revoke 코드 제거#347
dh2906 merged 8 commits intomainfrom
hotfix/apple-token-revoke-after-7days

Conversation

@dh2906
Copy link
Contributor

@dh2906 dh2906 commented Mar 6, 2026

🔍 개요

  • 회원탈퇴 시 애플 OAuth 계정 사용자는 발급받은 토큰을 즉시 폐기하고 있습니다.

  • 7일 이내 로그인 시 계정을 복구하는 정책으로 인해 애플 사용자의 경우 탈퇴 후 문제가 발생합니다.

    • 복구는 가능하더라도 토큰 폐기로 인해 추후에 애플 OAuth 인증이 실패합니다.
  • close #이슈번호

🚀 주요 변경 내용

  • 회원탈퇴 시 애플 토큰을 즉시 폐기하는 코드를 제거했습니다.

  • 스케줄러를 통해 매일 자정마다 탈퇴한 지 7일이 지난 유저를 찾아 애플 토큰을 폐기합니다.


💬 참고 사항


✅ Checklist (완료 조건)

  • 코드 스타일 가이드 준수
  • 테스트 코드 포함됨
  • Reviewers / Assignees / Labels 지정 완료
  • 보안 및 민감 정보 검증 (API 키, 환경 변수, 개인정보 등)

@dh2906 dh2906 requested a review from Copilot March 6, 2026 06:36
@dh2906 dh2906 self-assigned this Mar 6, 2026
@dh2906 dh2906 added DB DB 마이그레이션을 위한 라벨입니다. Hotfix 운영 환경에서 발생한 우선 순위가 높은 심각한 오류에 대한 이슈입니다. labels Mar 6, 2026
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

⚠️ Checkstyle 위반 사항 발견

Checkstyle 검사에서 코딩 컨벤션 위반이 발견되었습니다.

📋 상세 리포트

@coderabbitai
Copy link

coderabbitai bot commented Mar 6, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 51ce7188-3317-43cc-9ae0-d2373f0c1c14

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch hotfix/apple-token-revoke-after-7days

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.

Copy link
Contributor

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

회원 탈퇴 후 7일 이내 계정 복구 정책을 지원하기 위해, Apple OAuth 사용자의 토큰을 탈퇴 시점에 즉시 revoke 하지 않고 7일 경과 후 스케줄러로 revoke 하도록 변경하는 PR입니다.

Changes:

  • 회원탈퇴 처리에서 Apple refresh token 즉시 revoke 로직 제거
  • 매일 자정 실행 스케줄러/서비스 추가로 “탈퇴 7일 경과 사용자” 토큰 revoke 처리
  • 탈퇴 시각(deletedAt) 기준으로 7일 경과한 사용자 조회용 Repository 쿼리 추가

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 8 comments.

File Description
src/main/java/gg/agit/konect/domain/user/service/UserService.java 탈퇴 시 Apple 토큰 즉시 revoke 제거(복구 정책 반영)
src/main/java/gg/agit/konect/domain/user/service/UserSchedulerService.java 7일 경과 탈퇴 Apple 사용자 토큰 revoke 비즈니스 로직 추가
src/main/java/gg/agit/konect/domain/user/scheduler/UserScheduler.java 자정 크론 스케줄러로 revoke 작업 트리거 추가
src/main/java/gg/agit/konect/domain/user/repository/UserRepository.java provider + deletedAt 임계값 기반 조회 쿼리 추가

@dh2906 dh2906 removed the DB DB 마이그레이션을 위한 라벨입니다. label Mar 6, 2026
@dh2906 dh2906 requested a review from Copilot March 6, 2026 07:44
Copy link
Contributor

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

Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.

@dh2906 dh2906 changed the title hotfix: 7일 이내 복구 정책을 위해 회원탈퇴 시 Apple 토큰 즉시 revoke 제거 hotfix: 7일 이내 복구 정책을 위해 회원탈퇴 시 Apple 토큰 revoke 코드 제거 Mar 6, 2026
@dh2906 dh2906 merged commit a53caf9 into main Mar 6, 2026
2 checks passed
@dh2906 dh2906 deleted the hotfix/apple-token-revoke-after-7days branch March 6, 2026 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hotfix 운영 환경에서 발생한 우선 순위가 높은 심각한 오류에 대한 이슈입니다.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants